Forum Replies Created

Viewing 15 posts - 35,431 through 35,445 (of 49,552 total)

  • RE: dynamic sql inside a function

    By workaround do you mean any way to cause side effects from within a finction? If so, no. It is a hard-and-fast requirement. You cannot make any changes to 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: How to reduce a large db log file size

    setlan1983 (12/8/2009)


    Space in log is reused means the log size will no longer grow?

    Example current log size is 10GB, if perform backup log regular, means the size will keep in...

    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: dynamic sql inside a function

    Functions may not have side effects. They may not change the state of the database at all. That means no creating or dropping objects. No inserts, updates or deletes. You're...

    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: Advice on Shrinkfile/shrinkdb

    Joie Andrew (12/7/2009)


    Indexes will not have to be rebuilt.

    They will. Shrink, with the default options can completely reverse an index, ie increase fragmentation up to almost 100%

    See - http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/

    Shrinkfile...

    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: Logins backup

    Logins are in the master database. You should be backing that (and msdb and model) up on a regular basis.

    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: :: symbols in SQL

    Rod Harten (7/7/2008)


    What is the role of the :: symbols in SQL? I usually see them prior to function calls but they optional, at least in that context. ...

    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 is taking to long

    MTY-1082557 (12/7/2009)


    should I stop it?

    It has 3:23hours already

    No. Let it run to completion. Stopping it won't cause any problems, but you also won't get any results, essentially wasting the hours...

    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 reduce a large db log file size

    setlan1983 (12/7/2009)


    What's is the different WITH NO_LOG & WITH TRUNCATE_ONLY?

    Nothing. From Books Online

    NO_LOG | TRUNCATE_ONLY

    Removes the inactive part of the log without making a backup copy of it and truncates...

    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: Where can we use SUB QUERY and JOIN?

    Britto (12/7/2009)


    Which technique is best to use when performing operations with huge table size and vice versa?

    It depends.

    There's no one way that's always right, no one way that's always...

    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 reduce a large db log file size

    setlan1983 (12/7/2009)


    May I know what is the proper way to reduce the log file size?

    The proper way is to schedule regular log backups so that the space 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: Are the posted questions getting worse?

    CirquedeSQLeil (12/7/2009)


    GilaMonster (12/7/2009)


    Grant Fritchey (12/7/2009)


    Nah, I'm just peeved because of... well, read for yourself.

    Oh man. Bob, I LOVE your reply to that thread. What I was thinking, but too polite...

    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: DB shrink and backup error in sql2008

    Where are you running it from? Management studio?

    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: Future Date

    DATEADD(dd,60,getdate())

    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: Today's Random Word!

    bryanc 761 (12/7/2009)


    frigid

    Midsummer

    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: Today's Random Word!

    GSquared (12/7/2009)


    GilaMonster (12/7/2009)


    Birthday

    If today is yours, Happy Birthday.

    Yup.

    I'm polite enough to not ask how old you are, and rude enough to guess 20-something.

    Well, it's listed on my profile, so not...

    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 - 35,431 through 35,445 (of 49,552 total)