Hi,
I already create connection to sql database and successfull. I need to know how to run two command together?...This is my problem:-
sqlcmd = New Sqlcommand ( "Select * from Staff_Main where Staff_id like '"&textbox1.text&"'",cn)
dr = sqlcmd.executereader
while dr.read()
label1.text = dr.item(1) 'item 1 is name
sqlcmd = new sqlcommand ("insert into smart.dbo.event(e_staff_name) values "+Lable1.text+',cn)
sqlcmd.executenonquesry
But nothing insert in my table...can anyone help me/..pls
tq