SET Commands

  • Hi Guys,

    We normally set our enviroment while working in Query Analyzer inside the Management Studio. Right?

    For we set our environemt saying,

    SET NO COUNT ON

    SET ANSI_NULLS ON

    SET IMPLICIT_TRANSACTIONS ON and so on....

    Like Oracle, we use a command SET <> which displays the current settings in the sqlplus or sqlplusw windows. Do we have any similar kind of command through which we can display all the settings made to my current Query Window????????

  • Have a look to sys.dm_exec_sessions:

    SELECT * FROM sys.dm_exec_sessions WHERE session_id = @@SPID

  • Hey,

    That was very GOOD.

    But how could i get the infomartion whether my IMPLICIT_TRANSACTIONS is ON / OFF??????

  • have you looked at the gui options?

    tools - options - query execution - SQL Server - Advanced

    and

    tools - options - query execution - SQL Server - ANSII

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • Execute command dbcc useroptions under that database.

    MJ

  • Thank You.:-)

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply