Click here to Skip to main content
15,920,828 members
Home / Discussions / Database
   

Database

 
Generalstart MSSQLServer Service from windows 98 Pin
Renjith Ramachandran13-Aug-04 1:07
Renjith Ramachandran13-Aug-04 1:07 
GeneralRe: start MSSQLServer Service from windows 98 Pin
Colin Angus Mackay13-Aug-04 3:46
Colin Angus Mackay13-Aug-04 3:46 
GeneralRe: start MSSQLServer Service from windows 98 Pin
Renjith Ramachandran13-Aug-04 5:26
Renjith Ramachandran13-Aug-04 5:26 
GeneralRe: start MSSQLServer Service from windows 98 Pin
Colin Angus Mackay13-Aug-04 13:09
Colin Angus Mackay13-Aug-04 13:09 
GeneralODBC Pin
lawred212-Aug-04 4:02
lawred212-Aug-04 4:02 
GeneralRe: ODBC Pin
Chris Meech13-Aug-04 6:56
Chris Meech13-Aug-04 6:56 
Generalcompare values from user to database using C# Pin
dyerstein11-Aug-04 14:56
dyerstein11-Aug-04 14:56 
GeneralRe: compare values from user to database using C# Pin
Colin Angus Mackay12-Aug-04 0:10
Colin Angus Mackay12-Aug-04 0:10 
You might find it better and more efficient to plug those values into the query rather than get everything in the table and compare them on the client end.

SELECT COUNT(*) FROM Traders WHERE UserName = @UserName AND Password = @Password


You then add Parameters to the command for @UserName and @Password

Then you can use:
int count = (int)thisCommand.ExecuteScalar();


A value of 0 indicates no match, or 1 indicates a match. If the value is anything else your database contains duplicated UserName/Password combinations.

Does this help?


"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!


GeneralRe: compare values from user to database using C# Pin
dyerstein16-Aug-04 5:34
dyerstein16-Aug-04 5:34 
GeneralVB.NET Console application and SQLServer Pin
sybux200011-Aug-04 4:54
sybux200011-Aug-04 4:54 
GeneralRe: VB.NET Console application and SQLServer Pin
VenkatFor.NET11-Aug-04 5:14
VenkatFor.NET11-Aug-04 5:14 
GeneralRe: VB.NET Console application and SQLServer Pin
sybux200011-Aug-04 6:30
sybux200011-Aug-04 6:30 
GeneralRe: VB.NET Console application and SQLServer Pin
VenkatFor.NET11-Aug-04 6:56
VenkatFor.NET11-Aug-04 6:56 
GeneralRe: VB.NET Console application and SQLServer Pin
Rob Graham11-Aug-04 7:10
Rob Graham11-Aug-04 7:10 
GeneralRe: VB.NET Console application and SQLServer Pin
sybux200011-Aug-04 19:28
sybux200011-Aug-04 19:28 
GeneralRe: VB.NET Console application and SQLServer Pin
sybux200012-Aug-04 2:59
sybux200012-Aug-04 2:59 
QuestionSELECT statements in INNER JOINs? Pin
MS le Roux11-Aug-04 4:16
MS le Roux11-Aug-04 4:16 
AnswerRe: SELECT statements in INNER JOINs? Pin
Michael Potter11-Aug-04 4:26
Michael Potter11-Aug-04 4:26 
AnswerRe: SELECT statements in INNER JOINs? Pin
Colin Angus Mackay11-Aug-04 4:31
Colin Angus Mackay11-Aug-04 4:31 
Questionhow to bind crystal reports Pin
jaan leva11-Aug-04 1:55
jaan leva11-Aug-04 1:55 
AnswerRe: how to bind crystal reports Pin
Member 53081012-Aug-04 3:20
Member 53081012-Aug-04 3:20 
GeneralRe: how to bind crystal reports - Use this code Pin
cvp7712-Aug-04 21:34
cvp7712-Aug-04 21:34 
GeneralMSDE Pin
Renjith Ramachandran11-Aug-04 0:04
Renjith Ramachandran11-Aug-04 0:04 
GeneralRe: MSDE Pin
Renjith Ramachandran13-Aug-04 1:03
Renjith Ramachandran13-Aug-04 1:03 
GeneralRe: MSDE Pin
Blake V. Miller25-Oct-04 19:56
Blake V. Miller25-Oct-04 19:56 

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.