Click here to Skip to main content
15,886,518 members
Home / Discussions / Database
   

Database

 
QuestionHow Do i combine this two queries Help Pin
Vimalsoft(Pty) Ltd24-Apr-07 0:17
professionalVimalsoft(Pty) Ltd24-Apr-07 0:17 
AnswerRe: How Do i combine this two queries Help Pin
Colin Angus Mackay24-Apr-07 0:30
Colin Angus Mackay24-Apr-07 0:30 
GeneralRe: How Do i combine this two queries Help Pin
Vimalsoft(Pty) Ltd24-Apr-07 0:40
professionalVimalsoft(Pty) Ltd24-Apr-07 0:40 
GeneralRe: How Do i combine this two queries Help Pin
Colin Angus Mackay24-Apr-07 6:39
Colin Angus Mackay24-Apr-07 6:39 
QuestionHelp me in developing stored Pin
Bilal wani23-Apr-07 23:53
Bilal wani23-Apr-07 23:53 
AnswerRe: Help me in developing stored Pin
Colin Angus Mackay23-Apr-07 23:55
Colin Angus Mackay23-Apr-07 23:55 
GeneralRe: Help me in developing stored Pin
Bilal wani24-Apr-07 19:23
Bilal wani24-Apr-07 19:23 
GeneralRe: Help me in developing stored Pin
Rocky#24-Apr-07 20:22
Rocky#24-Apr-07 20:22 
I think youre a genuine beginner at this stage. What you need to do here is to access the database from ur application and in this code sample here there is no sign of any DataAdapter or a query used.

First get some knowledge abt the DataSets, TableAdapters, ADO .NET and DataAdapters,

you could do it like this.

string sql =@"Select UserName From UsersTable Where UserName LIKE '"+textBoxUserName.Text+"' AND Password = '"+textBoxpass.Text+"';
//(Caution: password is case insensitive in this case. Convert it to Varbinary for making it case sensitve)
SqlCommand cmd = new SqlCommand(sql, sqlConnection1);
if(cmd.ExecuteNonQuery() == 1)
{
// login successful
}
else
{
login failed
}

Its always a better idea not to store the actual text for passwords in Db. Its better to use an encoding scheme. But for now, u have a long road ahead of u

GeneralRe: Help me in developing stored Pin
Bilal wani25-Apr-07 18:33
Bilal wani25-Apr-07 18:33 
GeneralRe: Help me in developing stored [modified] Pin
Bilal wani25-Apr-07 19:05
Bilal wani25-Apr-07 19:05 
QuestionConnectionString Pin
blackjack215023-Apr-07 23:19
blackjack215023-Apr-07 23:19 
AnswerRe: ConnectionString Pin
Colin Angus Mackay23-Apr-07 23:50
Colin Angus Mackay23-Apr-07 23:50 
AnswerRe: ConnectionString Pin
Pete O'Hanlon24-Apr-07 0:55
mvePete O'Hanlon24-Apr-07 0:55 
GeneralRe: ConnectionString Pin
Aaron VanWieren25-Apr-07 3:54
Aaron VanWieren25-Apr-07 3:54 
QuestionProcedure or function SummerizeInsert has too many arguments specified. Pin
rkherath23-Apr-07 23:13
rkherath23-Apr-07 23:13 
AnswerRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
Colin Angus Mackay23-Apr-07 23:48
Colin Angus Mackay23-Apr-07 23:48 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
rkherath24-Apr-07 0:00
rkherath24-Apr-07 0:00 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
Colin Angus Mackay24-Apr-07 0:07
Colin Angus Mackay24-Apr-07 0:07 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
rkherath24-Apr-07 0:14
rkherath24-Apr-07 0:14 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
rkherath24-Apr-07 1:24
rkherath24-Apr-07 1:24 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
Elina Blank24-Apr-07 2:42
sitebuilderElina Blank24-Apr-07 2:42 
AnswerRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
gauthee23-Apr-07 23:50
gauthee23-Apr-07 23:50 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
Colin Angus Mackay23-Apr-07 23:51
Colin Angus Mackay23-Apr-07 23:51 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
rkherath24-Apr-07 0:09
rkherath24-Apr-07 0:09 
AnswerRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
Elina Blank24-Apr-07 2:36
sitebuilderElina Blank24-Apr-07 2:36 

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.