473,320 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
Jul 19 '05 #1
2 3954
Great, thanks - I see my problem. I was doing guid.newguid like a method,
not a function - DUH...

Thanks for the help programatix.

"Programatix" <pr*********@nospam.com> wrote in message
news:OZ**************@TK2MSFTNGP11.phx.gbl...
It should be like this,

Dim myGUID as Guid
myGUI = Guid.NewGuid()

"Tom L" <tlanger_n05p4m_dls.net> wrote in message
news:I-********************@dls.net...
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 sql.


"Programatix" <pr*********@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
GuiId.NewGuiId()

"Tom L" <tlanger_n05p4m_dls.net> wrote in message
news:FO********************@dls.net...
> 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
>
>



Jul 19 '05 #2
tom
or you can choose tools/create GUID
-----Original Message-----
How can I create a guid value in vb.net? I'm creating a sql procedure, andI want to pass the new guid value over to SQL instead of SQL creating it.
thx
.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: BigDadyWeaver | last post by:
I am using the following code in asp to define a unique and unpredictable record ID in Access. <% 'GENERATE UNIQUE ID Function genguid() Dim Guid guid =...
9
by: Rene | last post by:
I am using the Guid.Empty value ("00000000-0000-0000-0000-000000000000") to represent a special meaning. The problem is that I don't know if there is a chance that a command like...
7
by: ESPNSTI | last post by:
Hi, I'd like to create a Guid constant and the following doesn't work (Cannot implicitly convert type 'string' to 'System.Guid') : public const Guid MyGuid =...
1
by: Scott M. Lyon | last post by:
I've got a stored procedure that takes a few parameters as input parameters, and one output parameter (a uniqueidentifier). After the stored procedure call, I need to return that output parameter...
1
by: Scott M. Lyon | last post by:
I've got a stored procedure that takes a few parameters as input parameters, and one output parameter (a uniqueidentifier). After the stored procedure call, I need to return that output parameter...
11
by: Tarren | last post by:
Hi: I need to get the unique GUID for a file, so I am using API calls through System.InteropServices I am using BY_HANDLE_FILE_INFORMATION and
5
by: Michael Primeaux | last post by:
I have a simple .NET 2.0 web service created with VS.NET 2005 with a single web method with the following signature: void HelloWorld(Guid parameter1); When calling this method I receive the...
2
by: Troll | last post by:
Windows XP Pro VS 2005 & C# (I'm fairly new to C# but have doing VB.Net going on 2yrs and VB6 for 5yrs.) I'm using C# to build a custom RSS generator. I'm having trouble building the guid...
1
by: Jeff | last post by:
ASP.NET 2.0 This problem occur using the basic version of SQL Server 2005 which get installed when installing Visual Studio 2005! I have inserted a record in the Test table. But when I try to...
1
by: Igor | last post by:
Hi I have a drop down list on my page that lists some items returned from a database. Each item has its GUID (or uniqueidentifier). I have to (in code behind of the page) read this GUID, to hand...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.