|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Saturday, June 07, 2008 9:30 PM
Points: 3,
Visits: 34
|
|
Hi Iam not able pass parameter to dts package frorm Stored Procedure....
select @Cmd ='dtexec /server' simsqlwds01 /sql "\SIMSQLWDS01\DTS Packages\DTS Packages\FCE_Costing_Load1\CSV_to_Spell_STG" /SET "\Package.Variables[user::p1].Properties[Value]";+"FilePath"
Iam getting following error .....
***** Msg 102, Level 15, State 1, Procedure SpSpellSTGLoadFromCSV, Line 2 Incorrect syntax near 'FilePath'. Msg 102, Level 15, State 1, Procedure SpSpellSTGLoadFromCSV, Line 6 Incorrect syntax near 'simsqlwds01'. **********
Can you help me out whts the syntax error at FilePath ?
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, October 04, 2012 1:34 PM
Points: 130,
Visits: 322
|
|
Does this work?
select @cmd = 'dtexec /server simsqlwds01 /sql "\SIMSQLWDS01\DTS Packages\DTS Packages\FCE_Costing_Load1\CSV_to_Spell_STG" /SET "\Package.Variables[user::p1].Properties[Value]";'+"FilePath"
I am assuming that FilePath is a column in a table?
Norman
DTS Package Search http://www.dtspackagesearch.com/
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Saturday, June 07, 2008 9:30 PM
Points: 3,
Visits: 34
|
|
No It's runtime flat file connection.....
ex : Filepath = 'c:\sachin\cvsfile.xls'
Anyway thanx for u r reply.....Already i got that.... Corrrect synatax is : ' + filepath +' '
Syantactical error.....
|
|
|
|