Exporting MS SQL Schema and Data
Posted
by stringo0
on Stack Overflow
See other posts from Stack Overflow
or by stringo0
Published on 2010-05-03T19:14:09Z
Indexed on
2010/05/03
19:18 UTC
Read the original article
Hit count: 165
sql-server-2008-express
|ASP.NET
I'm used to MySQL and PHPMyAdmin - I had to switch over to MSSQL for an ASP.net project, and I'm having tons of trouble. I'm using the express version of SQL 2008, with SQL Server Management Studio. The following are 2 questions I've been struggling with for a while:
1) How do I export the DB schema for the database? The table structure, etc.?
2) How do I export all the data in the database?
Ideally I'd like to have a .sql file that can be run wherever I need the schema or data duplicated, for example a co-worker's computer for a shared project, or online when the project is being hosted.
Thanks!
© Stack Overflow or respective owner