Here is my stored procedure:
CREATE PROCEDURE MyProc AS
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
SELECT Test.*
FROM OPENQUERY(MyLinkedServer, "SELECT Table1.* From Table1) As Test
Thanks
Peter
pcz...@bigfoot.com
The following is only a guess, since I have to admit that I have not faced a
situation similar to yours ...
Check out the section "OPENQUERY (T-SQL)" in the SQL Server 7.0 Books Online ...
the OpenQuery syntax looks like it might be able to handle "SET ISOLATION DIRTY
READ SELECT ..."
---------------------------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc) which can be
cut and pasted into Query Analyzer is appreciated.
Peter Czurak <pcz...@bigfoot.com> wrote in message
news:snm9p0...@corp.supernews.com...
Arguments
linked_server
Is an identifier representing the name of the linked server.
'query'
Is the query string executed in the linked server.
I don't see a place where I can specify the type of read. As the case in
SQL7.0 you can not set the read type in a SELECT statement (I think)
Thanks
Peter
pcz...@bigfoot.com
"BPMargolin" <bpm...@attglobal.net> wrote in message
news:e5P6YJN9$GA.296@cppssbbsa04...
SELECT Test.*
FROM OPENQUERY( MyLinkedServer,
'SET ISOLATION LEVEL DIRTY READ
SELECT Table1.* From Table1'
) As Test
If you do TRANSACTION ISOLATION LEVEL in SQL Server, I believe it
affects only the local tables.
--
Umachandar Jayachandran
SQL Resources at http://www.umachandar.com/resources.htm
(Please reply only to the newsgroup)
When I use this code
SELECT Test.*
FROM OPENQUERY( MyLinkedServer,
'SET ISOLATION LEVEL DIRTY READ
SELECT Table1.* From Table1')
As Test
I get the follwing error:
-------------------
Microsoft SQL-DMO (ODBC SQLState: 42000)
---------------------------
Error 7321: An error occurred while preparing a query for execution against
OLE DB provider 'MSDASQL'.
A syntax error has occurred.]
---------------------------
OK
---------------------------
.
SET ISOLATION LEVEL DIRTY READ is the correct syntax on Informix database
Thanks
Peter
pcz...@bigfoot.com
"Umachandar Jayachandran" <umach...@yahoo.com> wrote in message
news:O9CTmiN9$GA...@cppssbbsa02.microsoft.com...
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
HTH
--
Kalen Delaney
MCSE, SQL Server MCT, MVP
www.InsideSQLServer.com
Feed Someone for Free Today:
www.TheHungerSite.com
Peter Czurak <pcz...@bigfoot.com> wrote in message
news:snmmqke...@corp.supernews.com...
His linked server is an Informix db.
D. Patrick Hoerter
Kalen Delaney wrote in message ...