Forum Replies Created

Viewing 15 posts - 9,571 through 9,585 (of 49,571 total)

  • RE: Float Vs Decimal Vs Int

    Grant Fritchey (3/21/2014)


    Didn't we already have this exact conversation earlier?

    Indeed. Apparently all the previous answers were unacceptable, so keep asking until the desired answer materialises.

  • RE: SQL 40 hour recovery

    Default trace won't show much. Objects created and dropped, little else.

    Search this site, there are a few articles on the subject.

  • RE: SQL 40 hour recovery

    Read the raw log backups. Not trivial, not easy, no documentation available and probably several hours at best. To be honest, not something I'd even do unless someone was insisting...

  • RE: missing .mdf and .ldf database file after hard drive crash

    Restore from backup.

  • RE: CTE has more columns than were specified in the column list

    There are more columns in the SELECT list (a lot more) than are listed in the CTE's definition. They have to be the same. Either add the rest of the...

  • RE: SQL 40 hour recovery

    Hard to say without investigation, but I'd guess that someone opened a transaction sometime between the log backup that was small and the one that was large and didn't commit...

  • RE: Is View Cached somewhere in SQL Server 2008 R2

    Nope, no caches of old object definitions.

    Not following what's happening, so can't tell you what's wrong.

  • RE: Ambiguous column name

    This is the problematic query taken to basics:

    SELECT col1, col1 FROM SomeTable ORDER BY col1

    It's the order by, it doesn't know which col1 to sort by. Wasn't caught by the...

  • RE: Problem with Attaching Databases

    If the snapshot tool is capable of hooking into SQL and quiescing the IOs, the approach will work. It could that on windows 2008 it was doing that and now...

  • RE: Ignoring cache?

    EXECUTE <procedure name> WITH RECOMPILE will generate a new plan just for this execution, the generated plan won't be cached and the cached plan won't be affected.

  • RE: Moving MDF and LDF files

    Providing you don't have replication or CDC. It's not the best option though.

    Take backups first. Test in dev/test first.

  • RE: How to repair .mdf file?

    Sushant Yadav (3/21/2014)


    1)

    5)

    DBCC CHECKDB (database_name, REPAIR_ALLOW_DATA_LOSS)

    Please check for error and use appropriate option.

    Don't do this. Whatever else you do, do not follow this advice. Repairing with no idea what's...

  • RE: Problem with Attaching Databases

    Grant Fritchey (3/20/2014)


    Try deleting the log file and attaching the database without the log. It might not work, but it's worth a shot.

    It won't work. Deleting the log requires...

  • RE: Use of set implicit_transactions ON

    When you set implicit transactions on, any statement starts a transaction which is not committed until you explicitly commit it. It's something you only use if you know what you're...

  • RE: Float Vs Decimal Vs Int

    Use the data type which is appropriate to the values you are storing.

    If you're storing integer values, use integers. End of story.

    Don't make non-standard design decisions based on performance...

Viewing 15 posts - 9,571 through 9,585 (of 49,571 total)