all groups > sql server new users > august 2005 >
You're in the

sql server new users

group:

export settings and security


export settings and security Marc
8/30/2005 6:41:02 AM
sql server new users:
hello,
i m new to sql and i need to export all the settings of a base in sql 2000,
security users ..., is it possible? do i just need to backup the database and
all the settings will be saved?

Re: export settings and security Sue Hoegemeier
8/30/2005 6:09:30 PM
A backup can work as one option. It depends on what you need
it for. You can also script out the database (no data) from
Enterprise Manager. Right click on the database, select
Generate SQL Script. In the window that comes up for
generating the script, you can go to the option tab and
select Script Database to script all database settings. You
can script Users, Roles and object permissions. On the
General tab, you can select the option to script all
objects. You have other scripting options from here as well.

-Sue

On Tue, 30 Aug 2005 06:41:02 -0700, "Marc"
[quoted text, click to view]
Re: export settings and security Marc
8/31/2005 12:23:02 AM
Hi, thanks for the answer.

Now i would like to know if it is possible to generate this script
automatically by another script or else?


Re: export settings and security Andrea Montanari
8/31/2005 1:29:51 AM
hi Marc,
[quoted text, click to view]

each database contains it's full set of database users and related
permissions, so, backing up a database you will automatically include
them...
you only miss all server's login, and this is the reason you should backup
the system databases too...
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtm http://italy.mvps.org
DbaMgr2k ver 0.15.0 - DbaMgr ver 0.60.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
--------- remove DMO to reply

Re: export settings and security Sue Hoegemeier
8/31/2005 6:02:49 AM
Another option is to use SQL-DMO. You can use the
GenerateSQL or Script method to script out a database. There
are other options as well. Books online has more information
on SQL-DMO and these methods.
You can execute the scripts from a job or another
application such as VB, C++

-Sue

On Wed, 31 Aug 2005 00:23:02 -0700, "Marc"
[quoted text, click to view]
AddThis Social Bookmark Button