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
How to Add Column and its DataType using Alter query from Command Text
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Aamir KhanRank #7,345 · 243 reputationPosted Nov 23, 2011, 3:01 AM EST
SqlCommand
cmd1.ExecuteNonQuery();
cmd1.Dispose();
cmd1 = new SqlCommand("update TableName set IsNewRow=1 where IsNewRow is null", con1);con1.Close();