Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

expression for connection string

$
0
0

Hi All,

I am trying to write a expression for dynamic connection string.

When it is evaluated my expression should look like this;

Data Source=132.33.144.133;User ID=myusename;Provider=MSOLAP.4;Persist Security Info=True;Impersonation Level=Impersonate;

I created two varaibles for connection string.

IPadd    Object type

IPaddOutput   String

I use an execute sql task and foreach loop to get the value. Different connection strings are stored in a sql tables and values are taken from that table.

Now my problem is how to write expression in connection property box.

When the expression is evaluated, I should get abouve connection string.

Also I wanna substitute IP address with a parameter.

"Data Source=@IPAdd;User ID=myusename;Provider=MSOLAP.4;Persist Security Info=True;Impersonation Level=Impersonate;"

But somehow this does not work. Obvioulsy a syntax error.

Can anyone help me how to write this expression correctly.

Thanks


shamen

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>