Forum Replies Created

Viewing 15 posts - 2,431 through 2,445 (of 8,416 total)

  • RE: Are There That Many GUIDs?

    Jeff Moden (10/26/2010)


    Haven't had the pleasure of working with sequential GUID's in 2k8, yet. You're correct... it's plain to see that they're not type 4's but are you sure...

  • RE: Are There That Many GUIDs?

    Jeff Moden (10/26/2010)


    Now aday's, MS uses a type 4 GUID which isn't much more than a random number on steroids.

    Not for NEWSEQUENTIALID - that uses version 1. I mentioned...

  • RE: Are There That Many GUIDs?

    Craig-315134 (10/26/2010)


    It would seem there are now more posts on the subject of GUIDS than there are GUIDS. 😀

    :laugh: Yes, this is always a hotly-debated topic. I'm not really...

  • RE: Are There That Many GUIDs?

    GSquared (10/26/2010)


    This works, but does have the disadvantage of things like accidentally re-assigning an existing register ID. Of course, either can suffer from someone doing something like copying a...

  • RE: Are There That Many GUIDs?

    Eric Russell 13013 (10/26/2010)


    Two instances of SQL Server on the same machine would share the same network card, and if they are running the same database application, then it seems...

  • RE: Are There That Many GUIDs?

    Jeff Moden (10/25/2010)


    Maybe in 2k8+. Not everyone has that.

    I was thinking more of backup compression than compression inside the database. For that, we have tools like LiteSpeed, HyperBac,...

  • RE: Are There That Many GUIDs?

    Jeff Moden (10/25/2010)


    And considering disk storage for the sake of backup time and recovery time isn't something to be horrified by. 😉

    We should probably also consider that large databases would...

  • RE: Are There That Many GUIDs?

    On the subject of storage size:

    SQL Server stores data on pages with a fixed size of 8192 bytes. After 96 bytes are reserved for the page header, 8096 bytes...

  • RE: Are There That Many GUIDs?

    Eric Russell 13013 (10/25/2010)


    ...sequential GUIDs created using NEWSEQUENTIALID() can potentially be duplicated across multiple database instances.

    NEWSEQUENTIALID calls the Windows API function UuidCreateSequential, which uses version 1 of the GUID algorithm....

  • RE: Are There That Many GUIDs?

    Eric Russell 13013 (10/18/2010)


    In Oracle there is an object called a SEQUENCE, which is used in situations where we would typically use an identity in SQL Server. The difference is...

  • RE: Sequence-numbering groups

    Jeff Moden (10/24/2010)


    That's what I thought. My recommendation would be to avoid global temp tables because (as you know) they're visible and usable by anyone. The big problem...

  • RE: Sequence-numbering groups

    ChrisM@home (10/24/2010)


    Thing is, it's so darned easy to get the correct results out of a rCTE. It's only when you want it to run quickly that you have to resort...

  • RE: Sequence-numbering groups

    Jeff Moden (10/23/2010)


    Do the source (##temp) and destination (##Results) tables need to be global tables in order for the solution that you posted to work?

    Hi Jeff,

    The most accurate answer is...

  • RE: Sequence-numbering groups

    Forgot the attach the C# source code (the meat of the thing is in the parallelWorker class, at the bottom):

    using System;

    using System.Collections;

    using System.Collections.Generic;

    using System.Data.SqlClient;

    using System.Data.SqlTypes;

    using AdamMachanic.QueryTools;

    using Microsoft.SqlServer.Server;

    public partial class UserDefinedFunctions

    {

    ...

  • RE: Sequence-numbering groups

    Chris Morris-439714 (10/22/2010)


    400,000 rows in 15 seconds...

    This problem isn't ideal for a SQLCLR solution because it produces the same number of rows it consumes, and there is very little calculation...

Viewing 15 posts - 2,431 through 2,445 (of 8,416 total)