472,145 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Re-creating an SQL server database to another MSDE server

NWx
Hi,

I write an ASP,NET application who uses SQL Server (MSDE) as Back-end
I'm an experienced developer, but haven't used SQL server before and I need
some help.

Since I don't have full SQL server (but only MSDE), I don't have Enterprise
manager.
So I used Access XP (using an ADP file) to create the database on MSDE
server (tables, views, stored procs etc)

The ASP.NET app works very well with this BE.

Now I'm in the process to upload application on another server for broader
testing.
This server have also IIS / ASP.NET and MSDE installed

I know how to install ASP.NET application, but have no idea how to recreate
the original SQL server database on my test MSDE instance.
Of course I can create the SQL database the same way as I did initially (by
hand, with AccessXP and an ADP file), but I don't want to do this, since I
could misspell a field name, use some slightly different data type, forget a
relation, etc.
What I want is to install EXACTLY the same database on the new server.
So, is there any way with MSDE to generate a script file, which, when run on
another sql server instance, will recreate a database exactly as original
one? Are there any stored procs on SQL server who does this? Any sql server
tools or free 3'rd party tools?

Any help and suggestion will be appreciated.

Regards
Nov 18 '05 #1
3 2007
You should be able to use BACKUP and RESTORE or sp_detach_db and sp_attach_db. You can execute these commands via the command line tool osql.exe. You should be able to execute the appropriate commands via ASP if you wanted.

You will find the specific syntax for the commands listed above within Books Online (SQL Server's documentation). If you don't have access to Books Online you can download it from this location: http://www.microsoft.com/sql/techinf...2000/books.asp

--
Keith
"NWx" <te**@test.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

I write an ASP,NET application who uses SQL Server (MSDE) as Back-end
I'm an experienced developer, but haven't used SQL server before and I need
some help.

Since I don't have full SQL server (but only MSDE), I don't have Enterprise
manager.
So I used Access XP (using an ADP file) to create the database on MSDE
server (tables, views, stored procs etc)

The ASP.NET app works very well with this BE.

Now I'm in the process to upload application on another server for broader
testing.
This server have also IIS / ASP.NET and MSDE installed

I know how to install ASP.NET application, but have no idea how to recreate
the original SQL server database on my test MSDE instance.
Of course I can create the SQL database the same way as I did initially (by
hand, with AccessXP and an ADP file), but I don't want to do this, since I
could misspell a field name, use some slightly different data type, forget a
relation, etc.
What I want is to install EXACTLY the same database on the new server.
So, is there any way with MSDE to generate a script file, which, when run on
another sql server instance, will recreate a database exactly as original
one? Are there any stored procs on SQL server who does this? Any sql server
tools or free 3'rd party tools?

Any help and suggestion will be appreciated.

Regards

Nov 18 '05 #2
NWx
Thanks for the info.

Regards
"Keith Kratochvil" <sq***********@comcast.net> wrote in message
news:e4**************@TK2MSFTNGP12.phx.gbl...
You should be able to use BACKUP and RESTORE or sp_detach_db and
sp_attach_db. You can execute these commands via the command line tool
osql.exe. You should be able to execute the appropriate commands via ASP if
you wanted.

You will find the specific syntax for the commands listed above within Books
Online (SQL Server's documentation). If you don't have access to Books
Online you can download it from this location:
http://www.microsoft.com/sql/techinf...2000/books.asp

--
Keith
"NWx" <te**@test.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

I write an ASP,NET application who uses SQL Server (MSDE) as Back-end
I'm an experienced developer, but haven't used SQL server before and I need some help.

Since I don't have full SQL server (but only MSDE), I don't have Enterprise manager.
So I used Access XP (using an ADP file) to create the database on MSDE
server (tables, views, stored procs etc)

The ASP.NET app works very well with this BE.

Now I'm in the process to upload application on another server for broader
testing.
This server have also IIS / ASP.NET and MSDE installed

I know how to install ASP.NET application, but have no idea how to recreate the original SQL server database on my test MSDE instance.
Of course I can create the SQL database the same way as I did initially (by hand, with AccessXP and an ADP file), but I don't want to do this, since I
could misspell a field name, use some slightly different data type, forget a relation, etc.
What I want is to install EXACTLY the same database on the new server.
So, is there any way with MSDE to generate a script file, which, when run on another sql server instance, will recreate a database exactly as original
one? Are there any stored procs on SQL server who does this? Any sql server tools or free 3'rd party tools?

Any help and suggestion will be appreciated.

Regards

Nov 18 '05 #3
Hi,

You could either write an sql script, or copy the .mdf to the other server.
( dunno if MSDE has these, as I have SQL 2000).

Jodie Rapson

"NWx" <te**@test.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

I write an ASP,NET application who uses SQL Server (MSDE) as Back-end
I'm an experienced developer, but haven't used SQL server before and I need some help.

Since I don't have full SQL server (but only MSDE), I don't have Enterprise manager.
So I used Access XP (using an ADP file) to create the database on MSDE
server (tables, views, stored procs etc)

The ASP.NET app works very well with this BE.

Now I'm in the process to upload application on another server for broader
testing.
This server have also IIS / ASP.NET and MSDE installed

I know how to install ASP.NET application, but have no idea how to recreate the original SQL server database on my test MSDE instance.
Of course I can create the SQL database the same way as I did initially (by hand, with AccessXP and an ADP file), but I don't want to do this, since I
could misspell a field name, use some slightly different data type, forget a relation, etc.
What I want is to install EXACTLY the same database on the new server.
So, is there any way with MSDE to generate a script file, which, when run on another sql server instance, will recreate a database exactly as original
one? Are there any stored procs on SQL server who does this? Any sql server tools or free 3'rd party tools?

Any help and suggestion will be appreciated.

Regards

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Nel | last post: by
4 posts views Thread by Craig Bailey | last post: by
11 posts views Thread by James | last post: by
4 posts views Thread by Alan Walkington | last post: by
10 posts views Thread by James | last post: by
8 posts views Thread by Lothar Scholz | last post: by
1 post views Thread by joost | last post: by
2 posts views Thread by sky2070 | last post: by
1 post views Thread by Brian | last post: by
1 post views Thread by Clarice Almeida Hughes | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.