Forum Replies Created

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

  • RE: Query Optimization

    If you want someone to rewrite the query, you're going to have to help them.

    Please give us the table structure (as create table statements), the index definitions (all of...

    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: DATETIMEVERY URGENT

    Use Jacob's version, it's faster than the convert to varchar and back. See my blog for the details.

    And please don't shout at us. (post in all caps)

    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 Upfrom mdf and ldf

    There's a post on Paul Randal's blog on how to 'hack' a corrupt DB back into a server after it was detached. It's one of the more recent entries.

    http://www.sqlskills.com/blogs/paul

    Also note...

    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: To give my process high priority in SQL server 2000

    Only in SQL 2008, and that's just a cpu-time and memory priority. If a kill command is issued against your session, it will be terminated.

    I'm curious. Why do you need...

    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: DDL Trigger database options

    Have a look at the page in BoL titled "DDL Event Groups for Use with Event Notifications"

    There are a few events there that aren't included in DDL triggers, but it...

    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: Performance Implications of Database Snapshots

    Robert Davis (9/24/2008)


    Great article Gail!!! I'd love to see a follow-up where you measure the effects that snapshots on a mirrored database (on the mirror partner) running in synchronous mode...

    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: What is the most effecient data type in SQL Server

    It's not a new data type. I know it's been around since 2000, I think it's been around much longer.

    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 Optimization

    What's that query supposed to do?

    How many rows are in those tables?

    Can you post the table and index structures and some sample data please?

    Why all the count distincts? They're very...

    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: Connectivity Issues

    DonKo (9/25/2008)


    One reference suggested since the username is NULL that is has to do with a domain controller or some other network issue. My LAN/SAN guy says "No" and...

    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: Transaction Log and Recovery Model

    Molly Cary (9/24/2008)


    Yes, I can change it. Would it be a better solution for me to also have them back up all day instead of the 6-9 window? Not sure...

    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: sql query to find statement currently executing in sp

    Jeff Moden (9/24/2008)


    Yeah, but what does the OP want to do with it? 🙂

    <shrug> Beats me. We'll probably never know

    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: Determine fragmentation of HEAP table

    As far as I'm aware, it can be anywhere in the same filegroup.

    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: Tables are big?

    varchar doesn't reserve space. If a varchar(4000) column contains only 4 characters, it takes only 6 byes to store (there are two bytes overhead because it's a variable length column)....

    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: Transaction Log and Recovery Model

    It's definitely the backup drive that the errors are complaining about.

    write failure on backup device 'F:\MSSQL\BACKUP\MEDICAL\MEDICAL_tlog_200809240630.TRN'. Operating system error 112(There is not enough space on the disk.

    Can you monitor 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: FK and Indexing

    Foreign keys are not indexes. If you want an index on the column, you'll have to add one yourself.

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