Creating a new field in MS SQL server

  • Thread starter Thread starter Maziar Aflatoun
  • Start date Start date
M

Maziar Aflatoun

Hi,

Does anyone know how I can create/remove table fields in Microsoft SQL
server using C# code?

Thank you
Maziar A.
 
Assuming you have the permissions to allow you to do this, simple use a
stringbuilder to construct a DDL statement and set the commandtext of your
command object to it, coupled with an ExecuteNonQuery...
 
Back
Top