![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a DTS package that is used on many servers. I am trying to use activeX to check which instance I am on and then set my datasource to be that instance. Since I have several of these packages I was using a file on the D: drive of each server to get the value, but alas when the server fails over to the ModelOffice through clustering, I still have a file on D: but it is pointing to the wrong instance for the production. Any ideas how I can step outside of an activeX script and see which instance I am executing on. I don't need the physical OS server but the SQL Instance. |
#3
| |||
| |||
|
|
Does @@SERVERNAME not provide the correct value? -- Arnie Rowland, Ph.D. Westwood Consulting, Inc Most good judgment comes from experience. Most experience comes from bad judgment. - Anonymous You can't help someone get up a hill without getting a little closer to the top yourself. - H. Norman Schwarzkopf "Thom" <Thom (AT) discussions (DOT) microsoft.com> wrote in message news:8C99DF82-EED1-43CB-A632-9095D68A38A8 (AT) microsoft (DOT) com... I have a DTS package that is used on many servers. I am trying to use activeX to check which instance I am on and then set my datasource to be that instance. Since I have several of these packages I was using a file on the D: drive of each server to get the value, but alas when the server fails over to the ModelOffice through clustering, I still have a file on D: but it is pointing to the wrong instance for the production. Any ideas how I can step outside of an activeX script and see which instance I am executing on. I don't need the physical OS server but the SQL Instance. |
#4
| |||
| |||
|
|
I have a DTS package that is used on many servers. I am trying to use activeX to check which instance I am on and then set my datasource to be that instance. Since I have several of these packages I was using a file on the D: drive of each server to get the value, but alas when the server fails over to the ModelOffice through clustering, I still have a file on D: but it is pointing to the wrong instance for the production. Any ideas how I can step outside of an activeX script and see which instance I am executing on. I don't need the physical OS server but the SQL Instance. |
![]() |
| Thread Tools | |
| Display Modes | |
| |