dbTalk Databases Forums  

Sql Task with Oracle

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Sql Task with Oracle in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Denis Desjardins
 
Posts: n/a

Default Sql Task with Oracle - 12-24-2004 , 10:41 AM






I'm fairly new to DTS. I'm running a Dts where the source and the destination
are Oracle databases. I need to run some Sql statements to create temporary
tables and proper indexes before doing any more complex stuff. When trying to
run those statements in an Sql Task, it seems that i'm only able to run one
statement per Sql task. Is it the normal behaviour, or am i missing something
here?

Thanks


Reply With Quote
  #2  
Old   
Akshay Mittal
 
Posts: n/a

Default RE: Sql Task with Oracle - 12-25-2004 , 02:27 AM






The task can contain either a single SQL statement or multiple SQL statements
that execute sequentially. SQL statements can range from being a SELECT
command to running a stored procedure.

The SQL statements must be written in the dialect of the source database
management system (DBMS).

If multiple statements are contained in the task, they can be grouped and
executed a batch at a time. To signal the end of a batch, use the GO command.
All the SQL statements from one GO command to the next are sent in a batch to
the OLE DB provider for execution.

For more information look for topic "Execute SQL Task" in Books Online.


"Denis Desjardins" wrote:

Quote:
I'm fairly new to DTS. I'm running a Dts where the source and the destination
are Oracle databases. I need to run some Sql statements to create temporary
tables and proper indexes before doing any more complex stuff. When trying to
run those statements in an Sql Task, it seems that i'm only able to run one
statement per Sql task. Is it the normal behaviour, or am i missing something
here?

Thanks


Reply With Quote
  #3  
Old   
Jéjé
 
Posts: n/a

Default Re: Sql Task with Oracle - 12-26-2004 , 03:29 PM



try some keywords like:
Statement A ;
Statement B ;
Statement C ;

or
Statement A
Go
Statement B
Go
Statement C
Go

or
/
Statement A
/
Statement B
/
Statement C


"Denis Desjardins" <Denis Desjardins (AT) discussions (DOT) microsoft.com> a écrit dans
le message de news: CC410FB5-5615-4452-92C1-5975B6AB3187...soft (DOT) com...
Quote:
I'm fairly new to DTS. I'm running a Dts where the source and the
destination
are Oracle databases. I need to run some Sql statements to create
temporary
tables and proper indexes before doing any more complex stuff. When trying
to
run those statements in an Sql Task, it seems that i'm only able to run
one
statement per Sql task. Is it the normal behaviour, or am i missing
something
here?

Thanks




Reply With Quote
  #4  
Old   
Denis Desjardins
 
Posts: n/a

Default Re: Sql Task with Oracle - 12-30-2004 , 08:51 AM



Thanks for the info guys.
The proper way of doing it is by following each sql statements by the GO
keyword.

Thanks a lot it was really helpful.



"Jéjé" wrote:

Quote:
try some keywords like:
Statement A ;
Statement B ;
Statement C ;

or
Statement A
Go
Statement B
Go
Statement C
Go

or
/
Statement A
/
Statement B
/
Statement C


"Denis Desjardins" <Denis Desjardins (AT) discussions (DOT) microsoft.com> a écrit dans
le message de news: CC410FB5-5615-4452-92C1-5975B6AB3187...soft (DOT) com...
I'm fairly new to DTS. I'm running a Dts where the source and the
destination
are Oracle databases. I need to run some Sql statements to create
temporary
tables and proper indexes before doing any more complex stuff. When trying
to
run those statements in an Sql Task, it seems that i'm only able to run
one
statement per Sql task. Is it the normal behaviour, or am i missing
something
here?

Thanks





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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.