Hai Sir,
In my database I have a table with columns col1,col2,col3.
I want to give the fourth column i.e..,col4 from the front end(when I click add column button in my front end).
Now the updated table should be like col1,col2,col3,col4 after altering the fourth column.
Is it possible to alter a column from Frontend? If possible what is the stored procedure/query for that?

Pankaj Kumar ChoudharyPosted May 26, 2015, 11:54 PM
string Str;
Str = "Alter Table Emp Add " + textBox1.Text + " " + textBox2.Text + "";
SqlCommand Com = new SqlCommand( Str,Con);
Com.ExecuteNonQuery();
Con.Close();
Sabyasachi MishraPosted May 26, 2015, 9:05 AM