Forum Replies Created

Viewing 15 posts - 41,521 through 41,535 (of 49,552 total)

  • RE: sqlprov.exe

    It's used on Vista (and I think Server 2008) to add in an administrative user as, by default, the builtin\admins are no longer automatically sysadmin on those OSs. It's only...

    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: New-Features SQL 2008

    lucassouzace (1/21/2009)


    ok, is Latin1_General_CS_AS

    Right. That's case sensitive (that's what the CS shows)

    For some strange reason, the hierarchyid data type is case sensitive in some places in a case sensitive 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: Unable to shrink transaction log

    Rajesh kasturi (1/21/2009)


    What is the reason you are not running backup log with truncate_only.

    If you run the backup log with truncate_only, I am sure your log file will 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: Does every table need a clustered index?

    Unless you have a good reason not to, every table should have a clustered index.

    Tests have shown that with a well-chosen clustering key, all operations are faster on the table...

    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: Co-worker Dispute

    Grant Fritchey (1/21/2009)


    I'm inclined to say the second without any data. But I've seen instances where the first can be faster.

    If the indexes are good, the stats accurate and the...

    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: Back up scripts

    You can use the windows scheduler and sqlcmd to do scheduled backups. It's not as easy as SQLAgent, but it does work. For sqlcmd, you'll want to use the -i...

    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: Co-worker Dispute

    JKSQL (1/21/2009)


    which process is faster and better for longevity?

    Depends. Test them both under load and see which one scales better. Sometimes the temp table is better as...

    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: DBCC CHECKDB doing nothing

    My guess is that it found a possible index inconsistency in that table. (row in cluster that's not in the noncluster or vis versa)

    The way the checkDB algorithm works is...

    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: danger in granting roles in model and tempdb

    pixye.sb (1/21/2009)


    you mean that a user having the role db_datawriter on msdb has by default the same privilege on all databases in that instance?

    No. A user with the db_datawriter on...

    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: COVERED INDEXES / COVERING A QUERY

    thulani.moyana (1/21/2009)


    I've noticed that the key columns include a sort order eg. asc but the columns in the include clause don't, do I add this sort order to non key...

    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: New-Features SQL 2008

    It's in the database properties. From object explorer, right click the database and select properties.

    It's also probably available with one of the DATABASEPROPERTYEX options

    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: danger in granting roles in model and tempdb

    Why would it need permissions in tempDB? Temp table usage doesn't require any permissions in tempDB, so unless there're doing something like creating permanent tables in tempDB (which the permissions...

    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: COVERED INDEXES / COVERING A QUERY

    And just note there is a 16 column/900 byte limit on index key size.

    Edit: 16, not 60.

    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: Deadlock

    Switch traceflag 1222 on. That will result in a deadlock graph been written to the error log every time a deadlock occurs. Post the result of that graph here.

    DBCC TRACEON(1222,-1)

    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: CORRUPT A DATABASE

    Disclaimer: Do not do this on a production server. Do not do this to any database that you care about. If you want to play, do so on a SQL...

    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 - 41,521 through 41,535 (of 49,552 total)