dbTalk Databases Forums  

loading 40 MB SQL script

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


Discuss loading 40 MB SQL script in the microsoft.public.sqlserver.dts forum.



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

Default loading 40 MB SQL script - 03-24-2006 , 12:45 PM






I have a 40MB SQL script that I'd like to load into a DB using DTS. Can
someone step me through setting this up in DTS designer? I believe I need to
define the dynamic prooperties, point to the scripts location, etc. Any help
will be greatly appreciated.

Reply With Quote
  #2  
Old   
SQLCat
 
Posts: n/a

Default RE: loading 40 MB SQL script - 03-26-2006 , 07:08 PM






to clarify, the 40MB file has INSERT INTO statements that loads data in 15
tables....is creating a SQL task to run xp_cmdshell osql statement the only
way to load these tables?

"SQLCat" wrote:

Quote:
I have a 40MB SQL script that I'd like to load into a DB using DTS. Can
someone step me through setting this up in DTS designer? I believe I need to
define the dynamic prooperties, point to the scripts location, etc. Any help
will be greatly appreciated.

Reply With Quote
  #3  
Old   
SQLCat
 
Posts: n/a

Default RE: loading 40 MB SQL script - 03-27-2006 , 11:02 AM



I went ahead and did a BULK INSERT task and loaded the contents of file.sql
containing the INSERT INTO statements for 15 tables into a staging table.
Now, the staging table - col01 has all the INSERT INTO statements. How do I
get from the staging table and into the 15 tables?

"SQLCat" wrote:

Quote:
to clarify, the 40MB file has INSERT INTO statements that loads data in 15
tables....is creating a SQL task to run xp_cmdshell osql statement the only
way to load these tables?

"SQLCat" wrote:

I have a 40MB SQL script that I'd like to load into a DB using DTS. Can
someone step me through setting this up in DTS designer? I believe I need to
define the dynamic prooperties, point to the scripts location, etc. Any help
will be greatly appreciated.

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.