Forum Replies Created

Viewing 15 posts - 13,201 through 13,215 (of 49,552 total)

  • RE: IS NULL in a Case Statement

    Case is not a control flow statement, it can't return portions of the query. It returns expressions (values)

  • RE: How to convince people for small changes

    sqlnaive (5/10/2013)


    It has been around an year or little more than that

    That you've been monitoring and recording the index usage stats, taking care to persist the results before server reboots...

  • RE: sql

    Spam. Reported.

  • RE: How to convince people for small changes

    sqlnaive (5/10/2013)


    I was checking in my database and found lots of unused indexes. I found it based on summing up the index seeks, index scans and index lookups and comparing...

  • RE: NOLOCK clarification please

    nick.welham (5/10/2013)


    I'm interested in when a second user would be able to see that data, or the same user in a later SPROC.

    The same user, immediately, always. A user...

  • RE: Does BACKUP use the transaction log?

    The backup doesn't write to the transaction log, but while there's a backup in progress space in the log can't be reused. If you're seeing autogrow events, it suggests that...

  • RE: How to find and kill Global Variables from tempdb

    I gave you more than enough to look in Books Online....

    sys.dm_db_task_space_usage and sys.dm_db_session_space_usage

  • RE: NOLOCK clarification please

    nick.welham (5/9/2013)


    1. We are not committing data via transactions or rolling it back. Just simple inserts/updates/deletes.

    If you have inserts, updates and deletes then you have transactions that can get rolled...

  • RE: What is a semicolon used for in SQL Server?

    Currently it's required at the end of a merge and the end of the statement prior to a CTE. REquirements may well increase in future as the T-SQL language gets...

  • RE: Weird interview question

    Sean Lange (5/9/2013)


    The difference between delete and truncate is that delete is a dml operation that is fully logged and truncate is DDL operation and is minimally logged. What that...

  • RE: How to debug query

    That would have been caused by exactly the same thing that caused the backups to fail, the database being in single-user mode and an existing connection to the database, hence...

  • RE: How can I kill ad-hoc or long time running queries, safely?

    sql-lover (5/9/2013)


    Killing those ad-hoc queries after X minutes will release the IO pressure. So instead of hammering the SAN for 5+ minutes, if they are not done my 1 min...

  • RE: How to debug query

    JimS-Indy (5/9/2013)


    ...Even though CPAS could not back up, the error file does seem to show problems with indexes. How do I rebuild all the indexes?

    What error shows problems with...

  • RE: How can I kill ad-hoc or long time running queries, safely?

    Correct, it's CPU and RAM, but how does killing a query that's done a lot of physical IO help? The IO's already done by the time you kill the query,...

  • RE: How to debug query

    Description: Executing the query "BACKUP DATABASE [CPAS] TO DISK = N'D:\Data\MSSQL...." failed with the following error: "Database 'CPAS' is already open and can only have one user at a...

Viewing 15 posts - 13,201 through 13,215 (of 49,552 total)