Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 3rd, 2004, 11:41 AM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic Table Creation in DTS Package

I need to import several very large CSV files (both in records and columns) into SQL Server 2000. I've created a DTS package that creates a table then uses bulk insert to load the dad. It uses a .ini file to specify dynamic values like db name, file name, etc, and it works fine. The problem is that not every table is identical so now I'd like to be able to alter the table creation query. My .ini file cuts off the query within a few dozen characters and it won't work with multiline queries. Does anyone know of a way to dynamically alter the SQL table creation in a DTS package? Thanks for your assistance.

 
Old September 3rd, 2004, 02:30 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

I do not have much experience with it but in the DTS designer there is a Dynamic Properties Task. May be this will help you.
 
Old September 3rd, 2004, 02:42 PM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm using the dynamic properties task. I managed to solve it in a more hackish way then I prefer. I use a seperate .sql file and use dynamic properties to load that just for the query. It works fine, but requires two files instead of one.

 
Old September 3rd, 2004, 04:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Then that's probably your best solution. The only other way I know is to use the ActiveX task and vbscript to do what you need.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with DTS PACKAGE mxwebb SQL Server DTS 1 November 28th, 2007 05:16 PM
DTS Package failing ros1188 SQL Server DTS 1 August 17th, 2005 08:27 AM
Inserting data into table from DTS Package Crowandazi SQL Server DTS 1 July 29th, 2005 12:30 AM
Passing table name as parameter in a DTS Package nimma SQL Server DTS 2 January 7th, 2005 02:24 AM
DTS Package , Dynamic Table. sasidhar79 SQL Server DTS 1 June 11th, 2004 10:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.