cyberbiker
Programmer
I am attempting to create a stored procedure that duns a DTS package according to an agument passed in.
This works fine
EXEC @hr = sp_OAMethod @oPKG,
'LoadFromSQLServer ("(local)", "", "", 256, , , , "DTS_Import")', null
This gives me a syntax error at +
'LoadFromSQLServer ("(local)", "", "", 256, , , ,"' + @packagename + '")', null
Simply put, I want to pass in an argument (Integer value)
Then assign the package name according to that value and run one of several packages.
Can anybody see what is wrong with this syntax?
Terry (cyberbiker)
This works fine
EXEC @hr = sp_OAMethod @oPKG,
'LoadFromSQLServer ("(local)", "", "", 256, , , , "DTS_Import")', null
This gives me a syntax error at +
'LoadFromSQLServer ("(local)", "", "", 256, , , ,"' + @packagename + '")', null
Simply put, I want to pass in an argument (Integer value)
Then assign the package name according to that value and run one of several packages.
Can anybody see what is wrong with this syntax?
Terry (cyberbiker)