Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


syntax error /SET "\Package.Variables[user::p1].Properties[Value]";+"FilePath"


syntax error /SET "\Package.Variables[user::p1].Properties[Value]";+"FilePath"

Author
Message
smvakumar
smvakumar
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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 ?
Norman Kelm
Norman Kelm
SSC-Enthusiastic
SSC-Enthusiastic (130 reputation)SSC-Enthusiastic (130 reputation)SSC-Enthusiastic (130 reputation)SSC-Enthusiastic (130 reputation)SSC-Enthusiastic (130 reputation)SSC-Enthusiastic (130 reputation)SSC-Enthusiastic (130 reputation)SSC-Enthusiastic (130 reputation)

Group: General Forum Members
Points: 130 Visits: 325
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/



smvakumar
smvakumar
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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.....
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search