Solved

Passing the ApplicationName to SQL Profiler / C2 Auditing

Posted on 2006-11-10
2
811 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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now