dbTalk Databases Forums  

Connection Logs in SQL Server

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Connection Logs in SQL Server in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Williams
 
Posts: n/a

Default Connection Logs in SQL Server - 01-24-2008 , 09:53 AM






Hello all,
Is there a log of all connection attempts made to a SQL server?
The server I have is on Windows 2k.

Thanks,
David

--
David Williams
Georgia Institute of Technology, Atlanta Georgia, 30332
Email: dw149 (AT) prism (DOT) gatech.edu

Reply With Quote
  #2  
Old   
David Williams
 
Posts: n/a

Default Re: Connection Logs in SQL Server - 01-24-2008 , 09:58 AM






Looks like SQL Profiler will do the job. Anybody have
experience in using it to see connection attempts?

David


David Williams <dw149 (AT) acmex (DOT) gatech.edu> wrote:
Quote:
Hello all,
Is there a log of all connection attempts made to a SQL server?
The server I have is on Windows 2k.

Thanks,
David

--
David Williams
Georgia Institute of Technology, Atlanta Georgia, 30332
Email: dw149 (AT) prism (DOT) gatech.edu
--
David Williams
Georgia Institute of Technology, Atlanta Georgia, 30332
Email: dw149 (AT) prism (DOT) gatech.edu


Reply With Quote
  #3  
Old   
Plamen Ratchev
 
Posts: n/a

Default Re: Connection Logs in SQL Server - 01-24-2008 , 11:58 AM



Here are a couple resources (SQL Server 2000 specific):
http://www.sqlservercentral.com/arti...profiler/1461/
http://www.microsoft.com/technet/sec.../sql2kaud.mspx

Using server side traces is a good way for production environments:
http://vyaskn.tripod.com/server_side...sql_server.htm
http://www.dbazine.com/sql/sql-articles/larsen6

This one is SQL Server 2005 specific:
http://blogs.msdn.com/sqlprogrammabi...16/703079.aspx

HTH,

Plamen Ratchev
http://www.SQLStudio.com


Reply With Quote
  #4  
Old   
David Williams
 
Posts: n/a

Default Re: Connection Logs in SQL Server - 01-24-2008 , 01:05 PM



This looks great.
Thanks for the help.

David
Plamen Ratchev <Plamen (AT) sqlstudio (DOT) com> wrote:
Quote:
Here are a couple resources (SQL Server 2000 specific):
http://www.sqlservercentral.com/arti...profiler/1461/
http://www.microsoft.com/technet/sec.../sql2kaud.mspx

Using server side traces is a good way for production environments:
http://vyaskn.tripod.com/server_side...sql_server.htm
http://www.dbazine.com/sql/sql-articles/larsen6

This one is SQL Server 2005 specific:
http://blogs.msdn.com/sqlprogrammabi...16/703079.aspx

HTH,

Plamen Ratchev
http://www.SQLStudio.com

--
David Williams
Georgia Institute of Technology, Atlanta Georgia, 30332
Email: dw149 (AT) prism (DOT) gatech.edu


Reply With Quote
  #5  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Connection Logs in SQL Server - 01-24-2008 , 04:30 PM



David Williams (dw149 (AT) acmex (DOT) gatech.edu) writes:
Quote:
Looks like SQL Profiler will do the job. Anybody have
experience in using it to see connection attempts?
You can use Profiler to track login and failed login attempts. However,
if the attempt to connection fails because you cannot reach SQL Server,
Profiler will not track anyhing. Quite obviously.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #6  
Old   
David Williams
 
Posts: n/a

Default Re: Connection Logs in SQL Server - 01-25-2008 , 06:54 AM



Good point. I'm going set up a Microsoft Network Monitor on the
connection and see what traffic ( if any ) is coming across towards the
server.

That should help me a little.

David


Erland Sommarskog <esquel (AT) sommarskog (DOT) se> wrote:
Quote:
David Williams (dw149 (AT) acmex (DOT) gatech.edu) writes:
Looks like SQL Profiler will do the job. Anybody have
experience in using it to see connection attempts?

You can use Profiler to track login and failed login attempts. However,
if the attempt to connection fails because you cannot reach SQL Server,
Profiler will not track anyhing. Quite obviously.

Quote:
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
--
David Williams
Georgia Institute of Technology, Atlanta Georgia, 30332
Email: dw149 (AT) prism (DOT) gatech.edu


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.