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

Database

 
QuestionIterating trough database tables (SQL) Pin
johan313112-Jul-06 0:59
johan313112-Jul-06 0:59 
AnswerRe: Iterating trough database tables (SQL) Pin
kumarprabhakar7412-Jul-06 2:00
kumarprabhakar7412-Jul-06 2:00 
AnswerRe: Iterating trough database tables (SQL) Pin
Steve S12-Jul-06 3:03
Steve S12-Jul-06 3:03 
AnswerRe: Iterating trough database tables (SQL) Pin
Scott Serl12-Jul-06 6:29
Scott Serl12-Jul-06 6:29 
GeneralRe: Iterating trough database tables (SQL) Pin
johan313113-Jul-06 0:35
johan313113-Jul-06 0:35 
QuestionINSERT INTO and SELECT statement... pls help urgently.. Pin
For_IT12-Jul-06 0:19
For_IT12-Jul-06 0:19 
AnswerRe: INSERT INTO and SELECT statement... pls help urgently.. Pin
VK-Cadec12-Jul-06 9:53
VK-Cadec12-Jul-06 9:53 
QuestionData Access Application Block Pin
Brendan Vogt11-Jul-06 21:22
Brendan Vogt11-Jul-06 21:22 
Hi,

I just have a couple of questions on the DAAB:

When using db.AddInParameter and the input parameter is an empty string, does it automatically add DBNull.Value to the coloumn? Or should I rather then create a method that checks for an empty string, if it is empty then add DBNull.Value to that coloumn (if it accepts NULL values).


How to get the returned value and throw an exception to the user? I usually have a @ReturnValue parameter, with ParameterDirection.ReturnValue. I was thinking of not doing it this way but rather something like:

using (dbCommand = db.GetStoredProcCommand(strSProc))
{
db.AddInParameter(dbCommand, "@CarName", DbType.String, objCar.Name);
// Rest of the parameters

IDataReader rdr = db.ExecuteReader(dbCommand);

if (rdr.Read())
{
// Do convertions here of what was returned from the stored procedure
}
}

Please can someone help advise.

Regards,
ma se
AnswerRe: Data Access Application Block Pin
kumarprabhakar7412-Jul-06 0:25
kumarprabhakar7412-Jul-06 0:25 
QuestionThe using block Pin
Brendan Vogt11-Jul-06 21:12
Brendan Vogt11-Jul-06 21:12 
AnswerRe: The using block Pin
ekhorutomwen11-Jul-06 22:49
ekhorutomwen11-Jul-06 22:49 
QuestionRe: The using block Pin
Brendan Vogt11-Jul-06 23:08
Brendan Vogt11-Jul-06 23:08 
AnswerRe: The using block [modified] Pin
ekhorutomwen11-Jul-06 23:30
ekhorutomwen11-Jul-06 23:30 
GeneralRe: The using block Pin
Brendan Vogt11-Jul-06 23:47
Brendan Vogt11-Jul-06 23:47 
AnswerRe: The using block Pin
Kevin McFarlane12-Jul-06 0:22
Kevin McFarlane12-Jul-06 0:22 
QuestionChecking for an Existing record when Updating Pin
Brendan Vogt11-Jul-06 21:08
Brendan Vogt11-Jul-06 21:08 
AnswerRe: Checking for an Existing record when Updating Pin
kumarprabhakar7412-Jul-06 0:21
kumarprabhakar7412-Jul-06 0:21 
QuestionUpdate statement Pin
angelagke11-Jul-06 18:23
angelagke11-Jul-06 18:23 
AnswerRe: Update statement Pin
Dinuj Nath11-Jul-06 20:51
Dinuj Nath11-Jul-06 20:51 
GeneralRe: Update statement Pin
angelagke11-Jul-06 21:37
angelagke11-Jul-06 21:37 
GeneralRe: Update statement Pin
VK-Cadec12-Jul-06 10:01
VK-Cadec12-Jul-06 10:01 
GeneralRe: Update statement Pin
angelagke13-Jul-06 2:07
angelagke13-Jul-06 2:07 
QuestionConnectionString works for VB6/VBNET/VBNET2003 for SQL SERVER but not for VBNET2005 SQL SERVER only local Pin
Serpiente11-Jul-06 15:16
Serpiente11-Jul-06 15:16 
QuestionOutput parameter in stored procedure Pin
leckey11-Jul-06 9:27
leckey11-Jul-06 9:27 
AnswerRe: Output parameter in stored procedure Pin
nguyenvhn11-Jul-06 22:38
nguyenvhn11-Jul-06 22:38 

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.