How To Monitor Linked Server Authenticated Users

Oct 24, 2007

Hello experts. I inherited two SQL2000 SP4 servers. ServerA is configured with a Linked Server (ServerB). The problem is that liked_user which is the login configured "For a login not identified in the list above, connections will be made using this security context" is a sysadmin on ServerB. This means that any login from ServerA can do havoc on all databases in ServerB! There are many DBs and logins on both servers and no one can tell us which login is supposed to connect to the other server on which DB with what permission. Now, we want to trace which logins in ServerA use this Link so we can reconfigure this nasty setting.


I started the following SQL Profilers: On ServerA --> Filter TextData Like %ServerB%. On ServerB --> Filter LoginName Like liked_user AND HostName Like ServerA


Interesting enough, several entries were logged on the profiler i ran in ServerB which means that liked_user logged into ServerB from ServerA. Since liked_user is only used by the Link, i can safely conclude that the link was used by some login in ServerA. BUT, nothing was logged in the profiler i ran on ServerA!

Can anyone help me sort this one out? Thanks in advance,

View 1 Replies


ADVERTISEMENT

SQL 2012 :: Allow Authenticated User To Query Excel File Via Linked Server?

May 25, 2014

I have a 3rd party dashboard application that I can only use SQL authenticated logins to connect to the database.

I'm trying to create a query within the application that will directly access an excel file through a linked server.

As a test, I login to SSMS as the sql auth user to run the linked server query below but the following error is returned:

select *
from Corporate...[Sheet1$]OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "Corporate" returned message "Cannot start your application. The workgroup information file is missing or opened exclusively by another user.".
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "Corporate" reported an error. Authentication failed.
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "Corporate".

When I login as a Windows auth user, I can successfully run the above query.

I noticed within the linked server's security definition that I cannot specify a windows auth user as the mapped Remote User or as the Remote login

I've tried creating a Credential object with the identity of the windows user and assign that object to the sql auth user but to no avail. I still get the same error

I am using SQL Server express so the option of an automated server agent job to import the excel file is not available.

Details:
SQL Server Express 2012
Office version: Excel 10
Provider: Microsoft.ACE.OLEDB.12.0

View 9 Replies View Related

How To Write A Query To View OS And Db Authenticated Users ...

Aug 13, 2003

Hi,

we have a sqlserver 2000 db with a mixture of OS and NT authentication.How to write a query (or get info) on users.


The query should be able to tell me that these users are OS authentiacted and these users are db authenticated.


Thanks,
-copernicus

View 4 Replies View Related

Permissions In SQL Server 2005 To Allow Users To View The Management Activity Monitor?

Sep 27, 2006

For SQL Server 2000 we have a user login mapped to msdb with database role membership of db_datareader and public checked. This seems to allow the developers to view the Management Activity monitor. For SQL Server 2005 the same mapping is in place but the developers cannot view the Management Activity monitor. Developers are NOT granted the sysadmin role, and should not have that role.

What permissions need to be set for SQL Server 2005 to allow users to view the Management Activity monitor? They should not be allowed to take actions on the activities.

View 13 Replies View Related

Adding Users To Linked Server

Apr 20, 2007

Is there a certain way of adding users to access a linked server? Ilinked to an Oracle server but somehow, I'm unable to add any users,even after trying in EM. It'll allow me to select the local account,enter a remote userid/password, click apply save, but doesn't seemto hold the info.Please help!Thanks,Danny

View 1 Replies View Related

Accessing Users && Members In Active Directory Via Linked Server

Mar 24, 2006

Hi,

I'm trying to extract all the users and their membership to groups, and the membership of groups to groups from active directory though a link to server.

I can get the users. I can get the groups.... individually.

I can't get the info of what user is a member of or who are members of a group.

Anyone know how to do this or am I going to have to right a vb app? (Anyone already got the code...)

I want to load this data into tables for reporting in my Data Warehouse.

Cheers

Chris

View 1 Replies View Related

DB-lib Connect To NT Authenticated SQL Server 7

Feb 9, 2000

Hi,

I have a program using VB and db-lib to connect to the SQL Server 7.0, it was working fine with
SQL Authentication, now when I changed to NT Authentication on the server, it always gave me
login failed(permission denied) error. Since it's a huge program, and I don't have enough
time to rewrite this in ADO, can anyone help? It did connect correctly through query window.

Thanks.

