Click here to Skip to main content
16,006,341 members
Home / Discussions / Database
   

Database

 
QuestionTable-value function performance Pin
kmaclean9-Jan-07 9:51
kmaclean9-Jan-07 9:51 
QuestionOpposite of the SQL "IN" statement? Pin
dspyank9-Jan-07 6:17
dspyank9-Jan-07 6:17 
QuestionRe: Opposite of the SQL "IN" statement? Pin
Chris Meech9-Jan-07 6:24
Chris Meech9-Jan-07 6:24 
AnswerRe: Opposite of the SQL "IN" statement? Pin
kmaclean9-Jan-07 11:32
kmaclean9-Jan-07 11:32 
AnswerRe: Opposite of the SQL "IN" statement? Pin
Saud AKhter16-Jan-07 20:22
Saud AKhter16-Jan-07 20:22 
QuestionProcedure with multiple parameters and multiple Select Statements Pin
rodney.fetterolf9-Jan-07 3:48
rodney.fetterolf9-Jan-07 3:48 
AnswerRe: Procedure with multiple parameters and multiple Select Statements Pin
andyharman9-Jan-07 5:29
professionalandyharman9-Jan-07 5:29 
AnswerRe: Procedure with multiple parameters and multiple Select Statements Pin
M.H.1.2.314-Jan-07 21:46
M.H.1.2.314-Jan-07 21:46 
You could use something like this. Default the parameters to null then coalesce or inull the parameter. The example proc below returns one result set but if you wanted to you could just as easily return one result set per parameter passed in.

Create Proc usp_SearchItems
@pName nvarchar(75) = null,
@pNSN nvarchar(16)= null,
@pTPart nvarchar(20)=null,
@pVPart nvarchar(50) =null

AS
Select *
From tblItems
Where (fldInactive=0)
and fldItem Like '%' + coalesce( @pName , fldItem) + '%'
and fldNSN Like '%' + coalesce( @pNSN , fldNSN)+ '%'
....

QuestionWhat is "N" in OBJECTPROPERTY(id, N'IsUserTable') = 1) Pin
Nick1977_209-Jan-07 3:06
Nick1977_209-Jan-07 3:06 
AnswerRe: What is "N" in OBJECTPROPERTY(id, N'IsUserTable') = 1) Pin
Pete O'Hanlon9-Jan-07 3:36
mvePete O'Hanlon9-Jan-07 3:36 
GeneralRe: What is "N" in OBJECTPROPERTY(id, N'IsUserTable') = 1) Pin
Rob Graham9-Jan-07 3:46
Rob Graham9-Jan-07 3:46 
GeneralRe: What is "N" in OBJECTPROPERTY(id, N'IsUserTable') = 1) Pin
Pete O'Hanlon9-Jan-07 4:11
mvePete O'Hanlon9-Jan-07 4:11 
GeneralRe: What is "N" in OBJECTPROPERTY(id, N'IsUserTable') = 1) Pin
Rob Graham9-Jan-07 6:45
Rob Graham9-Jan-07 6:45 
GeneralRe: What is "N" in OBJECTPROPERTY(id, N'IsUserTable') = 1) Pin
Nick1977_209-Jan-07 17:39
Nick1977_209-Jan-07 17:39 
Question.Net 2.0 Table Adapter best practice Pin
Adam Crawford9-Jan-07 0:58
Adam Crawford9-Jan-07 0:58 
AnswerRe: .Net 2.0 Table Adapter best practice Pin
Rob Graham9-Jan-07 3:52
Rob Graham9-Jan-07 3:52 
GeneralRe: .Net 2.0 Table Adapter best practice Pin
Adam Crawford9-Jan-07 4:22
Adam Crawford9-Jan-07 4:22 
GeneralRe: .Net 2.0 Table Adapter best practice Pin
Pete O'Hanlon9-Jan-07 4:36
mvePete O'Hanlon9-Jan-07 4:36 
GeneralRe: .Net 2.0 Table Adapter best practice Pin
Rob Graham9-Jan-07 6:58
Rob Graham9-Jan-07 6:58 
QuestionFine Tuning of Query Pin
Sasmi9-Jan-07 0:56
Sasmi9-Jan-07 0:56 
AnswerRe: Fine Tuning of Query Pin
Pete O'Hanlon9-Jan-07 1:30
mvePete O'Hanlon9-Jan-07 1:30 
Questionretrieving data from sql database Pin
rahulpasupuleti8-Jan-07 23:53
rahulpasupuleti8-Jan-07 23:53 
AnswerRe: retrieving data from sql database Pin
Colin Angus Mackay9-Jan-07 0:30
Colin Angus Mackay9-Jan-07 0:30 
QuestionIntegrating SQL server 2005 Reporting Services into asp.net Application Pin
Sarath Vellampalli Babu8-Jan-07 20:28
Sarath Vellampalli Babu8-Jan-07 20:28 
Questionconnected and unconnected layer Pin
groundzero1118-Jan-07 20:27
groundzero1118-Jan-07 20:27 

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.