Click here to Skip to main content
15,915,752 members
Home / Discussions / Database
   

Database

 
AnswerRe: Using Change Data Capture to Replicate data Pin
eusimonica8-Jan-12 23:32
eusimonica8-Jan-12 23:32 
AnswerRe: Using Change Data Capture to Replicate data Pin
shreekar11-Jan-12 7:44
shreekar11-Jan-12 7:44 
QuestionAutomate job schedule Pin
Neelesh_Rmsi2-Jan-12 23:10
Neelesh_Rmsi2-Jan-12 23:10 
AnswerRe: Automate job schedule Pin
SilimSayo3-Jan-12 10:58
SilimSayo3-Jan-12 10:58 
AnswerRe: Automate job schedule Pin
SilimSayo6-Jan-12 13:58
SilimSayo6-Jan-12 13:58 
QuestionOptimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Nadia Monalisa1-Jan-12 14:46
Nadia Monalisa1-Jan-12 14:46 
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Luc Pattyn1-Jan-12 15:31
sitebuilderLuc Pattyn1-Jan-12 15:31 
GeneralRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Nadia Monalisa1-Jan-12 16:16
Nadia Monalisa1-Jan-12 16:16 
Hi Luc,

Thanks for your reply. Yes, thats what I realize, I would never do the same thing in my programming. (I am a C# programmer) But the problem is, I dont know the correct TSQL Syntax / operators that can let me get rid of this loop.

My intention to get data from stored procedure in the following structure

-------------------------
string product_name,
int affectedRows,
bool hasError,
int[] someIds
-----------------------

Now, everything was fine until I reached the need to get int[] someIds. I was lost, how I could do that. If I just needed to return SomeIds (: int[]) then, yes, I could simply return the result set, but as I needed to get the other string, bool, int etc type data so I created a temporary table in my procedure to store the int values (someIDs : int[]) then, I used the specified procedure to read back the int ids from the temporary table and serialize as comma separated string to return.

Would you please show me any technique to get such data structure from stored procedure ?
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Luc Pattyn1-Jan-12 16:57
sitebuilderLuc Pattyn1-Jan-12 16:57 
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
PIEBALDconsult1-Jan-12 16:07
mvePIEBALDconsult1-Jan-12 16:07 
GeneralRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Nadia Monalisa1-Jan-12 21:29
Nadia Monalisa1-Jan-12 21:29 
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Shameel1-Jan-12 18:40
professionalShameel1-Jan-12 18:40 
GeneralRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Nadia Monalisa1-Jan-12 21:30
Nadia Monalisa1-Jan-12 21:30 
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
unclejimbob5-Jan-12 11:52
unclejimbob5-Jan-12 11:52 
QuestionTable not updated when value not set Pin
lionelcyril29-Dec-11 19:36
lionelcyril29-Dec-11 19:36 
AnswerRe: Table not updated when value not set Pin
Md. Marufuzzaman29-Dec-11 21:01
professionalMd. Marufuzzaman29-Dec-11 21:01 
AnswerRe: Table not updated when value not set Pin
jschell30-Dec-11 9:04
jschell30-Dec-11 9:04 
QuestionHow to auto detect row version, if some one update manually Pin
Md. Marufuzzaman29-Dec-11 19:25
professionalMd. Marufuzzaman29-Dec-11 19:25 
SuggestionRe: How to auto detect row version, if some one update manually Pin
Jan Steyn29-Dec-11 20:59
Jan Steyn29-Dec-11 20:59 
GeneralRe: How to auto detect row version, if some one update manually Pin
Md. Marufuzzaman29-Dec-11 21:28
professionalMd. Marufuzzaman29-Dec-11 21:28 
GeneralRe: How to auto detect row version, if some one update manually Pin
PIEBALDconsult30-Dec-11 4:13
mvePIEBALDconsult30-Dec-11 4:13 
AnswerRe: How to auto detect row version, if some one update manually Pin
Eddy Vluggen30-Dec-11 5:26
professionalEddy Vluggen30-Dec-11 5:26 
QuestionGrant permissions to role on another role Pin
Danzy8329-Dec-11 13:27
Danzy8329-Dec-11 13:27 
AnswerRe: Grant permissions to role on another role Pin
coded00729-Dec-11 15:23
professionalcoded00729-Dec-11 15:23 
QuestionHow Can We Avoid Creatng Closed Pathes in our Design Pin
yousefshokati29-Dec-11 1:15
yousefshokati29-Dec-11 1:15 

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.