How To Allow A Windows User Specific To A DB

Jan 2, 2008

How can i add a windows user to sql server to access specific database with read and write permissions.

Thank you very much.

View 1 Replies


ADVERTISEMENT

How To: Determine If Current Windows User Has Login Access, Database Access And If They Are A Member Of A Specific DB Role.

Mar 25, 2008


I need to determine the following about the current authenticated Windows domain user who is trying to access a SQL Server via a trusted connection.

1 Has the current user been granted login access to the trusted SQL Server?

2 Has the current user been granted access to a specific database?

3 Is the current user a member of a specific database role such as (DB_ROLE_ADMINISTRATORS)?

Thanks,
Sean

View 6 Replies View Related

[JavaScript Error] Cannot Delete User Or User's Authority In Specific Report After Install SQL SP2

Jan 23, 2007

 Hi,

I have several reports for users to view on our Intranet. After installation of SQL 2005 SP2 patch, I cannot delete user or user's authority from Report in Properties Tab. An error message was shown on the status bar. It indicated that JavaScript Error: 'Return' statement outside of function. Seems something wrong with the 'Delete' funciton in SQL 2005 after update. The other functions worked fine. Could you point me out how to fix it or need to install any updates / hotfix. Thanks a lot!

Regards,

Kenneth Lai
Programmer


Error Pic


Message Box

 

View 1 Replies View Related

Windows Authentication - Cannot Generate SSPI Context - Login Failed For User ''. The User Is Not Associated With A Trusted SQL

May 29, 2007


We are looking at developing an SQL Server 2005 Database and I would like to use Windows Authentication rather than SQL Server Authentication to connect our client app.

In our development environment, we have two Servers, one being used as a file server and the other as an SQL Server. We have now set up a domain using the file server as the domain controller. (We had previously been set up to use a workgroup).

I have set up an active directory group called SqlDevelopers and added an active directory user called Jonathan to it.

On the SQL Sever, in management studio, I have set up a new server login which uses windows authentication called DomainSqlDevelopers. I used the GUI to verify I could see the domain and the group.

The default database is set to a test database on the server. A user in the test database is mapped to the DomainSqlDevelopers and given the Roles dbo, db_datareader, db_datawriter.

To test the log in, on the server, I logged out as administrator and in as Jonathan. I could successfully access the server through management studio using windows authentication.

However, if I log in as Jonathan on my client PC and try to access the SQL Server using management studio and windows authentication, I have problems.

The first time I try I will get a timeout error. If I try again will get either:

Login failed for user ''. The user is not associated with a trusted SQL Server connection

Or

Cannot generate SSPI context

I can€™t determine any pattern to which of the above errors I get.

However, if I log in as administrator on my client PC, I can connect to the server using management studio and windows authentication.

Sounds like Active Directory/Domain or other Network issue (Not really my area). I would be grateful for any help.

Thanks,

Jon

View 9 Replies View Related

User's Windows Profile Prevents User From Authenticating To MS SQL Server

Aug 2, 2006

I have a user who cannot login to a .mdb when he is logged
in to Windows, on his workstation or any other.
No one can login to the .mdb when he is logged in to Windows.






He CAN login to the same .mdb if someone else is logged in
to Windows, either on his workstation or any other.


When the user logs in he gets the following error:














MS SQL Server Login

Connection Failed:

SQL
State: €˜28000€™

SQL Server Error 18456

[Microsoft][ODBC SQL Server Driver][SQL Server] Login failed
for user €˜domainusername€™




I have removed and recreated the ODBC Connection
while he is logged in. I have tried changing the trusted login to
administrator (in the window that pops up when he fails to connect).




He has the permissions he needs to the .mdb because he can
login under anyone else€™s profile.




I tried copying his profile to a brand new user and ended up
with the same result.




This leads me to wonder if there is some corruption in one
of his profile€™s .dat files or ???








This is the boss€™ account and he does not want to be given a
new username and profile€¦


Microsoft SQL Server
2000 - 8.00.760 (Intel X86)






Running on MS Windows 2003 Server Standard SP1


All workstations are XP SP2 with MS Access 2003 SP2 (from
Office Pro distro)




We use roaming profiles.
All systems within the same physical and logical network and domain.


Any help you can provide will be greatly appreciated.

Please let me know if there is any additional information you need.


Thanks,


Mike

View 6 Replies View Related

