dbTalk Databases Forums  

Creating DTS with variable

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


Discuss Creating DTS with variable in the microsoft.public.sqlserver.dts forum.



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

Default Creating DTS with variable - 02-13-2004 , 04:46 PM






I will need to create a DTS to import an excel file. I will need 2
parameters( excel file name and an ID)
How do you create the package with these variables.

Thanks

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Creating DTS with variable - 02-13-2004 , 11:00 PM






There are a few ways and you have not told us which version of SQL Server
DTS so here goes with a few ways .

2000:

Dynamic Properties Task
DTSRUN with the /A switch (assign values to Global Variables which you then
assign in the package to a property)
Object Model

7:

Datapump task
Object Model

Have a look at the site www.SQLDTS.com. Here we have examples of a lot of
things in DTS

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Daniel" <daniel.brochu (AT) hp (DOT) com> wrote

Quote:
I will need to create a DTS to import an excel file. I will need 2
parameters( excel file name and an ID)
How do you create the package with these variables.

Thanks



Reply With Quote
  #3  
Old   
Yuan Shao
 
Posts: n/a

Default RE: Creating DTS with variable - 02-17-2004 , 05:22 AM



Hello,

How is the issue going on your side? Does Allan's suggestions meet your
requirements? Let us know if you need further assistance.

Regards,

Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.



Reply With Quote
  #4  
Old   
Daniel
 
Posts: n/a

Default Re: Creating DTS with variable - 02-17-2004 , 11:16 AM



v-yshao (AT) online (DOT) microsoft.com ("Yuan Shao") wrote in message news:<#LJ5LhU9DHA.2100 (AT) cpmsftngxa07 (DOT) phx.gbl>...
Quote:
Hello,

How is the issue going on your side? Does Allan's suggestions meet your
requirements? Let us know if you need further assistance.

Regards,

Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
I am using SQL 2000
I replaced the file Name with the variable.
When I ran the DTS, I got the following error:
The Microsoft Jet database engine could not find the object (sheet
name). Make sure the object exists and you spell its name and path
correctly


Reply With Quote
  #5  
Old   
Yuan Shao
 
Posts: n/a

Default Re: Creating DTS with variable - 02-18-2004 , 02:31 AM



Hello,

Thanks for your feedback. According to the error message, it seems that the
file cannot be found. Please check if the file name and the path are
correct. In the meantime, please check and see if the file is existed in
the folder which you located.

Does it fix your problem? If not, I would like you to provide the detailed
information regarding the DTS package and the variable so that I can fully
understand the problem and perform further research.

I am looking forward to hearing from you soon.
Best regards,

Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Reply With Quote
  #6  
Old   
Daniel
 
Posts: n/a

Default Re: Creating DTS with variable - 02-18-2004 , 10:15 AM



v-yshao (AT) online (DOT) microsoft.com ("Yuan Shao") wrote in message news:<jnV8Emf9DHA.3736 (AT) cpmsftngxa07 (DOT) phx.gbl>...
Quote:
Hello,

Thanks for your feedback. According to the error message, it seems that the
file cannot be found. Please check if the file name and the path are
correct. In the meantime, please check and see if the file is existed in
the folder which you located.

Does it fix your problem? If not, I would like you to provide the detailed
information regarding the DTS package and the variable so that I can fully
understand the problem and perform further research.

I am looking forward to hearing from you soon.
Best regards,

Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Yes the file exists. If I put file file name it is working fine. When
I replaced the file name with the variable containing the filename I
got this error


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.