SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Insert returning ROWID needs to STOP!


Insert returning ROWID needs to STOP!

Author
Message
scott.adams 25315
scott.adams 25315
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 2
When my data flow gets to the OLE DB Destination it hits a performance roadblock. The Insert that SSIS generates for the step contains "returning rowid into :#var" which I would like to be rid of.

Ex. INSERT INTO TARGET_TABLE( "TABLE_NO", "ENTRY_NO", "TABLE_
DATA", "DTTM") VALUES (:1,:2,:3,:4) RETURNING ROWID INTO :5

Variables 1-4 are defined on the mapping page. I don't even know where variable 5 is coming from.

How can I make SSIS stop generating this superfluous code?
Vedran Kesegic
Vedran Kesegic
Say Hey Kid
Say Hey Kid (708 reputation)Say Hey Kid (708 reputation)Say Hey Kid (708 reputation)Say Hey Kid (708 reputation)Say Hey Kid (708 reputation)Say Hey Kid (708 reputation)Say Hey Kid (708 reputation)Say Hey Kid (708 reputation)

Group: General Forum Members
Points: 708 Visits: 1266
Performance is probably not poor because of returning statement. Check for triggers on destination table. Or it has (too)many indexes.

_____________________________________________________
Microsoft Certified Master: SQL Server 2008
XDetails Addin - for SQL Developers
blog.sqlxdetails.com - Transaction log myths

HowardW
HowardW
SSCrazy
SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)

Group: General Forum Members
Points: 2229 Visits: 9892
The OLE DB destinations for non-SQL databases are pretty slow generally and isn't due to the returning of rowid. It's inserting and committing every row one by one which is *slow*.

If you use Enterprise Edition, you could try using the Attunity driver set for Oracle which is said to be much faster (and has a fast load option similar to a bulk insert I believe).

SSIS is optimised for pulling data out of external sources into SQL Server rather than the reverse, so it's never going to be as fast as a SQL Server/Flat File Destination.

Another option would be to output to a flat file, then call SQL*Loader to load the data from Oracle's end.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search