How To Add New Table Under Specific User?

Jun 14, 2004

I'm new to SQL Server.

I've an online Database on a server. I've my own user name like "AKR". I want to create every table under that user. But what happens is whenever I create a table online it goes under "DBO" user name. How to avoid that?

Thanks

View 1 Replies View Related

User Specific Report

Mar 28, 2007

Greetings all

My question is I want to be able to create a report specific to each individual user. More specifically I want to be able to create one report and once the user logs in with the appropriate credentials, I want the report to populate based on those credentials. Another important aspect is that each individual only sees their data. So once again I need to report to populate from the database based on the users logon credentails



any suggestions??

thanks in advance

KM

View 2 Replies View Related

How To Set Parallelism For A Specific User

May 6, 2008

Hi,

actually a sever has a parallelism of 4 I would like to set the parallelism for a specific user to 2 without changing the code of the users application.

Is this possible.

As far as I understand with plan guides you just provide sql statements.
Need I to find all queries from the user, and add plan guides for all the queries, or tis there a more elegant way to do it.

br
fari

View 1 Replies View Related

Mail The DBA When A Specific User Connects

Feb 20, 2007

Hi,
I want to receive a mail when a specific user connects.
How can this be done best? Raise an alert? How?
Btw, the 'Login auditing' is set to 'Failed logins only'.
Suggestions are very welcome!
Cheers,
E

View 1 Replies View Related

Setting And Getting User-Specific Data In A Session

Oct 19, 2000

Hi:

I like to know how I may store some user-specific data at the beginning of a session and retrieve the same data later during the session in a SQL command. For those of you familiar with ORACLE, I am trying to mimic the SET_CLIENT_INFO and GET_CLIENT_INFO functions of ORACLE's DBMS_APPLICATION_INFO package on SQL Server.

Any suggestions?

thanks,
Peter

View 1 Replies View Related

Receive Mail When Specific User Connects

Feb 22, 2007

Hi,
I want to receive a mail when a specific user connects.
How can this be done best? Raise an alert? How?
Btw, the 'Login auditing' is set to 'Failed logins only'.
Suggestions are very welcome!
Cheers,
E

View 1 Replies View Related

Restrict Application User With Specific Data?

Oct 18, 2013

i am using sql server 2008R2 and i want to restrict my application user to view only the data(ships) related to him only.

We have database and many vessels with many owners, basically wants the owner could only view his owned vessels not the vessel owned by another owner.

View 2 Replies View Related

SQL Security :: How To Get Specific Permissions Per User On Each Database

Nov 24, 2015

I'm trying to get specific permissions per user on each SQL database, would you let me know if it could be achieved e.g on an object level?

View 5 Replies View Related

Please Help! How Can I Check The Current User Against A Specific Database?

Apr 29, 2008

In my application (infopath browser forms), First I get current user name thru System.Environment.UserName, after that, i want to check whether this user has access (read & write) permission to certain database, How do I do that?
One way I tried before is to get all the users and stored the names in an array for comparing in my program, but can not figure out the SQL command (to get the database users), if there it is, please kindly tell me.
Or if I can just pass the current user to check?
Thanks in advance.

View 5 Replies View Related

Cannot Add Windows User, Cannot Delete Sql User

Jul 23, 2005

We were using sql authentication on our sql server 2000 servers, Butneed to use windows authentication. I have an sql user jdoe that ownsmany different objects in multiple databases. I have tried adding thewindows login of jdoe with the exact same permissions as the sql userjdoe, but it complains because it says jdoe already exists. So Iattempt to delete the sql user of jdoe (remembering the permissions soI can reapply them to the windows user soon to be created) But it says"you cannot drop the selected login id because that login id ownsobjects in one or more databases" So now I am trying to figure out howto change the ownership of those many many objects in the manydatabases from jdoe to dbo so I can delete this sql user of jdoe. Doesanyone know of a way to convert an sql login to a windows login? Or ifthat can't be done, how to change the owner of many objects to dbo so Ican delete this user? Maybe a T-SQL script or stored procedure. Thereis a stored procedure called sp_changeobjectowner but that only worksfor one object, how would I do that on all the objects that jdoe owns?As you can see I am a newbie but I appreciate any help you canprovide!!! Thanks in advance!

View 3 Replies View Related

How To Grant Permission To A Specific User To Run SQL Scheduled Jobs?

Feb 7, 2003

