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

Database

 
AnswerRe: Do SQL server have some functions as like "Select bottom"? Pin
Mycroft Holmes31-Jan-10 0:00
professionalMycroft Holmes31-Jan-10 0:00 
AnswerRe: Do SQL server have some functions as like "Select bottom"? Pin
dan!sh 31-Jan-10 0:14
professional dan!sh 31-Jan-10 0:14 
QuestionWhy I can't search SQL database with WHERE with a text variable? Pin
Curious 200930-Jan-10 10:28
Curious 200930-Jan-10 10:28 
AnswerRe: Why I can't search SQL database with WHERE with a text variable? Pin
Mycroft Holmes30-Jan-10 13:03
professionalMycroft Holmes30-Jan-10 13:03 
GeneralRe: Why I can't search SQL database with WHERE with a text variable? Pin
Curious 200930-Jan-10 13:23
Curious 200930-Jan-10 13:23 
GeneralRe: Why I can't search SQL database with WHERE with a text variable? Pin
Mycroft Holmes30-Jan-10 15:31
professionalMycroft Holmes30-Jan-10 15:31 
GeneralRe: Why I can't search SQL database with WHERE with a text variable? Pin
Curious 200930-Jan-10 15:49
Curious 200930-Jan-10 15:49 
Questionnested procedure table Pin
Sasmi_Office29-Jan-10 19:45
Sasmi_Office29-Jan-10 19:45 
AnswerRe: nested procedure table Pin
Mycroft Holmes30-Jan-10 12:56
professionalMycroft Holmes30-Jan-10 12:56 
QuestionNeuroDegenerative Problem in SQL Pin
snouto29-Jan-10 18:45
snouto29-Jan-10 18:45 
AnswerRe: NeuroDegenerative Problem in SQL Pin
Mycroft Holmes29-Jan-10 22:26
professionalMycroft Holmes29-Jan-10 22:26 
Questionurgent : list all available instance on lan Pin
Vishal Saxena dev29-Jan-10 18:02
Vishal Saxena dev29-Jan-10 18:02 
AnswerRe: urgent : list all available instance on lan Pin
Vishal Saxena dev31-Jan-10 18:22
Vishal Saxena dev31-Jan-10 18:22 
GeneralRe: urgent : list all available instance on lan Pin
Mycroft Holmes31-Jan-10 18:28
professionalMycroft Holmes31-Jan-10 18:28 
GeneralRe: urgent : list all available instance on lan Pin
Vishal Saxena dev31-Jan-10 20:08
Vishal Saxena dev31-Jan-10 20:08 
QuestionUpdating Table Pin
vhassan28-Jan-10 15:14
vhassan28-Jan-10 15:14 
AnswerRe: Updating Table Pin
Luc Pattyn28-Jan-10 15:41
sitebuilderLuc Pattyn28-Jan-10 15:41 
GeneralRe: Updating Table Pin
vhassan28-Jan-10 15:56
vhassan28-Jan-10 15:56 
GeneralRe: Updating Table Pin
Avi Berger28-Jan-10 16:12
Avi Berger28-Jan-10 16:12 
GeneralRe: Updating Table Pin
vhassan28-Jan-10 19:55
vhassan28-Jan-10 19:55 
AnswerRe: Updating Table Pin
Avi Berger28-Jan-10 15:48
Avi Berger28-Jan-10 15:48 
GeneralRe: Updating Table Pin
vhassan28-Jan-10 16:02
vhassan28-Jan-10 16:02 
GeneralRe: Updating Table Pin
Avi Berger28-Jan-10 16:17
Avi Berger28-Jan-10 16:17 
QuestionT-SQL - Using a resultset from a Stored Procedure Pin
Steven J Jowett28-Jan-10 5:20
Steven J Jowett28-Jan-10 5:20 
AnswerRe: T-SQL - Using a resultset from a Stored Procedure Pin
Mycroft Holmes28-Jan-10 11:59
professionalMycroft Holmes28-Jan-10 11:59 
You have a number of choice on how to transport a resultset from a proc

Turn the proc into a view - always the first choice but rarely possible with a pivot

Use a UDF - also dies on the requirement of dynamic SQL to define the columns

Shove the resultset into an XML variable and pass it back as an out parameter - there are a number of articles on CP on the subject. I have used this once and while it worked I have a strong dislike for XML.

Use a global temp table. This is my default option but it has some drawbacks like using the tempdb, house keeping the tables and race issues if it is a popular proc.

Never underestimate the power of human stupidity
RAH

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.