Re: help :Deploying a preconfigured database
- From: "Keith Kratochvil" <sqlguy.back2u@xxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 13:22:25 -0500
You can use the following KB article to script logins:
HOW TO: Transfer Logins and Passwords Between Instances of SQL Server
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q246133
You will want to make sure that you create appropriate script files to set
up the logins and assign the permissions. You should be able to run these
files via osql.exe (a command line tool). You will want to provide whatever
error checking is necessary within the script so that you do not get errors.
For example, lets say that your config requires the SQL Server login 'user.'
You need to create user. If your script attempts to create user but they
already exist an error will be displayed and that could halt everything that
comes after that specific point within the script. You will first want to
check to see if user exists. If they do, do nothing. If not, add them.
--
Keith
"serge calderara" <sergecalderara@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:BC62E884-8286-44B9-B68C-D6E92148259F@xxxxxxxxxxxxxxxx
> Dear all,
>
> One of our application consist of configuring an SQL server database with
> user rights to tables and preparing corresponding store procedure.
>
> usually when we do this, we prepare the server in our test environment and
> then ship the whole hardware pre configure to customers.
>
> in some cases we do not have the customer server, so we need to do the
> whole
> configuration on site and in cas of errors its hard to find.
>
> is there an easy way to prepare the SQL confisuration database, store
> procedure, table rights on a test PC, then do a kind of straight forward
> deployement on any server running SQL ?
>
> thanks for your help
> regards
> Serge
>
.
- Follow-Ups:
- Re: help :Deploying a preconfigured database
- From: serge calderara
- Re: help :Deploying a preconfigured database
- References:
- help :Deploying a preconfigured database
- From: serge calderara
- help :Deploying a preconfigured database
- Prev by Date: help :Deploying a preconfigured database
- Next by Date: SQL2005 keeps telling me to clean
- Previous by thread: help :Deploying a preconfigured database
- Next by thread: Re: help :Deploying a preconfigured database
- Index(es):
Relevant Pages
|