Forum Replies Created

Viewing 15 posts - 44,476 through 44,490 (of 49,552 total)

  • RE: Tricky ...VARCHAR

    Already asked in the appropriate Question of the Day thread

    http://www.sqlservercentral.com/Forums/Topic565885-1370-1.aspx

    Please don't post multiple threads with the same question. It wastes people's time, it breaks replies up and results in people...

    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 of index defragmentation in SQL Server 2000

    The last 2 may help. Depends where the slow down is coming from.

    Check your IO performance when the index defrags are running. I'd suggest the following counters:

    Physical disk:avg sec/read

    Physical disk:avg...

    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: log files

    Get more drives.

    Can you explain a bit more? What drives are filling up (and with what) and where are things configured?

    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: Format a timestamp to a proper string loses the second added

    If you print out the dynamic SQL before you exec it, what do you see?

    I tested a section of your code out

    DECLARE @Stamp varchar(25), @global_time int

    SET @global_time = 25

    set @stamp...

    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: real use of indexes

    Your query, as written, cannot use index seeks. The computation in the where clause means that the only index usage possible is a scan. Also, all or your indexes are...

    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: One 4-disk RAID5 (15k)VersusTwo 2-disk Raid1 (7.2K)

    Depends. 😉 On the stripe size, what kind of writes are done, and a bunch of other things.

    With a 4 disk RAID 5 if a write only affects one 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: One 4-disk RAID5 (15k)VersusTwo 2-disk Raid1 (7.2K)

    I would go for option 2, simply because RAID 5 has the slowest writes of any of the commonly used RAID levels

    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 DO I KNOW WHEN DIDAN INDEX LAST UPDATED

    Please don't shout (all caps)

    Unless there's some form of auditing in place, there's no way to know when a table/index was last updated.

    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: Not equal to operator

    Table schema and sample data please?

    I suspect what you need is a NOT EXISTS rather than a !=. You're looking for patients where there are no matching rows in 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: Not equal to operator

    There's not really enough information to answer the first question. Could you post the schema of the two tables and some sample data please?

    Try using replace instead of the substrings,...

    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: Advanced SQL Query

    You'd need to set up a linked server (Books online is your friend)

    Assuming you have a linked server called server2 and database2 is on that remote server, the query would...

    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: Re: Effective permissions for database user process

    Yes. It will fail with EXECUTE permission denied on < Procedure name >

    If you've granted the user the appropriate execute permissions then the insert will succeed. It's the concept...

    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: Advanced SQL Query

    sql guy (9/15/2008)


    they are on the same server and this is what i tried. i am getting a result but its gibberish!! i am just starting off sql so may...

    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: Allow domain user read access to a database

    From object explorer, expand out security (under the server), right click, choose new login. Make sure windows authentication is selected. Under login name enter the domain and user name -...

    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: Advanced SQL Query

    Can you post what you've tried please?

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