use ApplicationName property in ConStr and ease your Traces

Use ApplicationName of the connection string and ease your sql profiler traces, this will provide the application’s name which is executing the query. i.e:

connectionString=Data Source=MyServer;Initial Catalog=MyDatabase;Persist Security Info=True;User ID=MyUserName;Password=MyPassword;Application Name=My Application

Take Advantage of Application Name
SqlConnectionStringBuilder.ApplicationName Property