Solved

Passing the ApplicationName to SQL Profiler / C2 Auditing

Posted on 2006-11-10
2
809 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
Comment Utility
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
Comment Utility
Hi JaffaKREE - how did you go after setting the application name?
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

743 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

16 Experts available now in Live!

Get 1:1 Help Now