English 中文(简体)
SQL Server: pushing development to production?
原标题:

I m currently using SQL Server Management Studio.

I have a development database, and access to a live database.

I just want to able to migrate my development tables to the live server.

I m consulting stack flow first, since I don t want to blow anything up.

问题回答

If you know what tables you want to migrate and they don t yet exist on the prod server, it s as simple as scripting the table definition, then running the script on the server. If it s more complex than that, I would recommend any number of tools which compare database schemas and automatically generate scripts you can run on the destination server to add/alter/remove what you need. A good freeware one for simple jobs is DBComparer. It s pretty basic. An excellent commercial one are the Sql Tools by Red Gate

We are using SQL Examiner Suite for this, but there are a lot of similar tools.

This is worth a look at - I ve used it before and it works well and is very easy: Microsoft SQL Server Database Publishing Wizard http://www.microsoft.com/downloads/en/details.aspx?FamilyId=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签