Yongpil


Hi there,

I need some help on how to access variables using a file connection... if that's not possible even direct input.

I made a variable for the server name, and now I only need to know how to call the variable in the script.

any help is appreciated. thanks





Re: Accessing variables using file connection in Execute SQL Task

Yongpil


anyone...







Re: Accessing variables using file connection in Execute SQL Task

Arnie Rowland

You need to provide more information -it is not clear what you are attempting to accomplish.

Also, there is the system variable @@Servername -it will ALWAYS provide the name of the current attached server.







Re: Accessing variables using file connection in Execute SQL Task

Yongpil

In a package I created, I have several Execute SQL Tasks. each Execute SQL Task brings in a script using file connection (SQLSourceType).

So what I need to do is to make several copies of that package.. let's say 10.

and let's say in one package there are 10 execute sql tasks. which means 10 scripts.

so the problem is each of the 10 packages have to use the same scripts but it is connecting to a different server name. So I was wondering if I could make variables for the server names, then I only need 10 scripts (it would be 100 if I make scripts for each sql tasks, 10 packages * 10 sql tasks) cuz I can just use a variable to specify the server names.

whoa.. confusing but I hope this helps you to understand me better.

Thanks,