Forum Replies Created

Viewing 15 posts - 9,856 through 9,870 (of 49,552 total)

  • RE: Are the posted questions getting worse?

    BrainDonor (3/3/2014)


    SQL Bits XII has finally been announced http://www.sqlbits.com/.

    Wooot!

    Next problem, what do I submit?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Change datatype of a column

    You need to drop all constraints, check constraints, foreign key, unique constraints, not disable them.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How to shrink log in 2008 r2? URGENT!!!!!!

    SQL_Surfer (3/2/2014)


    After waiting for a while, I was able to detach the db, rename the log file and then attach it back without the log file.

    Excellent way of destroying...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: move datafile to a different disk

    ALTER DATABASE ... MODIFY FILE

    Take the DB offline (no need to restart SQL)

    Copy the file to its new location

    Bring the DB online

    Practice on a non-production server first.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error converting data type nvarchar to numeric.

    danielfountain (2/28/2014)


    Surely if it was the where clause causing this issue then this would get round the issue.

    No.

    All you've done there is add an extra layer which the parser will...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error converting data type nvarchar to numeric.

    Are there any answers for teams other than Team1 which have non-numeric values? If so, that's probably the cause. The case could be occuring on rows which would later be...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sp_executesql: why does plan only use index seek with OPTION(RECOMPILE)

    If you're using SQL 2012, use the 'catch-all' form (where Column=@Parameter or @Parameter IS NULL) and add the OPTION (RECOMPILE) to the query.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Effective way of migrating sql server 2000 to 2012

    yuvipoy (2/27/2014)


    Client needs the configuration with SQL Server 2012 on windows xp (if possible, else we would suggest other OS to client).

    I would suggest a server operating system for a...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Objects and Filegroups

    Views and stored procs are stored within the system tables (they're just saved code), system tables are always on primary. While you can join from sys.indexes to sys.objects it will...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sp_executesql: why does plan only use index seek with OPTION(RECOMPILE)

    Because - http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    rodjkidd (2/27/2014)


    Gail, I see SQL Bits are dragging this out as long as they can, by offering little titbits, or seeing how quickly it takes for me to go completely...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Shrink File or Shrink Database

    Ken.Cushing (2/27/2014)


    I too was wondering the real difference between Shrinking files vs database. Management Studio has an option for each but when choosing shrink file, I don't see where you...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Permissions to perform SQL Profiler / Trace

    DBO does not include trace permissions. You need to explicitly grant him the ALTER TRACE permission at the server level.

    GRANT ALTER TRACE TO <login name>

    The only fixed role which...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Shrink Database

    You need at least enough free space to hold the largest index (for a rebuild), otherwise the DB will grow

    Other than that, OK/acceptable in terms of what?

    If you have...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: exclude CTE values

    Koen Verbeeck (2/27/2014)


    Maybe you can create an indexed view.

    Maybe, maybe not. Might make other things worse, might not be possible. No way to tell.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 9,856 through 9,870 (of 49,552 total)