![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have created automated partitoned tables. When the DTS package runs a table is created automtaically with week# as extension. For example customers43 this week. And next week when the package runs customers44 is created. Now I want to insert the data in the partiotned table weekly. I am using following syntax to Bulk insert the data in the newly created table(Using execute SQL task to do this). But I am getting error. declare @a varchar(25) select @a = name from sysobjects where name like 'customers%' and crdate > getdate() - .5 BULK INSERT Costco_Demo..@a FROM 'C:\FolderA\cust.txt' Can someone please fix the syntax. Thanks Steve |
![]() |
| Thread Tools | |
| Display Modes | |
| |