![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am relatively new to DTS jobs, and for the most part, have just used the Import and Export wizards to get data in and out of things. I do OK writing SQL - but by no means am an expert... Here's my problem. I have a log file I need to import every day. The problem is I need to change the name of the source file every day. Being a log file, the file name contains a static string and a date value - so it can be calculated. I could do this in Access, but I'm a little stumped in SQLServer with DTS. Thanks for your assistance... Ray |
#3
| |||
| |||
|
|
The following is an example of how to do this: How can I change the filename for a text file connection? http://www.sqldts.com/default.aspx?200 So however you figured out how to do it in Access, you would use similar logic to construct the value for sFilename - the variable for the file name in the example. -Sue On Wed, 11 Oct 2006 18:23:18 -0400, Ray ray_park (AT) bellsouth (DOT) net> wrote: I am relatively new to DTS jobs, and for the most part, have just used the Import and Export wizards to get data in and out of things. I do OK writing SQL - but by no means am an expert... Here's my problem. I have a log file I need to import every day. The problem is I need to change the name of the source file every day. Being a log file, the file name contains a static string and a date value - so it can be calculated. I could do this in Access, but I'm a little stumped in SQLServer with DTS. Thanks for your assistance... Ray |
#4
| |||
| |||
|
|
The following is an example of how to do this: How can I change the filename for a text file connection? http://www.sqldts.com/default.aspx?200 So however you figured out how to do it in Access, you would use similar logic to construct the value for sFilename - the variable for the file name in the example. -Sue On Wed, 11 Oct 2006 18:23:18 -0400, Ray ray_park (AT) bellsouth (DOT) net> wrote: I am relatively new to DTS jobs, and for the most part, have just used the Import and Export wizards to get data in and out of things. I do OK writing SQL - but by no means am an expert... Here's my problem. I have a log file I need to import every day. The problem is I need to change the name of the source file every day. Being a log file, the file name contains a static string and a date value - so it can be calculated. I could do this in Access, but I'm a little stumped in SQLServer with DTS. Thanks for your assistance... Ray |
#5
| |||
| |||
|
|
ARRRRRRGGGGGGHHHHHH!!! I hate Typo's - It works great once everything is spelled right - Thanks for the help! On Thu, 12 Oct 2006 06:21:52 -0600, Sue Hoegemeier Sue_H (AT) nomail (DOT) please> wrote: The following is an example of how to do this: How can I change the filename for a text file connection? http://www.sqldts.com/default.aspx?200 So however you figured out how to do it in Access, you would use similar logic to construct the value for sFilename - the variable for the file name in the example. -Sue On Wed, 11 Oct 2006 18:23:18 -0400, Ray ray_park (AT) bellsouth (DOT) net> wrote: I am relatively new to DTS jobs, and for the most part, have just used the Import and Export wizards to get data in and out of things. I do OK writing SQL - but by no means am an expert... Here's my problem. I have a log file I need to import every day. The problem is I need to change the name of the source file every day. Being a log file, the file name contains a static string and a date value - so it can be calculated. I could do this in Access, but I'm a little stumped in SQLServer with DTS. Thanks for your assistance... Ray |
![]() |
| Thread Tools | |
| Display Modes | |
| |