Forum Replies Created

Viewing 15 posts - 121 through 135 (of 286 total)

  • RE: Is there a way to enforce the use of a where clause in a select?

    Create a job which runs every 5 seconds and KILL the processes of specific user(s) where program_name is 'Microsoft SQL Server Management Studio - Query' and that reached specified threshold,...


    Alex Suprun

  • RE: cdc log growth

    SELECT name, log_reuse_wait_desc FROM sys.databases?


    Alex Suprun

  • RE: Same Query, Different Server, Different Plan

    The original question is totally wrong. Who cares why the query plan is different on these 2 servers or if one server has more memory or if there is a...


    Alex Suprun

  • RE: Same Query, Different Server, Different Plan

    I'm not sure that it would help, but try to add condition "tgt_roi.fkRevPeriod = @fkRevPeriod" into ON clause, like this:

    ON tgt_roi.fkOrderItem = src_oi.fkOrderItem AND tgt_roi.fkRevPeriod = src_oi.fkRevPeriod AND tgt_roi.fkOrder =...


    Alex Suprun

  • RE: sys.sql_modules truncating definition

    rxm119528 (9/26/2014)


    Alexander Suprun (9/26/2014)


    rxm119528 (9/26/2014)


    This starts truncating after 43696 either using OBJECT_DEFINITION or sys.sql_modules.

    Nothing is truncated. Accept it. The stored procedure has 43696 characters.

    Please add one character to it.

    /*COMMENT!*/

    43697


    Alex Suprun

  • RE: sys.sql_modules truncating definition

    rxm119528 (9/26/2014)


    This starts truncating after 43696 either using OBJECT_DEFINITION or sys.sql_modules.

    Nothing is truncated. Accept it. The stored procedure has 43696 characters.


    Alex Suprun

  • RE: sys.sql_modules truncating definition

    Eirikur Eiriksson (9/26/2014)


    Quick though, use the object_definition function, that is the same as the system views use.

    If it's the same, then what's the point?


    Alex Suprun

  • RE: sys.sql_modules truncating definition

    rxm119528 (9/26/2014)


    These are the actual statistics of the procedure

    Words9899

    Line2406

    Characters(no Space)84040

    Characters(With Space)124451

    Are you sure?

    SELECT LEN(definition) FROM sys.sql_modules WHERE object_id = object_id('procA')


    Alex Suprun

  • RE: DEADLOCK help

    Use system_health event session to get deadlock graphs.


    Alex Suprun

  • RE: sys.sql_modules truncating definition

    SELECT [ObjectName], LEN([TSQLCommand]) FROM [dbo].[tblStoredProcedureAudit] ?


    Alex Suprun

  • RE: Restore Transaction Log after RESTORE DATABASE [Cadence] WITH RECOVERY

    ross.mason 49698 (9/26/2014)


    It was the only way I knew how to put the database back so users could access it.

    If users can access database then they can modify it. So,...


    Alex Suprun

  • RE: sys.sql_modules truncating definition

    It could be a limitation of SSMS.


    Alex Suprun

  • RE: Frequent login attempts from blank user

    Don't need to run a trace, simply use the default one (if enabled). Then you can get ApplicationName and ProcessID.

    Use this query:

    DECLARE @filename VARCHAR(500)

    SELECT @filename = SUBSTRING(path, 0,LEN(path)

    ...


    Alex Suprun

  • RE: TEMPDB FULL

    Ratheesh.K.Nair (9/23/2014)


    Can any experts here help me find why the database files showed no free space when the transaction waas active?

    You should have asked that question when your transaction was...


    Alex Suprun

  • RE: 1.5 million records into temp table

    Generally, there is no issue of loading 1.5 million records to a temp table.

    But in your case, you didn't provide enough information to argue on the question. 1.5 million records...


    Alex Suprun

Viewing 15 posts - 121 through 135 (of 286 total)