How do I use a Variable File Name to do (in this instance) a Bulk Insert from?
**Sample Code**
Declare @Server VarChar( 50)
Declare @Path VarChar(150)
Declare @File VarChar( 50)
Declare @Ext VarChar( 5)
Set @FName = @Server + @Path + @File + @Ext
Bulk Insert db..Table01 From @Fname
Table Table01 is defined as One Column with Varchar(2000)
I get syntax errors on the Bulk Insert Statement.
Any suggestions??
Rick
**Sample Code**
Declare @Server VarChar( 50)
Declare @Path VarChar(150)
Declare @File VarChar( 50)
Declare @Ext VarChar( 5)
Set @FName = @Server + @Path + @File + @Ext
Bulk Insert db..Table01 From @Fname
Table Table01 is defined as One Column with Varchar(2000)
I get syntax errors on the Bulk Insert Statement.
Any suggestions??
Rick