Click here to Skip to main content
15,925,499 members
Home / Discussions / Database
   

Database

 
GeneralRe: Connection Pin
Colin Angus Mackay29-Apr-06 5:23
Colin Angus Mackay29-Apr-06 5:23 
QuestionHow should my database like Pin
LovelyHelp28-Apr-06 20:06
LovelyHelp28-Apr-06 20:06 
AnswerRe: How should my database like Pin
Colin Angus Mackay28-Apr-06 21:08
Colin Angus Mackay28-Apr-06 21:08 
GeneralRe: How should my database like Pin
LovelyHelp29-Apr-06 3:45
LovelyHelp29-Apr-06 3:45 
GeneralRe: How should my database like Pin
Colin Angus Mackay29-Apr-06 4:03
Colin Angus Mackay29-Apr-06 4:03 
GeneralRe: How should my database like Pin
LovelyHelp29-Apr-06 4:31
LovelyHelp29-Apr-06 4:31 
GeneralRe: How should my database like Pin
Paul Conrad29-Apr-06 4:52
professionalPaul Conrad29-Apr-06 4:52 
GeneralRe: How should my database like Pin
Colin Angus Mackay29-Apr-06 5:11
Colin Angus Mackay29-Apr-06 5:11 
LovelyHelp wrote:
is this two line of code
cmd.Parameters.Add("@userName", User.Identity.Name);
cmd.Parameters.Add("@productID", productID);
same as
cmdSelect.Parameters.Add("@userName", SqlDbType.VarChar, 50).Value = User.Identity.Name
cmdSelect.Parameters.Add("@productID", SqlDbType.Int, 4).Value = XXXXXX


Your two lines of code are slightly more efficient because the application does not need to do a roundtrip to the database to get the types of the parameter because you supply them. The code I put was for simplicity.

Also, I don't see your code because you have not escaped the < symbols - You need to replace them with &lt; so they show up.

LovelyHelp wrote:
I think you are using c right


I'm using C#


"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)

My: Website | Blog
GeneralRe: How should my database like Pin
LovelyHelp29-Apr-06 5:32
LovelyHelp29-Apr-06 5:32 
GeneralRe: How should my database like Pin
LovelyHelp29-Apr-06 4:36
LovelyHelp29-Apr-06 4:36 
GeneralRe: How should my database like Pin
Colin Angus Mackay29-Apr-06 5:19
Colin Angus Mackay29-Apr-06 5:19 
GeneralRe: How should my database like Pin
LovelyHelp29-Apr-06 5:41
LovelyHelp29-Apr-06 5:41 
QuestionUrgent help from an expert! Pin
JUNEYT28-Apr-06 14:16
JUNEYT28-Apr-06 14:16 
QuestionMS Access and C# Help Pin
achrafus28-Apr-06 11:38
achrafus28-Apr-06 11:38 
AnswerRe: MS Access and C# Help Pin
Colin Angus Mackay28-Apr-06 21:14
Colin Angus Mackay28-Apr-06 21:14 
QuestionAccess Databases Pin
QC_200028-Apr-06 4:00
QC_200028-Apr-06 4:00 
AnswerRe: Access Databases Pin
Rob Graham28-Apr-06 5:41
Rob Graham28-Apr-06 5:41 
GeneralRe: Access Databases Pin
QC_200028-Apr-06 5:59
QC_200028-Apr-06 5:59 
QuestionHow to FTP a File using SQL Server 2000? Pin
pubududilena28-Apr-06 3:57
pubududilena28-Apr-06 3:57 
QuestionUnpredicted behaviour i IN clause Pin
qur28-Apr-06 2:42
qur28-Apr-06 2:42 
Questionsearch case insensitive in access Pin
klakero28-Apr-06 1:16
klakero28-Apr-06 1:16 
QuestionRe: search case insensitive in access Pin
Eric Dahlvang28-Apr-06 5:47
Eric Dahlvang28-Apr-06 5:47 
QuestionEnterprise library Pin
WDI27-Apr-06 23:33
WDI27-Apr-06 23:33 
QuestionQuery on UNION Query Pin
DiligenZ27-Apr-06 19:00
DiligenZ27-Apr-06 19:00 
AnswerRe: Query on UNION Query Pin
Colin Angus Mackay27-Apr-06 20:38
Colin Angus Mackay27-Apr-06 20: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.