Heidi Zhang

View 2 Replies View Related

SQL Server 2005 - How To Create Multiple Password Policies For SQL Authenticated IDs?

Sep 12, 2006

We have a need to have separate password policies for different groups of logins. For example: Those IDs that have greater privileges should be rquired to have more complex passwords that expire more frequently than IDs with lesser privileges.

It appears to me that SQL Server pulls the password policy from the default Active Directory domain group. Is there a way to create/utilize multiple policies for SQL Server authenticated IDs?

Thanks for your assistance.

View 4 Replies View Related

Integration Services :: SMTP Server Requires A Secure Connection Or Client Was Not Authenticated

Apr 11, 2013

I have an issue with SMTP server " send mail task ".  we see the following error [Send Mail Task] Error: An error occurred with the following error message: "The SMTP server requires a secure connection or the client was not authenticated.In SMTP connection manager what we should give in SMTP SERVER, if we use gmail id's in send mail task editor.

View 4 Replies View Related

Setup And Upgrade :: Activity Monitor Shuts Down If Connect To Instance Its Monitoring With Performance Monitor

Aug 19, 2015

If I'm on a remote machine, meaning a computer not in the WSFC cluster, and I open SSMS 2014, point it to a SQL Instance, and open activity monitor:

1.  I get all the panes and charts except % Processor Time.

2.  Then, if I authenticate to the cluster's domain by mapping a drive with valid domain credentials, I'm free to put performance counters in the Perfmon - - - but SQL Activity Monitor shuts down with“The Activity Monitor is unable to execute queries against server SQL-V01INSTANCE1..Activity monitor for this instance will be placed into a paused state.Use the context menu in the overview pane to resume the activity monitor.

Additional information:  Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))(Mscorlib)”

3.  Of course, the Activity monitor can't be resumed via the context menu. Removing counters and closing the perfmon do not work.  I dropped the mapped drive and rebooted the machine.  That brought back 95% of the information in the Activity monitor.

4.  Further experimentation showed that any mapping of drive shares present on the SQL Server to the computer running SSMS cut off functionality of the 'overview' pane in the remote machine's SQL Activity monitor -- the monitor that had been trying to watch the server offering the shares.

View 4 Replies View Related

User Authenticated

Sep 15, 2005

Hello,
In SQL, suser_sname() gives me connection user name (I am using a single user to create all connections), I authenticate users through a login form aginst a SQL login table. Is there any way I can get a username authenticated in an SQL query?
 
Thanks,

View 1 Replies View Related

