Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I spose this is more a SQL question but maybe someone can help out. I want to deploy a windows application at a clients office. The app queries a SQL db. I have created the db for the client but i want to give it to them as a autoexecuting script that they can run on there server. Is this possible or do i have to generate the normal script and run it in Query Analyser??
  • *Experts*
Posted

Traditionally, I've given clients one of the following :

1. SQL script that they must run in manually (db.sql or similar)

2. I call out to isql.exe (or osql.exe?) during a setup

3. Custom code to create a DB through COM (SQLDMO I think).

4. A database backup of a stripped down version of the DB.

 

Number 4 works great if you have some system look tables that need to get in. I prefer number 2 but I use a custom built setup application. Since this is a one time thing usually (creating the DB), you can always put it in as part of the setup notes assuming your clients read them (or better yet, YOU do the installs).

 

If they're savvy enough to use Query Analyzer, a simple script would work but if you don't have any system tables, you could have them use Enterprise Manager to create the DB with all the defaults.

 

Using a script has issues since you'll have to specify a local path (C:\MSSQL\...) for the DB and Log files.

 

-Nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...