Click here to Skip to main content
15,890,947 members
Home / Discussions / Database
   

Database

 
GeneralRe: help for sql query plz Pin
Paul Conrad20-Jul-07 5:54
professionalPaul Conrad20-Jul-07 5:54 
AnswerRe: help for sql query plz Pin
DQNOK20-Jul-07 8:37
professionalDQNOK20-Jul-07 8:37 
Questiondata type mismatch when i try to insert data [modified] Pin
kudorgyozo20-Jul-07 1:10
kudorgyozo20-Jul-07 1:10 
AnswerRe: data type mismatch when i try to insert data Pin
Rob Graham21-Jul-07 4:13
Rob Graham21-Jul-07 4:13 
Questionquery + ms sql 2005 Pin
ritu432120-Jul-07 0:21
ritu432120-Jul-07 0:21 
AnswerRe: query + ms sql 2005 Pin
Pete O'Hanlon20-Jul-07 1:08
mvePete O'Hanlon20-Jul-07 1:08 
GeneralRe: query + ms sql 2005 Pin
ritu432120-Jul-07 1:28
ritu432120-Jul-07 1:28 
Questionhai insert query problem Pin
srinivassam19-Jul-07 22:27
srinivassam19-Jul-07 22:27 
hai all ,
in database i used only one database for empid (int),username(varchar),password(varchar),status(int),usertype(varchar)
what ever i will assign that values are not inserted into database
iam getting value in text but iam not getting in query.
please see my code
<pre>
Label1 .Text =""; //for displaying in design phase
Label2 .Text ="String.Empty;";
Label3 .Text ="String.Empty";
Label4 .Text ="";
Label5 .Text ="String.Empty";
TextBox1 .Text ="empid"; //for entering
TextBox2 .Text ="username";
TextBox3 .Text ="password";
DropDownList1.DataValueField =""; //status 1 and 2
DropDownList2 .DataValueField ="usertype"; //for normal user and admin
SqlConnection con=new SqlConnection ("uid=sa;password=sa123;database=usermanagement;server=c113");
SqlCommand cmd=new SqlCommand ("insert into tbl_user_management (empid,username,password,status,usertype) values('"+ TextBox1.Text +"','"+ TextBox2.Text +"','"+ TextBox3.Text +"','"+ DropDownList1 .DataValueField +"','"+ DropDownList2 .DataValueField +"')",con);
//SqlDataReader dr;
con.Open ();
//status = Convert.ToInt32(dr["status"]);
cmd.ExecuteNonQuery();
con.Close ();




srinivas
AnswerRe: hai insert query problem Pin
Colin Angus Mackay19-Jul-07 22:48
Colin Angus Mackay19-Jul-07 22:48 
AnswerRe: hai insert query problem Pin
Paddy Boyd20-Jul-07 0:50
Paddy Boyd20-Jul-07 0:50 
QuestionFine-tune SP Pin
Joe19-Jul-07 21:56
Joe19-Jul-07 21:56 
AnswerRe: Fine-tune SP Pin
Colin Angus Mackay19-Jul-07 22:52
Colin Angus Mackay19-Jul-07 22:52 
Questionselect alst record was added Every minute Pin
Dr.PHP19-Jul-07 21:03
Dr.PHP19-Jul-07 21:03 
AnswerRe: select alst record was added Every minute Pin
Paul Conrad20-Jul-07 5:55
professionalPaul Conrad20-Jul-07 5:55 
GeneralRe: select alst record was added Every minute Pin
Dr.PHP20-Jul-07 19:24
Dr.PHP20-Jul-07 19:24 
GeneralRe: select alst record was added Every minute Pin
Paul Conrad21-Jul-07 4:56
professionalPaul Conrad21-Jul-07 4:56 
Questionvalue of variable Pin
harsh_c19-Jul-07 19:51
professionalharsh_c19-Jul-07 19:51 
AnswerRe: value of variable Pin
N a v a n e e t h19-Jul-07 22:43
N a v a n e e t h19-Jul-07 22:43 
GeneralRe: value of variable Pin
harsh_c19-Jul-07 23:57
professionalharsh_c19-Jul-07 23:57 
GeneralRe: value of variable Pin
Pete O'Hanlon20-Jul-07 0:03
mvePete O'Hanlon20-Jul-07 0:03 
GeneralRe: value of variable Pin
harsh_c20-Jul-07 0:22
professionalharsh_c20-Jul-07 0:22 
GeneralRe: value of variable Pin
Pete O'Hanlon20-Jul-07 0:33
mvePete O'Hanlon20-Jul-07 0:33 
AnswerRe: value of variable [modified] Pin
DQNOK20-Jul-07 3:31
professionalDQNOK20-Jul-07 3:31 
Questionsequence number in insert comand please help Pin
mindgameny19-Jul-07 17:08
mindgameny19-Jul-07 17:08 
AnswerRe: sequence number in insert comand please help Pin
N a v a n e e t h19-Jul-07 22:41
N a v a n e e t h19-Jul-07 22:41 

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.