Click here to Skip to main content
15,913,773 members
Home / Discussions / Database
   

Database

 
QuestionChanging Server names Dynamically in Stored Procedure Pin
indian14325-Jul-13 6:42
indian14325-Jul-13 6:42 
Hi,

I have a stored procedure, in I want to get data from two different Servers. For example Server1 is the one in which Stored procedure is going to be executed. But the Server2 is different. And for the convenience of moving the Stored proc in different environments easily I want it to be changed dynamically. Like Server2 name can be different for Dev env, Test env and production env.

Without much changes I want it to be changed easily either by using a variable, parameter or alias name. I know these are the way I can implement that. If somebody can give me a link or a code snippet that would be really helpful.

Please help me, I need it urgent, I am also googling for it. But your support helps me a lot.

Thanks in advance. Sincerely
Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

AnswerRe: Changing Server names Dynamically in Stored Procedure PinPopular
Richard Deeming25-Jul-13 7:26
mveRichard Deeming25-Jul-13 7:26 
GeneralRe: Changing Server names Dynamically in Stored Procedure Pin
indian14325-Jul-13 8:59
indian14325-Jul-13 8:59 
GeneralRe: Changing Server names Dynamically in Stored Procedure Pin
Richard Deeming25-Jul-13 9:07
mveRichard Deeming25-Jul-13 9:07 
GeneralRe: Changing Server names Dynamically in Stored Procedure Pin
indian14325-Jul-13 9:20
indian14325-Jul-13 9:20 
GeneralRe: Changing Server names Dynamically in Stored Procedure Pin
GuyThiebaut26-Jul-13 2:03
professionalGuyThiebaut26-Jul-13 2:03 
QuestionSSIS package question Pin
vkEE24-Jul-13 9:48
vkEE24-Jul-13 9:48 
AnswerRe: SSIS package question Pin
PIEBALDconsult25-Jul-13 3:42
mvePIEBALDconsult25-Jul-13 3:42 
GeneralRe: SSIS package question Pin
vkEE25-Jul-13 3:46
vkEE25-Jul-13 3:46 
QuestionUpdate trigger. Pin
Septimus Hedgehog24-Jul-13 4:57
Septimus Hedgehog24-Jul-13 4:57 
AnswerRe: Update trigger. Pin
Richard Deeming24-Jul-13 8:05
mveRichard Deeming24-Jul-13 8:05 
GeneralRe: Update trigger. Pin
Septimus Hedgehog24-Jul-13 11:33
Septimus Hedgehog24-Jul-13 11:33 
GeneralRe: Update trigger. Pin
Mycroft Holmes24-Jul-13 12:47
professionalMycroft Holmes24-Jul-13 12:47 
GeneralRe: Update trigger. Pin
Septimus Hedgehog24-Jul-13 20:15
Septimus Hedgehog24-Jul-13 20:15 
GeneralRe: Update trigger. Pin
Mycroft Holmes24-Jul-13 20:22
professionalMycroft Holmes24-Jul-13 20:22 
GeneralRe: Update trigger. Pin
Shameel25-Jul-13 5:08
professionalShameel25-Jul-13 5:08 
GeneralRe: Update trigger. Pin
Richard Deeming25-Jul-13 6:25
mveRichard Deeming25-Jul-13 6:25 
QuestionHow to identify identical master-detail records. Pin
David Mujica23-Jul-13 10:44
David Mujica23-Jul-13 10:44 
AnswerRe: How to identify identical master-detail records. Pin
Richard Deeming23-Jul-13 12:03
mveRichard Deeming23-Jul-13 12:03 
GeneralThanks Pin
David Mujica24-Jul-13 5:17
David Mujica24-Jul-13 5:17 
GeneralRe: Thanks Pin
Mycroft Holmes24-Jul-13 12:40
professionalMycroft Holmes24-Jul-13 12:40 
GeneralRe: Thanks Pin
Richard Deeming25-Jul-13 3:32
mveRichard Deeming25-Jul-13 3:32 
AnswerRe: How to identify identical master-detail records. Pin
Shameel23-Jul-13 23:29
professionalShameel23-Jul-13 23:29 
AnswerRe: How to identify identical master-detail records. Pin
GuyThiebaut24-Jul-13 1:52
professionalGuyThiebaut24-Jul-13 1:52 
QuestionRank over () / row_number over in sqlite Pin
jojoba2022-Jul-13 20:14
jojoba2022-Jul-13 20:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.