Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • Reply To: High CPU utilization due to too much idle sessions on DB instance.

    HI,

    Idle sessions will never consume your CPU resource. To start investigating, you can use sys.dm_exec_request OR sys.sysprocesses  DMVs to check for sessions that are actively running at that instance. These...

  • Reply To: Require Recommendations | Index Rebuild

    Hi All,

    The DBA who was before me had used the Ola's code in the sql job. But as i found out, it did not removed fragmentation. So i tried to...

  • Reply To: Explicit Transaction not working

    Hi,

    Updating 0 rows is correct execution path and there is no error.

    In order to check for the try catch block, you can do the following -

    1. set incorrect data type...
  • Reply To: BCP

    Hi,

    Assuming you have to add 3 columns with data to the existing 5million row table.

    Following is the approach which you can use -

    1. Extract the 5 million rows data in...
  • Reply To: Grant exec permission but prevent DML operations in proc

    Hi S_Kumar_S,

    Even if you provide explicit DENY Insert/Update/Delete in the user securables within the database to the login-user, the procedure once executed by the same user will perform the DML.

    As...

  • Reply To: Replacing All with Required columns.

    Since it is a part of SP, there must be some logic and requirements of other columns in the remaining SP code.

    Get the requirements clear and eliminate the columns which...

  • Reply To: Temp Tbl

    Hi,

    Using temp tables is beneficial when used in stored procedures and they come handy when you have to store temporary table values for further computations.

    Yes, they consume storage and memory...

Viewing 7 posts - 1 through 7 (of 7 total)