Hello Everyone,

I have an web application where the users has to run SQL scheduled jobs from the webpage. How to assign permission to a specific user to run specific jobs without making them a member of a Sysadmin role?

Any ideas you all smart people?
Thanks in advance!

Jannat.

View 3 Replies View Related

SQL Server 2014 :: Can Lock A Table Only For A Specific User For Some Seconds

Apr 8, 2015

I need to do some operations on a table when any user dont work with it.How do i do it?

Do i lock the table? and is it possible?(I dont want to deny permission from a user because cause error)

Can i do it with a open transaction ?

View 4 Replies View Related

SQL Server 2014 :: How To Give Permissions To Specific Schema Only For A User

May 20, 2015

I created a new login and then created a new user [COM] in DB with default schema pointing to [COM]

I created then schema [COM] WITH AUTHORIZATION [COM]

I want this [COM] user to have all permissions it needs on [COM] schema only. How do I do that? When I try to create table [Com].Table it gives me permission denied.

What am I missing?

View 9 Replies View Related

SQL Server Admin 2014 :: Can Lock Table Only For Specific User For Some Seconds

Apr 8, 2015

I need to do some operations on a table when any user dont work with it.How do i do it?Do i lock the table? and is it possible?

View 8 Replies View Related

SQL Server Admin 2014 :: How To Grant User Permission To View Specific Views

Aug 5, 2015

I have a user who needs access to views like(dbo.viewnameabc1,dbo.viewnameabc2 and so on...) dbo.viewnameabc* and anytime the user creates the view he already have the permission to view those views....

View 3 Replies View Related

Get Windows User Name In Trigger?

Apr 16, 2014

User is login to the application using SQL Server Authentication method. I want to get his windows OS username to log in one of my security trigger.

All of the following:

SUSER_NAME(), SYSTEM_USER AS OSUser, SUSER_SNAME() AS SuserSName, ORIGINAL_LOGIN() As OriginalLogin, USER_NAME() as UserName

Are returning database user name, while i need OS username.

View 1 Replies View Related

Can't Connect As Another Windows User

Jun 20, 2008

When attempting SQL Replication I am getting an error that the user I setup for connecting to the Distribution database was unable to connect. I have setup a domain administrator user on our Domain (Active Directory) with the name of SDP. In order to test the SDP login I attempted to connect as DOMAINSDP, and it failed. If I login to Windows (2000) as SDP I can connect to the Server using Windows Authentication without any problem.

Why can I not connect using SQL Server Authentication as DOMAINSDP when I am logged into Windows as kblum? Is there some sort of setting that I need to establish to allow this?

TIA

View 1 Replies View Related

Connect Using Different Windows User Name...?!?!

Jul 6, 2007

I've scoured Google searching for an answer that seems like it should beeasy but apparently isn't...when I open SSMS to connect to a SQL 2005database and choose Windows authentication, it greys out the User Namebox...problem is, the server I need to connect to is in another domain...howon earth are you supposed to specify a different Windows user name toconnect with other than the one currently logged into the machine?-Ben--Posted via a free Usenet account from http://www.teranews.com

View 1 Replies View Related

Make Normal Windows NT User As DBO??

Jul 4, 2002

Hi,

How do we make a normal Windows NT user as DBO in Sql server 2000?

Thanx

View 2 Replies View Related

Windows User With Server Authentication

Apr 9, 2015

I'm almost sure that it's not possible, but I wanted to ask in case that I'm missing something.Is it possible to get the Windows user when someone logins using SQL Server Authentication? I know how to get the hostname, but I can't find how to make the next step.By the way, do sleeping connections affect performance? Would they consume resources such as RAM or network?

View 1 Replies View Related

.NET Framework :: Windows Authentication With Different User

Sep 24, 2015

Below is the scenario

I have 2 users.

User1 : have sql rights on database but dont have rights to login into windows
User2 ; have rights to login into system but dont have access rights to database

Now I have windows application and i have logged into system with User2 and want to run windows application with the rights of User1. How can i achieve this.

View 5 Replies View Related

Setup New User On Windows 2003

Jun 21, 2007

Hi,



Is it possible to create a new user into Windows 2003 users table (not Sql) through a sql 2005 query ?



I ask this because I forgot the admin password of the Windows 2003 server and this is in a remote location, so I though, since I have the admin password of SQL 2005 server, maybe it could help me to log onto Windows 2003 and reset windows admin password.



