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

Database

 
GeneralRe: Database Name Pin
Brendan Vogt2-Jan-10 22:53
Brendan Vogt2-Jan-10 22:53 
GeneralRe: Database Name Pin
Eddy Vluggen2-Jan-10 23:33
professionalEddy Vluggen2-Jan-10 23:33 
AnswerRe: Database Name Pin
Brendan Vogt2-Jan-10 23:46
Brendan Vogt2-Jan-10 23:46 
QuestionMSSQL 7 Decryptor Pin
The_Collector1-Jan-10 21:10
The_Collector1-Jan-10 21:10 
Questionreturn value, Pin
Hema Bairavan1-Jan-10 20:09
Hema Bairavan1-Jan-10 20:09 
AnswerRe: return value, Pin
Blue_Boy1-Jan-10 22:29
Blue_Boy1-Jan-10 22:29 
GeneralRe: return value, Pin
Hema Bairavan2-Jan-10 4:44
Hema Bairavan2-Jan-10 4:44 
GeneralRe: return value, Pin
DarrenShultz2-Jan-10 10:23
DarrenShultz2-Jan-10 10:23 
You may want to take a look at the sp_executesql system stored procedure: http://msdn.microsoft.com/en-us/library/ms188001.aspx[^]

This allows you execute the dynamic SQL string, as well as specify parameter definitions and parameter assignments that can bind local SQL variables to the dynamic SQL call.

DECLARE @InputParam int,
        @OutputParam int

EXECUTE sp_executesql 'query', 
                      N'@DynamicInputParam int, @DynamicOutputParam int OUTPUT', 
                      @DynamicInputParam = @InputParam,
                      @DynamicOutputParam = @OutputParam OUTPUT


Within 'query', use the dynamic parameters/variables defined in the 2nd parameter (@DynamicInputParam and @DynamicOutputParam). Within 'query', these variables will initially contain the values of (@InputParam and @OutputParam). If a dynamic parameter is defined as an OUTPUT parameter (@DynamicOutputParam), any assignment to that variable will be reflected in the local variable (@OutputParam) after the call to sp_executesql.
Questionclarification Pin
Hema Bairavan1-Jan-10 7:48
Hema Bairavan1-Jan-10 7:48 
AnswerRe: clarification Pin
Abhijit Jana1-Jan-10 8:24
professionalAbhijit Jana1-Jan-10 8:24 
GeneralRe: clarification Pin
Hema Bairavan1-Jan-10 19:30
Hema Bairavan1-Jan-10 19:30 
AnswerRe: clarification Pin
Andy_L_J1-Jan-10 8:49
Andy_L_J1-Jan-10 8:49 
GeneralRe: clarification Pin
Hema Bairavan1-Jan-10 19:32
Hema Bairavan1-Jan-10 19:32 
GeneralRe: clarification Pin
DarrenShultz2-Jan-10 11:07
DarrenShultz2-Jan-10 11:07 
GeneralRe: clarification Pin
Hema Bairavan2-Jan-10 17:36
Hema Bairavan2-Jan-10 17:36 
QuestionRequire StoredProc Pin
yadlaprasad31-Dec-09 22:00
yadlaprasad31-Dec-09 22:00 
AnswerRe: Require StoredProc Pin
Blue_Boy31-Dec-09 22:16
Blue_Boy31-Dec-09 22:16 
AnswerRe: Require StoredProc Pin
yadlaprasad31-Dec-09 22:20
yadlaprasad31-Dec-09 22:20 
GeneralRe: Require StoredProc Pin
Blue_Boy31-Dec-09 22:33
Blue_Boy31-Dec-09 22:33 
AnswerRe: Require StoredProc Pin
Niladri_Biswas3-Jan-10 15:27
Niladri_Biswas3-Jan-10 15:27 
QuestionLooking for field name standards documents Pin
Ray Cassick31-Dec-09 21:54
Ray Cassick31-Dec-09 21:54 
AnswerRe: Looking for field name standards documents Pin
Eddy Vluggen2-Jan-10 7:27
professionalEddy Vluggen2-Jan-10 7:27 
QuestionUsing Stored Procedures as a field (SQL Server 2008) Pin
willempipi31-Dec-09 0:34
willempipi31-Dec-09 0:34 
AnswerRe: Using Stored Procedures as a field (SQL Server 2008) Pin
Corporal Agarn31-Dec-09 0:59
professionalCorporal Agarn31-Dec-09 0:59 
GeneralRe: Using Stored Procedures as a field (SQL Server 2008) Pin
willempipi31-Dec-09 1:30
willempipi31-Dec-09 1:30 

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.