This is probably obvious, but I can't see it.
I'm using Visual Studio 2012 Web Express. I open an existing database table using the internal editor, go to table definition and add a couple of extra columns.
I can see the T-SQL for a create table, if I save the table I get a prompt to save a SQL file, if I run the SQL it's a create table...
How do I just alter the existing table? Do I really have to do this manually?
On the top left there is going to be a button that says "Update". This will push the changes to your database. It will then create an alter script that you will run.
{To overcome the issue in MS SQL Server 2012 - this cell has changed, the change has not been committed to the database}
Find the "Change Type" Drop-Down Menu towards the left side of the third row, in which you can locate the Update option, which will update the records in your table.
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With