dbTalk Databases Forums  

Help on DTS ..

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


Discuss Help on DTS .. in the microsoft.public.sqlserver.dts forum.



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

Default Help on DTS .. - 11-25-2005 , 03:21 AM






Hi,
We have a scenario where in we have to import data from an excel and
dump the data to the DB(SQL 2005).
To give u a brief
Assume you have this table in the DB
EmployeeTB
Columns are
EmpID,(int,identity)
CompanyID(int)
Name(varchar)
Active(bit)

The rows in the Excel file are like this...
CompanyName EmpName Active
Comp 1 Emp 1 Yes
Comp 1 Emp 2 Yes
Comp 2 Emp 3 No

Now can I have DTS Package to dump this data into my EmployeeTB format?
How will I get the CompanyId from the CompanyName in DTS?
Can we/do we write a query to get the companyID from the CompanyName?
How will I convert "yes/No" to a bit field in DTS?

Another query is...
This csv file will be in a folder.
I need this to be a back end process. So can I schedule the DTS
process?
Or does SQL have some kind of a file watcher sothat whenever a file is
created in this folder, the package runs automatically?

Or Do i need to write a file watcher service in .NET? If so is it
possible to execute the DTS package from my .NET code?


Thanks in advance,
Soni


Reply With Quote
  #2  
Old   
denis.gobo@gmail.com
 
Posts: n/a

Default Re: Help on DTS .. - 11-25-2005 , 07:17 AM






You have a lot of questions, the answer to all your questions is yes
I would suggest to spend some time on http://www.sqlis.com/ and on
http://msdn2.microsoft.com/en-us/library/ms141026.aspx

For the File watcher see (http://www.sqlis.com/default.aspx?23)

------------------------------------------------------------------------------------------------------
http://sqlservercode.blogspot.com/


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.