Hello,
I was trying to copy a database from an existing database into a new database on the same server. I followed the advice in a posting, saying to detach the existing database to be copied, copy the .mdf/.ldf files to wherever you want them, then attach the "new" .mdf/.ldf files to a new "empty" database, and then reattach the original.
I was able to detach the original database in SQL Server. I copied its .mdf and .ldf files within my MSSQL folder. I set up a new blank database in MS SQL Server. But - I do not see or know how to either attach the new database or re-attach the existing database. Am I missing something? Am using MS SQL Enterprise Manager. In 'Action' --- 'All Tasks', there is a Detach option, but no Attach option.
Please help! thanks....
I was trying to copy a database from an existing database into a new database on the same server. I followed the advice in a posting, saying to detach the existing database to be copied, copy the .mdf/.ldf files to wherever you want them, then attach the "new" .mdf/.ldf files to a new "empty" database, and then reattach the original.
I was able to detach the original database in SQL Server. I copied its .mdf and .ldf files within my MSSQL folder. I set up a new blank database in MS SQL Server. But - I do not see or know how to either attach the new database or re-attach the existing database. Am I missing something? Am using MS SQL Enterprise Manager. In 'Action' --- 'All Tasks', there is a Detach option, but no Attach option.
Please help! thanks....