Click here to Skip to main content
15,896,269 members
Home / Discussions / Database
   

Database

 
AnswerRe: getting next row data into focus Pin
Mike Osbahr6-Jul-06 7:36
Mike Osbahr6-Jul-06 7:36 
GeneralRe: getting next row data into focus Pin
Glen Harvy6-Jul-06 10:51
Glen Harvy6-Jul-06 10:51 
QuestionAdd Tables Pin
Brendan Vogt4-Jul-06 5:01
Brendan Vogt4-Jul-06 5:01 
AnswerRe: Add Tables Pin
-Dr_X-5-Jul-06 7:27
-Dr_X-5-Jul-06 7:27 
QuestionSQL Server 2005 Pin
Brendan Vogt4-Jul-06 4:16
Brendan Vogt4-Jul-06 4:16 
AnswerRe: SQL Server 2005 Pin
Colin Angus Mackay4-Jul-06 6:39
Colin Angus Mackay4-Jul-06 6:39 
AnswerRe: SQL Server 2005 Pin
Eric Dahlvang5-Jul-06 3:45
Eric Dahlvang5-Jul-06 3:45 
AnswerRe: SQL Server 2005 Pin
Mike Dimmick5-Jul-06 4:33
Mike Dimmick5-Jul-06 4:33 
SQL Server has the concept of a login, which is global to a server, and a user, which is specific to a database.

Logins are what get authenticated - you must tell SQL Server either about a Windows username or group, or you must specify a username and password. You can assign fixed server roles to a login (alternatively you can say you make a login a member of a role). These roles control whether a login can create their own databases and various other sorts of administrative rights. You'll find these in Management Studio under Security, Logins.

Users are the same sort of concept within the database itself. A login must be granted access to, and mapped to a user in, a database to be able to access it (unless they're a member of the sysadmin fixed server role). The name of the user in the database can be different from the user's login - normally the database owner's login is given the name dbo within the database. Permissions in a database are assigned to a user or to a role - again, you can make users members of roles to make the permissions easier to manage. Create users in Management Studio by going to Database, Security, Users.

Normally I simply make users members of the public database role then set permissions for that role. I allow Management Studio to add the login to the database by checking the box next to the database in User Mapping in the login's Properties. If you need different permissions for different subsystems - probably a good idea - then create more logins and users.

I'm afraid I don't know much about using application roles. I can see they're there, and I think they would allow you to keep and use a single login but assign different permissions for different applications accessing the same database. For DNN this is almost certainly overkill. It looks like you need to code explicitly to use different application roles (the documentation mentions using sp_setapprole to change to a different role).

Stability. What an interesting concept. -- Chris Maunder
QuestionUnable to read binary field type Pin
BadKarma4-Jul-06 3:52
BadKarma4-Jul-06 3:52 
Questionhelp on auto-increment datatype for SQL Pin
Kenzy864-Jul-06 0:44
Kenzy864-Jul-06 0:44 
AnswerRe: help on auto-increment datatype for SQL Pin
jamesr33784-Jul-06 1:51
jamesr33784-Jul-06 1:51 
QuestionError In Attcah DataBase Pin
md_refay4-Jul-06 0:37
md_refay4-Jul-06 0:37 
Question*.dtsx file and Query execution problem Pin
For_IT3-Jul-06 23:01
For_IT3-Jul-06 23:01 
QuestionImprove the efficiency of Stored Procedures Pin
Uma Kameswari3-Jul-06 19:27
Uma Kameswari3-Jul-06 19:27 
AnswerRe: Improve the efficiency of Stored Procedures Pin
Colin Angus Mackay3-Jul-06 21:53
Colin Angus Mackay3-Jul-06 21:53 
AnswerRe: Improve the efficiency of Stored Procedures Pin
Frank Kerrigan4-Jul-06 0:14
Frank Kerrigan4-Jul-06 0:14 
AnswerRe: Improve the efficiency of Stored Procedures Pin
VK-Cadec11-Jul-06 8:56
VK-Cadec11-Jul-06 8:56 
QuestionDelete or update Pin
leckey3-Jul-06 3:38
leckey3-Jul-06 3:38 
AnswerRe: Delete or update Pin
Paul Conrad3-Jul-06 7:25
professionalPaul Conrad3-Jul-06 7:25 
AnswerRe: Delete or update Pin
Frank Kerrigan3-Jul-06 22:14
Frank Kerrigan3-Jul-06 22:14 
QuestionHuge DataBases [modified] Pin
hamidreza_buddy2-Jul-06 23:44
hamidreza_buddy2-Jul-06 23:44 
AnswerRe: Huge DataBases Pin
Colin Angus Mackay3-Jul-06 1:52
Colin Angus Mackay3-Jul-06 1:52 
AnswerRe: Huge DataBases Pin
Frank Kerrigan4-Jul-06 1:26
Frank Kerrigan4-Jul-06 1:26 
QuestionSQL SERVER 2005 - "error 193 installation net framework 2.0" Pin
hasantayyar2-Jul-06 1:10
hasantayyar2-Jul-06 1:10 
QuestionRead RTF and Word file from BLOB Pin
excession1-Jul-06 6:04
excession1-Jul-06 6:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.