Any help would be eternally appreciated



Regards.



George

View 4 Replies View Related

Windows 2000 User Profile

Jan 6, 2007

Hi all,

Could somebody please help me out? I'm running Windows 2000 on my laptop. I opened a new user account and gave it administrative privilegies. I copied the administrative profile to the new account and everything seemed to work except when I tried to open any office application a dialogue appeared prompting me to place the Windows 2000 office CD rom in the drive. Why has this happened? How can rectify this problem since I don't have the CD rom.

Thanks in advance for any help.

View 1 Replies View Related

Trying To Create A New User With Windows Authentication For My Sql Database

Dec 30, 2007

I have a website written in asp.net and the current DATABASE logins do not use windows authenticaton. They are for online use only with a username and password.  I'm trying to run my program locally on my machine and access the database locally.  This is very frustrating. I'm able to connect to my database, but I can't login to it.  Here's my connection string from ym webconfig file:
<add name="sqlConnectionString" providerName="System.Data.SqlClient" connectionString="Connect Timeout=8; Initial Catalog=linkexchanger; Data Source=SCOTSQLEXPRESS; "/>
I have the MSSQL engine running and I have connected with the SERVER.  My database is in my directory tree of Microsoft SQL Management Studio Express.  The server is SCOTSQLEXPRESSI have attempted to add a login to my sql database by right clicking on the security folder to create a new login.  My understanding is that under windows, I don't need a uid and pwd in my connection string .  Thus I tried removing all of this just as you see above, and I get an error message every single time I try to create a login with windows authentication.
Can someone please explain how I make this work? 
Thank you.
 Scot

View 1 Replies View Related

Need To Identify Which Group The Windows User Is Logging In

Jun 18, 2007

Hi

In our sql server we have around 40 windows group.
Say a Windows user = "X"
This X user does not have a direct windows login, he is present in one or more windows groups registered in the sql server.

I need to know throught which group he is logging in.

If I know this , this will help in my auditing process.

Thanks in advance.

Regards
Soorya

View 1 Replies View Related

SQL 2012 :: Checking Windows User Group

Jun 7, 2015

I am setting up security for access of database tables for members in a specific Windows User Group.I want to check in a SQL script if this Windows User group is added and if so, add database users and grant SELECT on specific tables.

I have tried this:

SELECT * FROM master.sys.syslogins WHERE name like '%FoeUsers' AND isntgroup = '1'

but that selects a SQL user or group and not a Windows Group.Is there a way to check if a Windows NT (active Directory) user group exists?

View 5 Replies View Related

Query To Add Windows Authenticated User Via Remote

Jun 17, 2007

I was able to do this on a Windows XP machine but I am not able to get this to work on a Windows 2003 Server machine.
I am connecting to the Windows 2003 Server and MS SQL Express via remote desktop on the lan.

This is what worked for me before:
EXEC sp_grantlogin '4800X2ASPNET'
USE MyDB
EXEC sp_grantdbaccess '4800X2ASPNET'
EXEC sp_addrolemember 'db_owner', '4800X2ASPNET'

But for some reason now I am getting this error:
Msg 15401, Level 11, State 1, Procedure sp_grantlogin, Line 49
Windows NT user or group '4800X2ASPNET' not found. Check the name again.
Msg 15401, Level 16, State 1, Line 1
Windows NT user or group '4800X2ASPNET' not found. Check the name again.
Msg 15410, Level 11, State 1, Procedure sp_addrolemember, Line 75
User or role '4800X2ASPNET' does not exist in this database.

I thought what I needed to add was the name of this pc that will connect remotely, but that doesn't seem to be working.
What weird is the old copy of this query I used had the local pc as the computer name. If I exchange the computer name from the remote pc name to the local 2003 Server machine name, the query works fine. Although that still doesn't let me add connections via Web Developer Express without error. It doesn't make sense to me anyhows, how could I have used the local machine's name and not the remote machine's name to get this to work previously. So confused.

Thank you in advance for help.

View 1 Replies View Related

Windows Authenicated User - SQL 2000 Permissions

Mar 4, 2008

We have SQL 2000 Enterprise edition. There are several outside joins to MS Access tables.
I need to find out what would be the best way for me to locate a Windows authenicated users permissions on a table with the SQL database. I cannot seem to find any way to trace this information.
Thank you in advance

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved