Unix Technical Forum

Send 2 SQL statements using Integrated services

This is a discussion on Send 2 SQL statements using Integrated services within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi All , I am hoping some can help or point me in the right direction. We have recenlty ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 07:31 PM
Traveller
 
Posts: n/a
Default Send 2 SQL statements using Integrated services

Hi All ,

I am hoping some can help or point me in the right direction. We have
recenlty installed SQL 2005 and are using integrated services using ole
db connections. We are connecting to an Informix database.

My questions is there a way I can pass through multiple sql statements
when I create a OLE DB source to the Informix database.
The reason I am doing this is we need to tell the Informix DB that we
want to use "set isolation dirty read" as well as use the Parallel Data
query part of informix.

Please bear with me as I am just starting to use SQL 2005. I have not
found a way to do this. Can anyone suggest something please.

If you need more Information please also let me know.

Thanks

Traveller

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 07:31 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Send 2 SQL statements using Integrated services

Traveller (vavavoom_th14@yahoo.co.uk) writes:
> I am hoping some can help or point me in the right direction. We have
> recenlty installed SQL 2005 and are using integrated services using ole
> db connections. We are connecting to an Informix database.
>
> My questions is there a way I can pass through multiple sql statements
> when I create a OLE DB source to the Informix database.
> The reason I am doing this is we need to tell the Informix DB that we
> want to use "set isolation dirty read" as well as use the Parallel Data
> query part of informix.
>
> Please bear with me as I am just starting to use SQL 2005. I have not
> found a way to do this. Can anyone suggest something please.


I guess you should be able to do:

SELECT ... FROM OPENQUERY(INFORMIXSRV,
'Firststatement;
Secondstatment;
SELECT ... FROM tbl;'

But keep in mind that OPENQUERY is intended to be used for queries that
returns data in a tabular from that you can use in a SELECT statement,
and not for operations that perform updates. If that is what you are
looking into, it may be better to call a remote stored procedure. (Given
that Informix actually have stored procedures that is.)



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 07:42 PM
Traveller
 
Posts: n/a
Default Re: Send 2 SQL statements using Integrated services

Thanks You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:24 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com