my queries executing from an ASP.NET application and I don't want those SQL queries & also store procedure to be traced by SQL Server Profiler. How can I do it?
Loading
my queries executing from an ASP.NET application and I don't want those SQL queries & also store procedure to be traced by SQL Server Profiler. How can I do it?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyaprakash SamantarayPosted Dec 7, 2023, 8:37 AM
To disable tracing, open the Web.config file for the application, and find the element within the section. Either set the enabled attribute to "false" (to disable tracing) or set the localOnly attribute to "true" (to enable tracing only on the server itself). Note that even with tracing disabled in this way, it is possible for individual pages to turn on page-level tracing either within the Page directive of the ASP.NET page, or programmatically through application code.
Encrypting and Decrypting database objects for security and privacy >> https://tinyurl.com/bdz3zpw3
Asht TPosted Dec 7, 2023, 5:52 AM
Jignesh Kumar Thank u... but i don't want ...to tranced query in sql profile for security purpose, means do not dispaly my query like
exec GetData_P @Flag=N'ListofStudent' in sql profile
I already write query in dot application but when we run sql profile then exec GetData_P @Flag=N'ListofStudent' this is shown in sql profile so how to hide this in sql profile.............DO NOT TRACE In SQL PROFILE or other wise encrypt store procedure : i used WITH Encryption but this decrypted useing SQL Decryptor.... actually i dont want to show my store procedure logic to anyone.
Jignesh KumarPosted Dec 7, 2023, 5:18 AM
Hello asht,
Please find example for store procedure,
Store procedure for Insert record to table,
Update record :
Get records from table :
Delete records from table :
Back end code for C# :
Note : To trace store prcedure you need to run sql profiler. Please refer this thread which will help you out,
https://www.mssqltips.com/sqlservertip/6441/using-sql-server-profiler-to-capture-stored-procedures-executions/