Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why its important to read MSDN documents carefully....

Why its important to read MSDN documents carefully....

Scheduled Pinned Locked Moved The Lounge
databasecom
15 Posts 14 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Andrew Rissing

    I was reading through this article[^] and decided to lookup NEWSEQUENTIALID in MSDN to read about it. I tell you, Microsoft makes a pretty bold statement: "Creates a GUID that is greater than any GUID previously generated by this function on a specified computer since Windows was started." And then, for those who are concerned about identity theft or an invasion of privacy, Microsoft says: "If privacy is a concern, do not use this function."

    M Offline
    M Offline
    Member 96
    wrote on last edited by
    #4

    Actually that all makes perfect sense: It's useful because sequentially greater GUID's are extremely useful for performance in SQL server since you can create a clustered index by them for huge performance gains if you use Guid's as your primary key for your tables. They are a security risk only in that you can tell something about the underlying data such as guessing what the next ID might be if you know a given ID which I wouldn't consider a particularly huge risk but there is one depending on how secure you write the rest of the code.


    "Creating your own blog is about as easy as creating your own urine, and you're about as likely to find someone else interested in it." -- Lore Sjöberg

    S A T 3 Replies Last reply
    0
    • M Member 96

      Actually that all makes perfect sense: It's useful because sequentially greater GUID's are extremely useful for performance in SQL server since you can create a clustered index by them for huge performance gains if you use Guid's as your primary key for your tables. They are a security risk only in that you can tell something about the underlying data such as guessing what the next ID might be if you know a given ID which I wouldn't consider a particularly huge risk but there is one depending on how secure you write the rest of the code.


      "Creating your own blog is about as easy as creating your own urine, and you're about as likely to find someone else interested in it." -- Lore Sjöberg

      S Offline
      S Offline
      Storm blade
      wrote on last edited by
      #5

      There is also the issue of the GUID containing the MAC Address of the PC generating it.

      L R 2 Replies Last reply
      0
      • S Storm blade

        There is also the issue of the GUID containing the MAC Address of the PC generating it.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #6

        But: "V4 GUIDs use the later algorithm, which is a pseudo-random number." And, you could change your MAC address.

        1 Reply Last reply
        0
        • S Storm blade

          There is also the issue of the GUID containing the MAC Address of the PC generating it.

          R Offline
          R Offline
          Rama Krishna Vavilala
          wrote on last edited by
          #7

          That is ancient. Since Windows 2000 Guids are not based on Mac Address.

          Click here to get a Google Wave Invite.

          1 Reply Last reply
          0
          • M Member 96

            Actually that all makes perfect sense: It's useful because sequentially greater GUID's are extremely useful for performance in SQL server since you can create a clustered index by them for huge performance gains if you use Guid's as your primary key for your tables. They are a security risk only in that you can tell something about the underlying data such as guessing what the next ID might be if you know a given ID which I wouldn't consider a particularly huge risk but there is one depending on how secure you write the rest of the code.


            "Creating your own blog is about as easy as creating your own urine, and you're about as likely to find someone else interested in it." -- Lore Sjöberg

            A Offline
            A Offline
            Andrew Rissing
            wrote on last edited by
            #8

            I guess I'm the only one who read it in a literal sense and laughed... :doh:

            T A 2 Replies Last reply
            0
            • A Andrew Rissing

              I guess I'm the only one who read it in a literal sense and laughed... :doh:

              T Offline
              T Offline
              Tom Delany
              wrote on last edited by
              #9

              No, I laughed too.... "Creates a GUID that is greater than any GUID previously generated by this function..." I almost expect to see Billy Mays (R.I.P.) pitching it... :) "The greatest GUID ever!"

              WE ARE DYSLEXIC OF BORG. Refutance is systile. Your a$$ will be laminated. There are 10 kinds of people in the world: People who know binary and people who don't.

              1 Reply Last reply
              0
              • A Andrew Rissing

                I was reading through this article[^] and decided to lookup NEWSEQUENTIALID in MSDN to read about it. I tell you, Microsoft makes a pretty bold statement: "Creates a GUID that is greater than any GUID previously generated by this function on a specified computer since Windows was started." And then, for those who are concerned about identity theft or an invasion of privacy, Microsoft says: "If privacy is a concern, do not use this function."

                P Offline
                P Offline
                peterchen
                wrote on last edited by
                #10

                The algorithm for sequential ID's has some advantages in some scenarios (as another reply descibes). Furthermore, it does not hash and thus the MAC address of the machine generating the GUID is clearly visible. IIRC a high profile worm author / spammer / scammer was actually identified by a GUID automatically embedded in some (word?) document. So yeah, the privacy concern is real :)

                Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel]
                | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server

                1 Reply Last reply
                0
                • A Andrew Rissing

                  I guess I'm the only one who read it in a literal sense and laughed... :doh:

                  A Offline
                  A Offline
                  AspDotNetDev
                  wrote on last edited by
                  #11

                  "Creates a GUID that is greater than any GUID previously generated by this function on a specified computer since Windows was started" Yeah, guess it creates GUID's that are greater than any GUID created since the 80's or 90's (whenever "Windows was started"). :laugh:

                  Visual Studio is an excellent GUIIDE.

                  E 1 Reply Last reply
                  0
                  • A Andrew Rissing

                    I was reading through this article[^] and decided to lookup NEWSEQUENTIALID in MSDN to read about it. I tell you, Microsoft makes a pretty bold statement: "Creates a GUID that is greater than any GUID previously generated by this function on a specified computer since Windows was started." And then, for those who are concerned about identity theft or an invasion of privacy, Microsoft says: "If privacy is a concern, do not use this function."

                    R Offline
                    R Offline
                    Rajesh R Subramanian
                    wrote on last edited by
                    #12

                    I've read some plain wrong statements, and seen some worst possible code samples. But unfortunate as it could be, that's all the option we have.

                    “Follow your bliss.” – Joseph Campbell

                    1 Reply Last reply
                    0
                    • E Ennis Ray Lynch Jr

                      I stopped relying on MSDN since they started letting boneheads author the content.

                      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

                      T Offline
                      T Offline
                      tho s
                      wrote on last edited by
                      #13

                      Hehehe. And in addition to that; it's pretty much impossible finding anything on MSDN without using Google. And even then most links you find in forums discussing what you googled for are dead since the content has moved for the umpfteenth time that year. And the MSDN teams response? Change the color of the graphics in MSDN from red to blue... :~

                      If I cannot find a way I will make one

                      1 Reply Last reply
                      0
                      • M Member 96

                        Actually that all makes perfect sense: It's useful because sequentially greater GUID's are extremely useful for performance in SQL server since you can create a clustered index by them for huge performance gains if you use Guid's as your primary key for your tables. They are a security risk only in that you can tell something about the underlying data such as guessing what the next ID might be if you know a given ID which I wouldn't consider a particularly huge risk but there is one depending on how secure you write the rest of the code.


                        "Creating your own blog is about as easy as creating your own urine, and you're about as likely to find someone else interested in it." -- Lore Sjöberg

                        T Offline
                        T Offline
                        Tomz_KV
                        wrote on last edited by
                        #14

                        I agree.

                        TOMZ_KV

                        1 Reply Last reply
                        0
                        • A AspDotNetDev

                          "Creates a GUID that is greater than any GUID previously generated by this function on a specified computer since Windows was started" Yeah, guess it creates GUID's that are greater than any GUID created since the 80's or 90's (whenever "Windows was started"). :laugh:

                          Visual Studio is an excellent GUIIDE.

                          E Offline
                          E Offline
                          ely_bob
                          wrote on last edited by
                          #15

                          So what your really trying to say is that if I enclosed it in a while loop and left it run I would always have the greatest GUID in existance? :omg: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh:

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups