Forum Replies Created

Viewing 15 posts - 30,061 through 30,075 (of 49,552 total)

  • RE: query by todays date +7

    If appdate_dte is a datetime column, the date format is irrelevant. You'll be comparing a date with a date, no formatting applies.

    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: user permissions on db objects

    The system views that you need are sys.database_principals and sys.database_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: Regarding backup of database from local system to public ip system

    Generally it's not that good an idea to back up over the network. It's far slower than disks and a network glitch will cause the backup to 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: My Shrink Method and Need Suggestions from Experts

    Generally the only time you want to shrink a log to 0 is if you're trying to clean up the VLFs. Shrink to 0 then immediately grow it to 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: clearing DMV stats. SQLPERF does not work.

    winston Smith (10/11/2010)


    I know i can look at the problem from different angle, and use it as a snapshot view of the indexes on that particular day, which allows accurate...

    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: My Shrink Method and Need Suggestions from Experts

    Gianluca Sartori (10/11/2010)


    If you still want to shrink it, you can run DBCC SHRINKFILE('yourLDFfileNameGoesHere', 0). This will shrink the LDF file at its minimum possible size.

    Generally doing this is 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: clearing DMV stats. SQLPERF does not work.

    Take the database offline, bring it back online. It'll wipe those DMVs and a whole lot more (including data cache and procedure cache). Not recommended on a busy production server.

    Why...

    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: My Shrink Method and Need Suggestions from Experts

    You're treating the symptoms, not the cause.

    Don't focus on shrinking the log, focus on finding out why it's growing and resolving whatever that is. Start by checking the size 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: Regarding backup of database from local system to public ip system

    Backup to a local drive, once completed copy the file whereever you want 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: My Shrink Method and Need Suggestions from Experts

    Ow, ow, ow. Why on earth are you doing this to your database?

    Setting to simple recovery breaks the log chain. You will not be able to take a log backup...

    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: Database recovery scenario

    Depends.

    if SQL is still running and the DB is still listed as a database on that server and the log file is undamaged you can take a tail log backup....

    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: Failed Virtual Allocate Bytes: FAIL_VIRTUAL_RESERVE 524288

    p.p.s. The value listed in Failed Virtual Allocate Bytes: FAIL_VIRTUAL_RESERVE is in bytes. So that's 512 kB that it needs to allocate. Far cry from 500 GB.

    This may be worth...

    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 the indexed view will be stored?

    An indexed view is materialised and stored as if it were a 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: Failed Virtual Allocate Bytes: FAIL_VIRTUAL_RESERVE 524288

    Duplicate post. No replies to this thread please. Direct replies to:http://www.sqlservercentral.com/Forums/Topic1001923-391-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: Failed Virtual Allocate Bytes: FAIL_VIRTUAL_RESERVE 524288

    Oh my, that is a seriously bad idea.

    -g defines the mem-to-leave in MB, the portion of memory that SQL can use OUTSIDE the buffer pool. You're asking for the mem-to-leave...

    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 - 30,061 through 30,075 (of 49,552 total)