mibuso.com

Microsoft Business Solutions online community
It is currently Mon May 20, 2013 1:03 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Minimum SQL Server Role/Permission to Create New DB
PostPosted: Wed Sep 07, 2011 1:51 pm 
Offline

Joined: Thu May 01, 2008 7:45 am
Posts: 20
Location: India
Country: India (in)
What is the Minimum Role/Permission for a user to create a New Database on the SQL Server. I do not want to give sysadmin Permission because I have other databases that I do not want the user to be able to access.
I have tried giving DB_Creator permission, but it does not solve the issue, whenever the user tries to create a New DB, after entering the DB Name, we get error
"UserID or Password is not valid"
Please advice

_________________
Mayank Bhardwaj
Visit My Blog at
http://extremeengineers.net/


Top
 Profile  
 
 Post subject: Re: Minimum SQL Server Role/Permission to Create New DB
PostPosted: Thu Sep 08, 2011 12:55 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jul 31, 2003 12:00 pm
Posts: 639
Location: Nürnberg
Country: Germany (de)
Well, the server role "dbcreator" shouold be sufficient enough. But as you can see from the error message the problem is not the role, it's the user credentials.
So you have to make sure the Login/USser is properly set up in SQL Server and NAV!

_________________
Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool


Top
 Profile E-mail WWW  
 
 Post subject: Re: Minimum SQL Server Role/Permission to Create New DB
PostPosted: Thu Sep 08, 2011 1:16 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Tue Jul 19, 2005 4:49 pm
Posts: 3832
Location: Olst
Country: Netherlands (nl)
Just curious, why would you want to have someone creating databases on your system that you don't trust well enough to be sysadmin?

_________________
Mark Brummel | Freelance Dynamics NAV (Navision) Developer
Author of the book : Microsoft Dynamics NAV 2009 Application Design

MY BLOG : http://www.brummelds.com


Top
 Profile E-mail WWW  
 
 Post subject: Re: Minimum SQL Server Role/Permission to Create New DB
PostPosted: Fri Sep 09, 2011 6:14 am 
Offline

Joined: Thu May 01, 2008 7:45 am
Posts: 20
Location: India
Country: India (in)
Dear stryk,

well that's the first assumption even I made when I saw the error, but I could login to SQL Server and create a new database from SSMS using the user's credentials. Its only when I try to make a new database from the finsql cleint that I get the error, only after I enter the Name of the Database.
In normal scenario if the Credentials are wrong Nav client wouldn't even take me to the New Database form, right when you enter the credentials and press OK and the error is

---------------------------
Microsoft Dynamics NAV Classic
---------------------------
The login failed when connecting to SQL Server MSTDBS01.

---------------------------
OK
---------------------------

But in this case it gives an error when I enter the name of the New Database in the New Database Form and the error we get is

---------------------------
Microsoft Dynamics NAV Classic
---------------------------
The user ID and password are invalid. Try again.

---------------------------
OK
---------------------------

Could you try it out and see if it works for you.

Dear Mark

Well where I work, we have a Team of 30 for Dynamics Nav. We have one Development server with the Databases of all the project. As a part of administration of this server we would like our developers to be able to create New Databases and work on them as owners but we do not want them to make Server Level changes to the SQL Instance. Hence the need.

_________________
Mayank Bhardwaj
Visit My Blog at
http://extremeengineers.net/


Top
 Profile  
 
 Post subject: Re: Minimum SQL Server Role/Permission to Create New DB
PostPosted: Fri Sep 09, 2011 12:34 pm 
Offline

Joined: Tue Jun 07, 2005 5:24 pm
Posts: 2573
Location: MA
Country: United States (us)
Are you really creating new databases often enough that this can't be managed by a small group of administrators? I also manage a central development environment with a similar number of developers. The databases are hosted across 2 SQL instances. In addition to my real job (billable work) I handle the administration of these systems plus associated Terminal Services and Hyper-V environments. Three other users also have administrative access. In the 5 plus years these systems have been running, I've seen no reason to make everyone an admin.

_________________
There are no bugs - only undocumented features.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: