I have a SQL Server 2000 database and some tables in a database.
I want to export them (the structure, definition and indexes) to another database.
I don’t want to copy the entire database, only some tables. And it doesn’t matter the data that I have in the tables. Is there a form to do it??
I know the export data option but I’ve tried it and indexes are not created in the tables.
In Enterprise Manager right click on the database name and pick All Tasks->Export Data. Select the source databse, hit next. Pick the destination, hit next. Now pick Copy Objects and data between SQL Server databases and hit next.
You should be all set.