Forum Replies Created

Viewing 15 posts - 14,746 through 14,760 (of 49,552 total)

  • RE: Executing dynamic SQL

    Because it allows for parameterisation of the dynamic SQL (which exec does not). That leads to better plan reuse and better security

  • RE: DBCC Checkdb Problems

    Ack. Fixed.

  • RE: How to set index for these select queries

    Index on (IsDeleted, SubmitDate DESC) include (ProdName,Category,TotalStock,Price)

    btw, that's a rather odd predicate on the date column...

  • RE: DBCC Checkdb Problems

    mitzyturbo (1/17/2013)


    We still have the 2000 instance of this db, is there anyway we can pinpoint the change at that level, identify and migrate the fix?

    Oh yes, absolutely and very...

  • RE: Something Most Likely Simple

    Also, since this is SQL 2008, have a read up on Grouping Sets. They allow a lot more flexibility than cube and rollup do.

  • RE: DBCC Checkdb Problems

    Bhuvnesh (1/17/2013)


    The specialist is a person who knows everything about something but nothing about anything else.

    If you want to be insulting, kindly be so elsewhere.

  • RE: Torn page issue

    Put the DB into single user mode and run CheckDB(<database name>, repair_rebuild)

  • RE: Restoring file group error

    You'd have to restore the primary filegroup backup, the the secondary, then all the log backups since the oldest of those 2 backups to bring the DB to a consistent...

  • RE: Droping a temp table.

    Firstly, because temp tables are in tempDB, and unless you are in that database, sys.tables refers to your user database's tables, not TempDB.

    Secondly, because the name in the system catalog...

  • RE: DBCC Checkdb Problems

    mitzyturbo (1/17/2013)


    Cheers Gilla, have read a few blogs and articles about it and it would appear that if all else fails, recreate the database and import the data back across.

    That's...

  • RE: How to set index for these select queries

    prakash.kumar3669 (1/17/2013)


    in other words covering queries in not an option i guess.

    Why not?

  • RE: Attach database file failed

    If the DB was brought online and a new log file created, the old one is completely useless and cannot be used.

    Correct your alter database statements (I guess you didn't...

  • RE: Attach database file failed

    If you attached just the data file and had SQL rebuild the log, that old log file is now useless.

  • RE: DBCC Checkdb Problems

    This one's nasty.

    Someone, at some time, made changes directly to the system tables in SQL 2000. SQL 2000 didn't check for that when it ran checkDB, so it went...

  • RE: Secondary indexes in SQL Server.

    No such thing as a secondary index. Do you mean a secondary XML index?

Viewing 15 posts - 14,746 through 14,760 (of 49,552 total)