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 |
qman
Constraint Violating Yak Guru
442 Posts |
Posted - 2010-10-13 : 09:58:16
|
I have a global variable set as my computers name.I am trying to use this variable as a connection.I have entered the variable in the data source field within the connection manager as @@variablename.It does not seem to recognise the variable even though it is set correctly.Am I missing something? |
|
qman
Constraint Violating Yak Guru
442 Posts |
Posted - 2010-10-13 : 10:45:29
|
Got it working, no need for assistance. |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-10-13 : 11:02:59
|
You could help others with the same problem if you would post your solution here... No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
qman
Constraint Violating Yak Guru
442 Posts |
Posted - 2010-10-13 : 11:21:22
|
Sure, I created an expression for my datasource, including my variable: "Data Source=" + @[User::sys_name] + ";Initial Catalog=MIBBilling;Provider=SQLNCLI.1;Integrated Security=SSPI;Auto Translate=False;"I am sure there are other options but this worked for me.Short and sweet! |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-10-13 : 11:24:32
|
thx No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
|
|
|