Forum Replies Created

Viewing 15 posts - 43,336 through 43,350 (of 49,552 total)

  • RE: Keeping logs under control on large database copy

    I wouldn't bother creating a backup device for a once-off backup, and if you run that more than once, you may get an error saying the backup device already exists.

    Just...

    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: The Difference between Using Assignment & Aliases

    No. Literal text hasn't been changed and your first query would throw an error saying no such column as SomeText

    SELECT tbl.Column AS [MyColumn], 'SomeText' AS [LiteralText]

    FROM MyTable AS tbl

    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: Keeping logs under control on large database copy

    Once you've set it back to full, you'll have to take a full database backup or your backup software, which I assume does log backups, will fail.

    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's...do they improve query performance

    Maybe. They're not indexes and as such they won't directly improve performance. They do give the optimiser more information about the data hence allowing it to produce better execution plans

    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: Replicated Database and transaction log size

    Fernando (11/4/2008)


    Since I started the log job, the size has not increased much. I just want to regain the space as the transaction log backup as well asn the nightly...

    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: Differential backup issue

    Mani (11/4/2008)


    This differential backup cannot be restored because the database has not been restored to the correct earlier state. (Microsoft.SqlServer.Smo)

    That's saying that the 6am diff is not based off 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: Keeping logs under control on large database copy

    You can't disable logging. It's not an optional component of the database.

    What you can do is set the database you're doing the transfer into simple recovery. Since it's not 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: Replicated Database and transaction log size

    You can, but unless you figure out why the log is growing, it's just going to get back to that size in time.

    What recovery model?

    If full or bulk-logged, how often...

    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: Managing Transaction Logs

    Actually, I've just finished writing a short 'chapter' for a book. 😀

    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 is in suspended mode

    balbirsinghsodhi (11/4/2008)


    SQL Guru.. I know this query is not good for optimizer so I did modify and used in a following manner but still going in a suspended mode 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: query runs much faster with windows authentication

    KATHLEEN Y ZHANG (11/4/2008)


    When I run it using my windows account, I am system admin, the sql account is not a sysadmin, but when the developer ran it using her...

    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 runs much faster with windows authentication

    Are you seeing any particular wait type? (check sys.dm_exec_requests)

    Is one of the logins sysadmin and the other not?

    Do they both have the same default schema?

    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 optimize my store procedure?

    Which one are you running? What indexes are there on the Emp 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: How to optimize my store procedure?

    I'd suggest move it to a larger drive. If it's filling up with a simple update and a temp table, then the drive it's on is probably too small.

    How...

    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 optimize my store procedure?

    Is tempDB restricted in size? Is it on a drive that's full?

    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 - 43,336 through 43,350 (of 49,552 total)