i have a database and want to copy all the tables in new database without copying the dat of all those tables only structure should be copy
Launch SQL Server Management Studio. Select and right-click on the Source Database, go to Tasks > Export Data. Import/Export Wizard will be opened and click on Next to proceed. Enter the data source, server name and select the authentication method and the source database.
To copy a diagram image to the Clipboard Open a Database Diagram. Only the owner of the diagram or a member of the db_owner role of the database can open the diagram. Right-click a blank area and choose Copy Diagram to Clipboard. The image of the entire Database Diagram is now in the system Clipboard.
SQL Server Management Studio offers the following:
Scripting the whole database:
Script Database as
To script just (specific) tables:
Tasks
, then Generate Scripts
, and then select the tables that you want.You can then use the script to create a new database / new objects elsewhere. If you change the name of the database, remember to change the USE xxx
statement(s) accordingly.
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