Click here to Skip to main content
15,896,606 members
Home / Discussions / Database
   

Database

 
QuestionCould not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE' error in VS 2008 Pin
MPCHAM28-May-08 3:49
MPCHAM28-May-08 3:49 
AnswerRe: Could not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE' error in VS 2008 Pin
Mike Dimmick2-Jun-08 5:43
Mike Dimmick2-Jun-08 5:43 
QuestionNeed to display the links in datalist of pros in redcolor who r working for us Pin
subbu.sk28-May-08 2:50
subbu.sk28-May-08 2:50 
QuestionBinary data with scripts... Pin
Chinners28-May-08 2:41
Chinners28-May-08 2:41 
AnswerRe: Binary data with scripts... Pin
Chinners29-May-08 5:24
Chinners29-May-08 5:24 
Questionneed to locate all the SQL servers and their databases in domain Pin
S.Aijaz28-May-08 1:54
S.Aijaz28-May-08 1:54 
Questionparameter problem Pin
Mr.Kode28-May-08 1:07
Mr.Kode28-May-08 1:07 
AnswerRe: parameter problem Pin
Mark J. Miller29-May-08 4:15
Mark J. Miller29-May-08 4:15 
The stored procedure definition should look like this:
<br />
CREATE PROCEDURE myProc<br />
  @param1 INT = NULL<br />
  @param2 VARCHAR(50) = NULL<br />
AS<br />
  SELECT * FROM [sometable] WHERE col1= COALESCE(@param1, col1) AND col2 = COALESCE(@param2, col2)<br />
GO<br />


You will still have to call Parameters.Add() for each parameter defined by the stored procedure, but now you will be able to pass null values to the procedure w/o getting any exceptions. But you'll need to be aware that you will need to allow for null values to be passed to the query and the effects that will cause. So you'll need to use COALESCE or some other method to allow for nulls in the query.


QuestionApplication Side, SQL Queries. Pin
ctrlnick27-May-08 21:28
ctrlnick27-May-08 21:28 
AnswerRe: Application Side, SQL Queries. Pin
Mark J. Miller29-May-08 4:03
Mark J. Miller29-May-08 4:03 
Questionsql server locking mechanism Pin
MozhdehQeraati27-May-08 21:01
MozhdehQeraati27-May-08 21:01 
AnswerRe: sql server locking mechanism Pin
Ashfield27-May-08 21:10
Ashfield27-May-08 21:10 
GeneralRe: sql server locking mechanism Pin
MozhdehQeraati27-May-08 21:21
MozhdehQeraati27-May-08 21:21 
GeneralRe: sql server locking mechanism Pin
Ashfield27-May-08 21:36
Ashfield27-May-08 21:36 
QuestionUpdate an image field Pin
imannasr27-May-08 18:55
imannasr27-May-08 18:55 
AnswerRe: Update an image field Pin
Christian Graus28-May-08 14:28
protectorChristian Graus28-May-08 14:28 
NewsSQL Server 2008 Jumpstart Event Dev Training Now Online Pin
brucedkyle27-May-08 16:16
brucedkyle27-May-08 16:16 
QuestionIncorrect syntax on output parameter? [modified] Pin
markymark8227-May-08 10:34
markymark8227-May-08 10:34 
AnswerRe: Incorrect syntax on output parameter? Pin
Christian Graus27-May-08 14:25
protectorChristian Graus27-May-08 14:25 
GeneralRe: Incorrect syntax on output parameter? Pin
markymark8228-May-08 0:02
markymark8228-May-08 0:02 
QuestionVery slow ORDER BY Pin
legionnaire27-May-08 7:23
legionnaire27-May-08 7:23 
AnswerRe: Very slow ORDER BY Pin
Christian Graus27-May-08 14:26
protectorChristian Graus27-May-08 14:26 
QuestionVisual Studio Server Explorer issue... [modified] Pin
Rombolt27-May-08 6:21
Rombolt27-May-08 6:21 
QuestionUploading a website with a database Pin
Mohammad A Gdeisat27-May-08 5:36
Mohammad A Gdeisat27-May-08 5:36 
AnswerRe: Uploading a website with a database Pin
Krazy Programmer27-May-08 7:32
Krazy Programmer27-May-08 7:32 

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.