Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
arkiboys
Master Smack Fu Yak Hacker
1433 Posts |
Posted - 2007-08-06 : 07:28:28
|
hi,What is wrong with this please?I am passing two variables to execute a ssis package.Thanksset @cmd = 'dtexec /f ' + @FullPackagePath + ' /set \Package.Variables[User::FileName].Properties[Value];"' + @FullFilePath + '"' + ' \Package.Variables[User::ConnectionPath].Properties[Value];"' + @ConnectionPath + '"'print @cmderror is:Option "\Package.Variables[User::ConnectionPath].Properties[Value];Data Source=server1\databasename" is not valid.please note I just retyped the data source name here. |
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-08-06 : 12:31:36
|
How do you run the command? |
 |
|
arkiboys
Master Smack Fu Yak Hacker
1433 Posts |
Posted - 2007-08-07 : 02:32:46
|
quote: Originally posted by rmiao How do you run the command?
master..xp_cmdshell @cmdThe error now is:The identifier that starts with 'Data Source=gblond088sjy\MSQL_curves_DEV1, 2025;Initial Catalog=CounterpartyExposure;Provider=SQLNCLI.1;Integrated Security=SSPI' is too long. Maximum length is 128.This I guess is related to double and single quotes. Not sure how to change the query to solve this error.Thanks |
 |
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-08-07 : 13:04:49
|
Tried replace gblond088sjy\MSQL_curves_DEV1 with ip address? |
 |
|
arkiboys
Master Smack Fu Yak Hacker
1433 Posts |
Posted - 2007-08-08 : 03:16:36
|
quote: Originally posted by rmiao Tried replace gblond088sjy\MSQL_curves_DEV1 with ip address?
Does the instance name have any effect on the ip address?Thanks |
 |
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-08-08 : 14:03:55
|
You can connect to sql instance with ip address and port number, and seems ip address ls shorter than instance name in this case. |
 |
|
|
|
|