March 7, 2012 at 7:07 am
I have a developer that using an OPEN Query Statement to load data from an AS400 DB 2 Database.
I would use a bulk insert and execute from the Server.
I also noticed that he has the DB Set to Full recovery.
I used the BCP to load Data from DB2 on a large System and it was very fast.
Any suggestions and/or articles that I can reference to suggest a better method, Bulk Insert, etc?
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
March 7, 2012 at 7:22 am
I noticed that the the Primary Keys are created on the Tables before the load.
I noticed that there are 10 columns for the primary key on the Accounts payable Table.
Most of the tables have a ton of Indexes.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
March 7, 2012 at 7:47 am
Another consideration is that the AS400 is remote.
It would probably be faster to export the data from the AS400 to text and Load the text files into the AS400.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
March 7, 2012 at 10:11 am
No suggestions?:crying:
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply