Groups | Blog | Home
all groups > sql server new users > august 2007 >

sql server new users : Create SQL DB & Tables?


Scott M.
8/15/2007 2:20:08 PM
Hello,

I need to be able to get a database with populated tables created
on-the-fly. This is for a classroom environment where each student works
with his/her own SQL or SQL Express database on their local machine. I need
to find a quick way to take my data (currently in Access 2003) and get a
comprable SQL 2005 or SQL Express database with populated tables set up.

Thanks,

Scott M.

Sue Hoegemeier
8/15/2007 6:07:49 PM
One option is that you could create your own "template"
database in SQL Server, then detach the database. You can
save the mdf and ldf files and then just use these and copy
them to whatever workstation and attach the files as needed.
You can find more information on sp_detach_db and
sp_attach_db in books online.

-Sue

On Wed, 15 Aug 2007 14:20:08 -0400, "Scott M."
[quoted text, click to view]
Rick Byham, (MSFT)
8/16/2007 9:56:35 AM
More currently, CREATE DATABASE FOR ATTACH
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]
Scott M.
8/16/2007 5:07:09 PM
Thanks Sue & Rick. This sounds like what I'm looking for. I'll give it a
shot.

-Scott

[quoted text, click to view]

AddThis Social Bookmark Button