Solved

Passing the ApplicationName to SQL Profiler / C2 Auditing

Posted on 2006-11-10
2
815 Views
Last Modified: 2008-02-01
In a trace file, there is an "application name" field.  It displays "Query Analyzer", "SQL EM", or "Visual Basic", ".Net SQLClient Provider", etc.

We have applications that use Visual Basic 6.0 and ASP.NET.  I'm trying to figure out how to pass a name we decide on ("Application X") to the Trace/Audit file so that it shows up in the Application Name Field through both of them.

0
Comment
Question by:JaffaKREE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 16

Accepted Solution

by:
Hillwaaa earned 500 total points
ID: 17918698
Hi JaffaKREE,

There is a post on the msdn forums that indicates:

"The name normally comes from the the connection string:
server=MyServer;database=MyDatabase;Integrated Security=SSPI;Application Name=ApplicationName;"

Original post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=819752&SiteID=1

Cheers!
0
 
LVL 16

Expert Comment

by:Hillwaaa
ID: 17945685
Hi JaffaKREE - how did you go after setting the application name?
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to shrink a transaction log file down to a reasonable size.

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question