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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top