Click here to Skip to main content
15,921,941 members
Home / Discussions / Database
   

Database

 
GeneralRe: how to use max function Pin
Vimalsoft(Pty) Ltd30-Aug-07 19:40
professionalVimalsoft(Pty) Ltd30-Aug-07 19:40 
AnswerRe: how to use max function Pin
Vimalsoft(Pty) Ltd30-Aug-07 1:14
professionalVimalsoft(Pty) Ltd30-Aug-07 1:14 
GeneralRe: how to use max function Pin
prasadbuddhika30-Aug-07 2:25
prasadbuddhika30-Aug-07 2:25 
GeneralRe: how to use max function Pin
Urs Enzler30-Aug-07 7:22
Urs Enzler30-Aug-07 7:22 
GeneralRe: how to use max function Pin
Vimalsoft(Pty) Ltd30-Aug-07 19:47
professionalVimalsoft(Pty) Ltd30-Aug-07 19:47 
QuestionHow to create a new record, as part of a batch run, in MSAccess Pin
jonathanm529-Aug-07 22:08
jonathanm529-Aug-07 22:08 
AnswerRe: How to create a new record, as part of a batch run, in MSAccess Pin
Pete O'Hanlon29-Aug-07 23:05
mvePete O'Hanlon29-Aug-07 23:05 
QuestionVariable database name when executing stored procedure Pin
John Gathogo29-Aug-07 22:00
John Gathogo29-Aug-07 22:00 
I am schema qualifying a stored procedure when calling it such that if I have a database named 'MyDB1' and the stored procedure 'GetContacts' that belongs to 'dbo' schema, I can call it like:

EXEC MyDB1.dbo.GetContacts

However, I need to be able to dynamically call the stored procedure from different databases that that have the same stored procedure such that i can call them like:

EXEC MyDB1.dbo.GetContacts
EXEC MyDB2.dbo.GetContacts
EXEC MyDB3.dbo.GetContacts

Is there a way I can use a variable name in place of the database name such that I can call the stored procedure like:

DECLARE @DBName NVARCHAR(20)
SET @DBName = 'MyDB1'

EXEC @DBName.dbo.GetContacts
and so forth, ...

Or, what options do I have?
AnswerRe: Variable database name when executing stored procedure Pin
DLM@TD14-Sep-07 11:31
DLM@TD14-Sep-07 11:31 
QuestionDIFFERENCE Pin
aprasy29-Aug-07 9:30
aprasy29-Aug-07 9:30 
AnswerRe: DIFFERENCE Pin
Pete O'Hanlon29-Aug-07 9:52
mvePete O'Hanlon29-Aug-07 9:52 
QuestionSQL Query for Excel file Pin
Swisher2429-Aug-07 6:55
Swisher2429-Aug-07 6:55 
AnswerRe: SQL Query for Excel file Pin
aztekka29-Aug-07 10:13
aztekka29-Aug-07 10:13 
GeneralRe: SQL Query for Excel file Pin
Swisher2430-Aug-07 4:00
Swisher2430-Aug-07 4:00 
Questiondata access Pin
Masoumeh...29-Aug-07 4:44
Masoumeh...29-Aug-07 4:44 
Questionhow to pass the output parameter while execute the stored procedure Pin
aprasy29-Aug-07 0:32
aprasy29-Aug-07 0:32 
AnswerRe: how to pass the output parameter while execute the stored procedure Pin
Rami Said Abd Alhalim29-Aug-07 3:54
Rami Said Abd Alhalim29-Aug-07 3:54 
AnswerRe: how to pass the output parameter while execute the stored procedure Pin
Rami Said Abd Alhalim29-Aug-07 3:57
Rami Said Abd Alhalim29-Aug-07 3:57 
GeneralRe: how to pass the output parameter while execute the stored procedure Pin
aprasy29-Aug-07 9:28
aprasy29-Aug-07 9:28 
QuestionSimultaneous access to DB Pin
blackjack215029-Aug-07 0:30
blackjack215029-Aug-07 0:30 
AnswerRe: Simultaneous access to DB Pin
Colin Angus Mackay29-Aug-07 2:21
Colin Angus Mackay29-Aug-07 2:21 
GeneralRe: Simultaneous access to DB Pin
blackjack215029-Aug-07 2:43
blackjack215029-Aug-07 2:43 
QuestionWhat data type is case sensitive? Pin
Big Ralph29-Aug-07 0:28
Big Ralph29-Aug-07 0:28 
AnswerRe: What data type is case sensitive? Pin
Colin Angus Mackay29-Aug-07 2:17
Colin Angus Mackay29-Aug-07 2:17 
GeneralRe: What data type is case sensitive? Pin
Big Ralph29-Aug-07 3:28
Big Ralph29-Aug-07 3:28 

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.