If you are using SQL Server (specifically Express 2005) and you are looking for a quick way to export your entire database into a single file, the following tool will do the trick.
Export Your Database
Grab a fresh copy of the free tool.
http://www.eggheadcafe.com/articles/20040913.zip
Once you have downloaded the zip file you can open the pre-built application in the following folder:
<extracted directory>\bin\Debug\WindowsApplication1.exe
If you are using SQL Express use the following Server string:
server\SQLEXPRESS
OR for local connections:
.\SQLEXPRESS
The only downside I see to this utility is that you cannot use Windows Authentication.
Enter the server information to connect to your database. Select your database, the objects you wish to export and click EXPORT.
Once the export process is complete it will ask you where you wish to save the file.
Import Your Database
Now that you have a full SQL file representation of your database you can use SQL Server Management Studio Express to create your exported database.
Fire up SQL Server Management Studio Express and log in.
NOTE: If you are migrating your data to a server that does not have a matching database you must first create a database with the same name from your export.
Open your fresh database export file.
Once your file has been loaded make sure that there are no SQL syntax errors.
If there are no errors execute.
Now your database should have all the objects and data you exported earlier.
Resources
SQL Server 2005 Express
http://www.microsoft.com/Sqlserver/2005/en/us/express.aspx
SQL Export Tool
http://www.eggheadcafe.com/articles/20040913.asp
SQL Server Management Studio Express
http://www.microsoft.com/downloads/details.aspx?familyid=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en
Credits
Many thanks to eggheadcafe.com and Peter A. Bromberg for this great tool.
Related Posts
Tags: mysqldump, mysqldump for sql server, SQL Server, sql server export


























