guid value

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom L

    #1

    guid value

    How can I create a guid value in vb.net? I'm creating a sql procedure, and
    I want to pass the new guid value over to SQL instead of SQL creating it.

    thx


  • Tom L

    #2
    Re: guid value

    Great, thanks - I see my problem. I was doing guid.newguid like a method,
    not a function - DUH...

    Thanks for the help programatix.

    "Programati x" <programatix@no spam.com> wrote in message
    news:OZ6FQjhSDH A.1748@TK2MSFTN GP11.phx.gbl...[color=blue]
    > It should be like this,
    >
    > Dim myGUID as Guid
    > myGUI = Guid.NewGuid()
    >
    > "Tom L" <tlanger_n05p4m _dls.net> wrote in message
    > news:I-6cnR9TFKlqWY-iU-KYuQ@dls.net...[color=green]
    > > That creates the guid field, but it doesn't populate it with anything..
    > > Here's my code..
    > >
    > > Dim blah As Guid
    > > blah.NewGuid()
    > >
    > > Results:
    > > ?blah.tostring
    > > "00000000-0000-0000-0000-000000000000"
    > >
    > > I want it to create the actual value = equivalent of doing @@NEWID in[/color][/color]
    sql.[color=blue][color=green]
    > >
    > >
    > > "Programati x" <programatix@no spam.com> wrote in message
    > > news:%23$J4TchS DHA.2144@TK2MSF TNGP11.phx.gbl. ..[color=darkred]
    > > > GuiId.NewGuiId( )
    > > >
    > > > "Tom L" <tlanger_n05p4m _dls.net> wrote in message
    > > > news:FOycnaeuM7 pSXI-iXTWJgQ@dls.net ...
    > > > > How can I create a guid value in vb.net? I'm creating a sql[/color][/color]
    > procedure,[color=green][color=darkred]
    > > > and
    > > > > I want to pass the new guid value over to SQL instead of SQL[/color][/color][/color]
    creating[color=blue][color=green]
    > > it.[color=darkred]
    > > > >
    > > > > thx
    > > > >
    > > > >
    > > >
    > > >[/color]
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • tom

      #3
      guid value

      or you can choose tools/create GUID[color=blue]
      >-----Original Message-----
      >How can I create a guid value in vb.net? I'm creating a[/color]
      sql procedure, and[color=blue]
      >I want to pass the new guid value over to SQL instead of[/color]
      SQL creating it.[color=blue]
      >
      >thx
      >
      >
      >.
      >[/color]

      Comment

      Working...