Forum Replies Created

Viewing 15 posts - 2,116 through 2,130 (of 3,011 total)

  • RE: A Dearth of Comments

    There really is no self-documenting code. Looking at the code only tells you what it actually does, not what it was meant to do. At the very least,...

  • RE: How to calculate the Bi-weekly in SQL

    This thread is amazing; there hasn’t been an on-topic post since Sunday but it just keeps on going. :exclamationmark:

  • RE: Transaction log growth with no db activity

    A better backup strategy would be to eliminate the differential backups and run transaction log backups every 15 minutes 24x7. This will prevent your transaction log file from growing...

  • RE: Common Mistakes in T-SQL

    How about stupid date queries like this:

    where Convert(varchar, CreationDate, 101) between Convert(datetime,@FromDate, 101) And Convert(datetime, @ToDate, 101)

    which can amount to something like this:

    where '12/30/2008' between '12/25/2008' And '01/05/2009'

  • RE: Ok, its their first day on the job.

    How about having some non-work related books so your new co-workers don’t think you’re a total dork?

    Leave out a copy of “The Prince” by Niccolo Machiavelli so they’ll think you’re...

  • RE: SQL Server taking all the memory 24/7

    What you describe is completely normal behavior for SQL Server. When SQL Server allocates memory, it does not give it back unless there is pressure from the OS.

    Why are...

  • RE: Database Snapshots

    RBarryYoung (12/30/2008)


    From the 2008 BOL:

    The Scalable Shared Database feature enables you to scale out a read-only database built exclusively for reporting (a reporting database). The reporting database must reside on...

  • RE: Database Snapshots

    sheppc1214 (12/30/2008)


    Can someone provide information about "a shared scaleable database"?

    Sounds like marketing BS.

    A database has to be "shared", or it wouldn't really be much of a database.

    As for "scaleable", is...

  • RE: Generating random 6 digit numbers

    Jeff Moden (12/29/2008)


    The cast to VarBinary takes more time, Michael. That's the way I used to do it before Peter Larson and Matt Miller showed me this other way.

    I...

  • RE: Generating random 6 digit numbers

    Here is one more method to generate a random number in the range of 100000 to 999999.

    It uses the right 7 bytes of the newid() to create a bigint value....

  • RE: Primary key generation in Sql server database

    That script does not generate a primary key value.

    All is does is create a primary key on an existing table.

  • RE: RAID 1 vs. RAID 10

    Someone mentioned that you might gain some performance because the OS is accessing two files in parallel, instead of one. However, there is nothing that prevents you from having...

  • RE: Is it possible to call stored procedures inside a function

    Only extended stored procedures can be called inside a function.

  • RE: Backup Compression in sql server 2000

    There are a number of commercial utilities that let you produce compressed SQL Server backups:

    SQL LiteSpeed, Redgate Backup, Idera has one, and there are several others.

    Another option might be to...

  • RE: Are the posted questions getting worse?

    GilaMonster (12/24/2008)


    Michael Earl (12/24/2008)


    At least they were able to open Management Studio and run the query.

    Well there was this one guy (who claimed to be a performance tuning guru and...

Viewing 15 posts - 2,116 through 2,130 (of 3,011 total)