Hello,
I was wondering what my options are for copying a SQL Server database. If this is a repeat I'll delete my question but I couldn't find an answer when using the search.
This is what I already tried:
-Write the database to a sql script.
When I do this I always seem to run into a problem where I have to manually adjust stuff. Like problems with keys or collation conflicts.
Also this seems very slow. My last script file is 1.5Mb but it takes like 1 hour to run. It's also annoying to run into an error at 90%.
I mostly get it to work using a sql scripts but it feels like I am wasting a lot of time trying to fix little error and waiting for the sql to execute.
-Use the export function on Microsoft SQL Server Management Studio
If I am correct this doesn't copy store procedures, views and/or keys.
-Detach / Attach
Is it correct to think that this is mostly not possible on shared hostings where you only get one database? I ran into permission problems when trying this.
That's about everything I tried.
Thanks in advance,
Pickels