none
Listing SQL Queries executed via ADO.NET RRS feed

  • Question

  • I want to list SQLs executed by AD.NET.

    Well,I did not work with .NET technology that much. For Hibernate, there is config option named "show sql" which enlist all SQLs to be executed on standard console. I want something like "show sql" for ADO.NET which will enlist SQLs to be executed.

    I don't want to change my code to translate object entity to SQL (like using pre-defined function toSQLString()) but I want a something like global parameter or config option which will be applicable to whole application.

    This might be very easy thing, but as don't know much .NET, please forgive me and answer.

    Thursday, September 20, 2012 8:24 AM

Answers

  • Hi ShaileshBhagwat;  

    To your statement, "I don't want to change my code to translate object entity to SQL (like using pre-defined function toSQLString()) but I want a something like global parameter or config option which will be applicable to whole application.", Entity Framework does not have such an option.

      


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    • Marked as answer by Alexander Sun Tuesday, October 9, 2012 8:42 AM
    Thursday, September 20, 2012 2:39 PM