Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
General
»
Creating a default user
Creating a default user
Rate Topic
Display Mode
Topic Options
Author
Message
mark.nockalls
mark.nockalls
Posted Tuesday, September 16, 2008 8:50 AM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, February 25, 2009 10:32 AM
Points: 3,
Visits: 4
Hi there
We have an admin user who we need to create every time a database is created. Is there a way of automating this so each time a database is created this designated user is always added to that database?
Thanks
Mark
Post #570313
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Tuesday, September 16, 2008 9:17 AM
SSC-Dedicated
Group: Administrators
Last Login: Yesterday @ 9:03 PM
Points: 31,406,
Visits: 13,723
Not that I know of. You need to add the user.
A good reason to have a script to create database instead of using the GUI. Let someone change parameters at the beginning (path, size, etc) and have the CREATE USER at the bottom of the script.
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #570344
mark.nockalls
mark.nockalls
Posted Tuesday, September 16, 2008 9:24 AM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, February 25, 2009 10:32 AM
Points: 3,
Visits: 4
Thanks for that I had a search all over and couldn't find an answer so thought I would post this.
Thanks for the quick reply.
:)
Post #570356
Greg Charles
Greg Charles
Posted Tuesday, September 16, 2008 10:17 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Friday, May 17, 2013 12:08 PM
Points: 4,006,
Visits: 4,845
If you create the user in the Model database, it will be created in every new database afterward.
Greg
Post #570421
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.