Linked Server ( Not Able To Access Any Tables Under LINKED SERVER From My DESKTOP Enterprise Manager

Mar 25, 2002

Hi ,
On my Desktop i registered Production Server in Enterprise Manager
on that Server if i go to SecurityLinked Servers
There is another Server is already mapped, when i am trying to see the Tables under that one of the
Linked Server i am getting the Error message saying that
"Error 17 SQL Server does not exist or access denied"

if i went to Production Server location and if i try to see the tables i am able to see properly, no problems
why i am not able to see from my Desk top
i am using the sa user while mapping the Production Server on my DESKTOP using (ENTERPRISE MANAGER)

And i check the Client Network Utility in the Alias using Named Pipe only, i changed to TCP/IP still same problem
What might the Problem how can i see the Tables in Linked Server from my DESKTOP

Thanks

View 5 Replies View Related

DB Engine :: How To Point Linked Server To Specific Database / Rename Linked Server

Apr 24, 2015

I am using Linked Server in SQL Server 2008R2 connecting to a couple of Linked Servers.

I was able to connect Linked Servers, but I cannot point to a specific database in a Linked Server, also, I cannot rename Linked Server's name.

How to point the linked server to a specific database? How to rename the Linked Server?

The following is the code that I am using right now:

USE [master]
GO
EXEC master.dbo.sp_addlinkedserver
    @server = N'Machine123Instance456',
    @srvproduct=N'SQL Server' ;
GO
EXEC sp_addlinkedsrvlogin 'Machine123Instance456', 'false', NULL, 'username', 'password'  

View 6 Replies View Related

Problem With NT Authenticated Logins After Migrating To AD!!!!!!!

Sep 16, 2004

I have a developer who created a DTS package using an NT authenticated ID. Now that we've migrated the SQL Server to another Domain in Active Directory, I am showing the following error for his jobs:

"The job failed. Unable to determine if the owner (DomainUSer) of job EmployeeDump has server access (reason: Could not obtain information about Windows NT group/user 'DomainUSer'. [SQLSTATE 42000] (Error 8198)).

When I went to check and see what the permissions problem might be, I noticed that all of my NT Authenticated ID are broken after migration - in other words, I can add the Active Directory NT ID's to the SQL Server instance, but I cannot give these ID's permissions to databases because it says they already exist??? I know if I have a sql login that is 'orphaned', I can use "sp_change_users_login" to fix it, but I think I read that this won't work for NT authenticated IDs.

IS there a way to fix this short of dropping ALL of my NT authenticated logins and recreating them????????

View 3 Replies View Related

Adding An Authenticated User From External App

Apr 23, 2007

I have an ASP.NET 2 external application that is using and mix of the web services and tables/sps available from my 2005 SSRS.

I want to add an authenticated user from the external application. I don't see a web service that will do this. I have been through the SP's and can create roles, authenticated users, policies etc. But I think I need to update the XmlDescription field in the SecData table.



Do I need to build this XML string from scratch or is there a function / sp / web service that will do this. XML is a long ways from my strong suit.



Or am I just crazy and I should redirect my users to the Security tab!



Any help or advise would be appreciated.

View 6 Replies View Related

Users' Access Linked Table From ACCESS To SQL 7.0 By ODBC

Jan 12, 2000

Hi Everyone,

I have set up a link from ACCESS to a SQL 7.0 database using ODBC (File DSN saved on a shared DRIVE). The link works well only from the workstation where the link was created. But How can I create a link so a group of users can view the linked table in ACCESS without type a password? Any suggestion is appreciated.

Lunjun

View 2 Replies View Related

Scripting Stored Procedure Add With Linked Server Reference When Linked Server Is Not Available

Jul 18, 2006

Is there a way to bypass the syntax checking when adding a stored procedure via a script?

I have a script that has a LINKed server reference (see below) .

INSERT
INTO ACTDMSLINKED.ACTDMS.DBO.COILS ..etc.

ACTDMSLINKED does not exist at the time I need to add the stored procedure that references it.

PLEASE to not tell me to add the LINK and then run the script. This is not an option in this scenerio.

Thanks,

Terry

View 4 Replies View Related

Connection String With Authenticated User Info

Jul 6, 2006

Hi.  New to ASP.NET and first time posting.
My web app connects to a SQL database - SQL authentication. 
Users login to the web app through the login server control.  Once authenticated, it is my understanding that the user name and password are stored on the client as a cookie. 
How do you programmatically get this user info and use it for the userid and password parameters of the connection string?
Is there a better way to use the authenticated user info to access a SQL database?
Thanks

View 2 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

Query To Add Windows Authenticated User Via Remote Desktop [MS SQL Express]

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 MyDBEXEC 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 49Windows NT user or group '4800X2ASPNET' not found. Check the name again.Msg 15401, Level 16, State 1, Line 1Windows NT user or group '4800X2ASPNET' not found. Check the name again.Msg 15410, Level 11, State 1, Procedure sp_addrolemember, Line 75User 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

Query To Add Windows Authenticated User Via Remote Desktop [MS SQL Express]

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

Red X Show On Replication Monitor (publications Is Disconnected From Replication Monitor)

Jan 30, 2007

I have setup transactional replication everything on one box. later(two or three weeks later), Replication monitor is show red X Under my publishers (publications is disconnected). this is SQL2005.

Everyone known how to fix this problem?

Thanks,

Frank

View 1 Replies View Related

Monitor Server

Jul 9, 2002

Hello,

I do all my monitoring locally for disk space, locks, blocking, I've 10 production servers, We need to centralised the monitoring server so from one server all the monitors can be done. Does anyone has any ideas how memory, cpus consumption, disk space, all alerts, locks, blocking, log space and job completition monitoring can be handled.

Any idea or guidance is appreciated

Thanks
Roma

View 3 Replies View Related

How To Monitor SQL Server

Feb 22, 2007

Hi,

How do most of you monitor your SQL servers (i.e. performance, cpu utilization, job failures...)? Can you recommend any tools that are not too costly?

Thanks.
Mary

View 4 Replies View Related

How To Monitor My SQL Server?

May 16, 2008

Hi all,

I'm very new with SQL Server. My company just purchased a dedicated server and we installed SQL Server 2005 Express Edition. The operating system is Windows Server 2003.

We have only 8 databases in that machine and there is this 1 particular database that keeps getting error. I know that the database is in error if I go to the Management Studio Express and I expand the database, that particular database has no [+] expand symbol and if I try to view the properties it will say "out of memory error" or something like that.

How can I find out what is causing this error? That database has is 18MB and is not used frequently. The error usually appears once every month.

How to debug this issue?

thanks in advance

View 3 Replies View Related

How Do You Monitor SQL Server?

Jul 17, 2007

We've got a growing database server that is quickly getting more active. I wanted to find out how folks monitor their SQL Server 2005 instances? What tools have worked for you? What guidelines have you followed?


In particular, I want to be able to establish which database is driving the most activity, and diagnose which calls or statements are causing the most resource usage. On a bigger picture I want to understand how others are approaching monitoring in general with regards to SQL Server 2005.


Thanks!
Colin

View 2 Replies View Related

System Monitor / SQL Server

Jul 20, 2005

I want to use System Monitor to moniter the performance of SQL Server.My SQL DBA book tells me how to add counters to system monitor.But the book shows a Performance Object called SQLServer:Databases.This isn't appearing in the list of Performance Objects on my computer.How do I get the SQLServer objects to show in the Add Counters dialog?

View 1 Replies View Related

Mirror Monitor Error: Server Replication Requires The Actual Server Name To Make A Connection

Oct 17, 2007

I'm getting the following error when launching the database mirroring monitor and attempt to connect to my database.


TITLE: Connect to Server
------------------------------

Cannot connect to dborat01.hs.pitt.edu.

------------------------------
ADDITIONAL INFORMATION:

SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, 'xxxxxx'. (Replication.Utilities)

------------------------------
BUTTONS:

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

View 3 Replies View Related

SQL Server Admin 2014 :: Setup Performance Monitor Collector On Workstation Collecting Remote Server Data?

Mar 31, 2015

I set up the collector, and specify the Run As as my AD account in the Collector Set - Properties - General screen. My AD account is the local admin of the remote server.

However, the collector does not seem to work. Although the collecting set is shown as running, the The blg file stays at 64K. If I open it, there is nothing inside (no counter at the bottom). What did I miss?

View 1 Replies View Related

Performance Monitor - No SQL Server Object

Feb 14, 2000

Hi SQL lovers!

I'm trying to set up Performance Monitor to watch my SQL Servers. There should be an SQL object in the drop down list in the 'Add To Chart' dialogue box in PerfMon. But not for me! What am i missing here?

I've started the saved Performance Monitor file you get with SQL Server and i can see the 5 already added objects (buffer cache etc..) but when i go to add more, there is no SQL Server object - strange!?

Can anyone help?

Immense thanks,
Kyle Henly.
Allegedly a DBA!
Halcrow Group UK.

View 2 Replies View Related

SQL Server Items Not Available In Performance Monitor

Jul 6, 2000

We have SQL Server 7.0 running on a NT 4 sp6 server and non of its items track in performance monitor. Under the SQL program tab, when performance monitor is clicked, it comes up and has items for SQL, but they all track as zero. You can "add" other items such as processor items and they track fine. Any ideas???

Thanks in advance!

Ray Peterson
EPA Seattle
206-553-1682
peterson.ray@epa.gov

View 3 Replies View Related

SQL Server Object In NT Performance Monitor

Nov 23, 1999

I am experiencing problems gathering Stats from Performance Monitor on SQL Server. I am running NT4 with SP5 applied, with SQL Server 7.00.699 . My problem is that I can use the "Performance Monitor" under the Microsoft SQL Server 7.0 sub-menu (Start Menu) to monitor the SQL Server Stats on my machine, but I am unable to monitor any of the servers in our enterprise. Performance Monitor does not even list the SQL Server Object. Does anyone have any suggestions please?

View 2 Replies View Related

No SQL Server Performance Monitor Counters

Jul 2, 2004

On some of my database servers, there are SQL Server counters in Performance Monitor. On other servers these are not present. How can I turn these on?

I know with the disc counters you need to explicitly enable them:
diskperf -yv

Is there a parallel for SQL Server? I don't remember doing anything to get them working on the servers that have them. All online articles seem to assume that they just exist.

TIA!

View 11 Replies View Related







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