hi Guys,
i developed one web based application in c# .net & with ASP .net.In that i put connection to a database in sql server 2000.how can i insert the values which are in a variable to the database.
i wrote like this,
string s="abc";
thisCommand3.Co mmandText = "insert into results values ( 'sowmya',1,"+s+ " 'ravi')";
but i am getting error.
can any one know this.
plz help.........
i developed one web based application in c# .net & with ASP .net.In that i put connection to a database in sql server 2000.how can i insert the values which are in a variable to the database.
i wrote like this,
string s="abc";
thisCommand3.Co mmandText = "insert into results values ( 'sowmya',1,"+s+ " 'ravi')";
but i am getting error.
can any one know this.
plz help.........
Comment