Hi frnds,
i want to use Alter Query in a Windows based Form, how can i use it in command text and aslo the column which i want to add should get its datatype also.
thanks & regards,
Aamir
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Aamir KhanPosted Nov 23, 2011, 8:01 AM
SqlCommand
cmd1.ExecuteNonQuery();
cmd1.Dispose();
cmd1 = new SqlCommand("update TableName set IsNewRow=1 where IsNewRow is null", con1);con1.Close();