Forum Replies Created

Viewing 15 posts - 35,206 through 35,220 (of 49,552 total)

  • RE: Is it possible to create nonclustered index on columns with space and ignore the space so that it does not do a table scan?

    skhan-680833 (12/18/2009)


    but is it possible to do teh create index in a way so that it ignores the blank spaces?

    What do you mean? What blank spaces where?

    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: Is it possible to create nonclustered index on columns with space and ignore the space so that it does not do a table scan?

    What precisely do you mean by "columns with space"?

    Columns with lots of nulls?

    Columns with lots of empty strings?

    Columns that have varchar/nvarchar with leading/trailing spaces?

    Something else?

    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: Table - More Rows or More Columns?

    jnaranjo86 (12/18/2009)


    Anywho, what I am doing is, imo, almost clearly explained in the first post.

    If that's clearly explained, I don't want to see what you call a 'brief summary' ;-)....

    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: Table - More Rows or More Columns?

    This is a difficult one and, to be honest, I'm not overly fond of either.

    The first, often called Entity-Attribute-Value is not a particularly good design most of the time. It's...

    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: partitioning in 2008

    lakb200 (12/18/2009)


    Cannot define as date time.

    Why not?

    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?

    Itanium, because someone at Redgate won the lottery. 😉

    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: check statistics

    lakb200 (12/18/2009)


    autostats is turned on. How would you know which stats are USELESS and could be dropped?

    If they are automatically created statistics then, virtually by definition, they are not...

    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 change database status is that stays..... "restoring"

    GilaMonster (12/18/2009)


    If that doesn't work, post the error messages and check what's in the SQL error log.

    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 change database status is that stays..... "restoring"

    Good thing that you're not running SQL 2000 (at least I assume you're not) or that could have done nasty things to the database. If you are using SQL 2000,...

    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: Query executing

    Can you save the plan as a .sqlplan file? While I can read the xml, it's tedious.

    Are there more rows that have type=4 than for the others?

    Does an UPDATE...

    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: partition key column

    Please don't cross post. It just wastes peoples time and fragments replies.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic836109-1550-1.aspx

    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: check statistics

    Not quite sure I understand your question. You can use profiler to see what a stats update job is running and how long the various steps take.

    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: partitioning in 2008

    lakb200 (12/17/2009)


    can you partition on

    nvarchar column with values mm/dd/yyyy.

    Wait just a sec. An nvarchar column with a date in it? Why nvarchar and not datetime? If it's a date,...

    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 check a duplicate database through tsql in sql server 2000 or 2005

    SQL 2005/2008

    IF EXISTS (SELECT 1 FROM sys.databases WHERE name = <database name>)

    -- database exists

    SQL 2000

    IF EXISTS (SELECT 1 FROM sysdatabases WHERE name = <database name>)

    -- database...

    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: full backup and transaction

    Depends.

    Do you just want a copy of the database on the dev box? If so, just the full's fine. If you want the opy on the dev box to reflect...

    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 - 35,206 through 35,220 (of 49,552 total)