GUID Programming Software Development by izeko Can any one tell me why i would need i GUID in my project. I see it is in the properties of my project under Application/Assembly information. Do i need to make sure this is unique for every project i create. I usually use one project as my starting point for all projects and build from this as it has common code in it. Thanks Re: GUID Programming Software Development by ChrisHunter Yeah i would assume the GUID works the same way an ID field works for a database records. GUID uses Programming Web Development by sakhi kul hi to all, I want to ask about GUID. what is the main use of GUID in our database. I have seen that many developers uses GUID in user table(contains username and password) and they update GUID of that user each time when user login. In asp.net I have created GUID using System.GUID.newGUID(). Re: GUID uses Programming Web Development by dnanetwork … database.. on creating user i add a column GUID and assign default value to column using newid() … on that i will grab email address and guid.. now i will setup a link to my…site which holds the user's email address and Guid.. and send email to user.. when user … site so on page load i check if Guid and email matches correctly then allow now user… Re: GUID uses Programming Web Development by sknake SQL Server has a different type of GUID compared to what you would generate normally in C#. Take a look at this article: [url]http://sqlblogcasts.com/blogs/martinbell/archive/2009/05/25/GUID-Ordering-in-SQL-Server.aspx[/url] If you're using a GUID primary key identifiers in a heavily upserted table it may behoove you to read that article. Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) Programming Software Development by penguin22 Hi, I keep getting the error Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) when i try to make a guid. [CODE] string entryNum = Convert.toString(entryNo); Guid key = new Guid(entryNum); [/CODE] GUID Converstion Programming Software Development by xanawa Hi, I encrypted two strings and returns example "euHK5s9h30Q=" then I am trying to convert the string given to GUID Guid tokenGuid = new Guid(encryptionString); and i is giving me ***Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).*** error how can i resolve it please? Re: GUID Converstion Programming Software Development by Ketsuekiame I'm not entirely sure what the purpose of converting to GUID is trying to achieve. A GUID is a specific format. You cannot pass arbitrary data to it and "convert" it into a GUID. Why do you want to convert your encrypted string into a GUID? GUID Disk? Hardware and Software Microsoft Windows by Johnz414 …, Is there a way to partition a disk formated to GUID? I've just installed an XP on a Dell PC… found out that the 80 GB HD is formated to GUID formating. I'm hoping to avoid a total re-install…, that is if there is a way to partition a GUID formated disk? Is there a way? Thanks, John Re: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) Programming Software Development by penguin22 thanks i understand that now but is there a way to covert a string to a guid? i.e the string name = ben i would like to make a guid representing that. Re: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) Programming Software Development by jcao219 That's not the purpose of Guid, I think. Guid.NewGuid() creates a unique identifier. Re: GUID Converstion Programming Software Development by tinstaafl …(18, "-"); hexstring = hexstring.Insert(23, "-"); Guid tokenguid = new Guid(hexstring); textBox3.Text = tokenguid.ToString(); Of course this means… Re: GUID Converstion Programming Software Development by Ketsuekiame +1 for the best plausible solution, however, the OP should not be using GUID to store data. Globally Unique IDentifier...Encryption strings can and will be the same, so using a GUID is a bad idea as it won't be unique. Re: GUID Disk? Hardware and Software Microsoft Windows by gerbil … changing is the MBR... it is in a newer format [GUID]so that it can record larger partition sizes. They are… instead listed in the GPT [GUID partition table]. The MBR lies on disk outside of and… Re: GUID Converstion Programming Software Development by ddanbe You could for example use the String.PadLeft method to make your string 32 chars long, a format that the GUID constructor would accept. Re: GUID Converstion Programming Software Development by ddanbe @Ketsuekiame: Oops, forgot about hex. Athough I also don't see the need for GUID conversion, I guess it is possible to convert a charstring to a hexstring. Re: GUID Disk? Hardware and Software Microsoft Windows by Johnz414 I found that page too, but the right click on the GUID Drive doesn't offer the conversion as an option. I'm also still searching. Thanks. Re: GUID Disk? Hardware and Software Microsoft Windows by gerbil My understanding is that XP does not recognise the GUID disk format.. ie cannot read the GPT.. W7 & and vista can. So i do not see that disk mgmnt can do it. But diskpart can. Re: The woes of a GUID Partition Table Programming Computer Science by bitsltd GUID partition tables will work with any computer & it a … Re: GUID Programming Software Development by skatamatic It's a way to uniquely identify your program and its assemblies in a registry. (Rather than using the version/name/date modified etc) Re: GUID Programming Software Development by dwarvenassassin If you find you are re-using the same code over and over, might I suggest you save this to a seperate file that gets included in each project rather than building from the same project each time. Have a look into creating your own VS Templates. creating a guid Programming Web Development by coder91 Hi im trying to assign a guid in my windows application and have the following code: Guid g = Guid.NewGuid(); label2.Text = Convert.ToString(g); however this generates a different guid everytime the program is ran, just wondering if theres any way of assigning a GUID that doesn't change? Re: Auto increment vs. GUID Programming Databases by JorgeM …writes? Here's some pros and cons to GUID: Pros: * The GUID will be/should be unique within the DB,…If you are replicating your DB, some scenarios require GUID. * A GUID will not mean anything to the users. Increase security …through obscurity. Cons: * GUID is larger than INT. How will this affect indexing? *… Inserting GUID into datatable Programming Software Development by bchaney …something to do with how i'm inserting the GUID. in the code below i'm converting it …nothing Else Try mycon = GetConnect() mycon.Open() autonumber = System.Guid.NewGuid.ToString mycmd1 = mycon.CreateCommand mycmd1.CommandText = "INSERT… Re: Inserting GUID into datatable Programming Software Development by Teme64 … the situation Exit Sub End Try Try ' Generate a GUID autonumber = System.Guid.NewGuid.ToString mycmd1 = mycon.CreateCommand 'mycmd1.CommandText = "INSERT… form Me.Close()[/CODE]The problem wasn't in the GUID. The main "error point" was that duplicate execution… How to Convert GUID to byte array in a win32 application Programming Software Development by ThomsonGB ….h> using namespace std; BYTE* StringToGUID(LPOLESTR szBuf) { GUID *g = (GUID *) malloc( sizeof(GUID)); HRESULT h2 = CLSIDFromString(szBuf, g); return (BYTE*) g… Re: creating a guid Programming Web Development by djjeavons Hi A GUID (Globally Unique Identifier) by its definition will change each time you request one. If you want a persistent one then you will need to generate it once and save it somewhere. Finding Firewire GUID Community Center by linux Does anyone know how to find the firewire GUID directly from a device? Seeing as my iPod isn't being picked up by USB, if I can find the GUID straight from its terminal, I could easily fix my problem. Anyone? I tried [icode]grep -i Serial[/icode], but that doesn't work. C# & Sharepoint : Finding GUID of a VIEW Programming Software Development by SummerNight Hi, How do I programatically find the GUID for the Sharepoint List **View** given that the name of the view is known. A user has to input the view name and the program should be able to spit out its GUID. Thanks. Re: C# & Sharepoint : Finding GUID of a VIEW Programming Software Development by SummerNight ….Web; SPList list = web.Lists["your-list-name"]; Guid viewId = list.Views["your-view-name"].ID; some_random_label….Text = "The view GUID is :" + viewId.ToString("B");