i want 2 pass values(enterd in textbox)to table in sql
server without using stored procedure in c#.plz tell me
code with an example.
Answer Posted / michael and tubax
sqlconnection con=new sqlconnection
("server=servername;datasource=databasename;uid=sa;pwd=passw
ord);
con.open();
sqlcommand cmd=new sqlcommand("insert into tblname values
('"+txtname.text+"','"+txtage.text+"'",con);
cmd.executnonquery();
con.close();
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Which method is used to sort the data in ADO.Net?
What two types of data providers does ADO.NET supply? What determines which one you should use?
What is the default provider in ado.net?
Give an example that shows how to execute a stored procedure in ado.net?
What is ado.net architecture?
What is two way data binding android?
Which is faster ado.net or linq?
Does dapper use ado.net?
What are the rules to implement connection pooling?
What is ado asp?
What is ole word?
What are different layers of ADO.Net?
How do you update a dataset in ado.net?
What is difference between sqldatareader and sqldataadapter?
Explain sqlconnection object?