Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 Databases by Thearon Willis; ISBN: 9780764588945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2006, 10:34 PM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default GUID

In the book, which I purchased and have enjoyed so far, I am wondering why you need to have a guid and is there a way to program without this? Is this something that is unique to SQL Server 2005 or Express? I only use ACCESS at the the moment. Thanks.

 
Old October 21st, 2006, 04:56 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Using a GUID instead of a sequential number helps to prepare your database in several ways for future expansion. First, using a sequential number you need to be concerned with two users inserting a record simultaneously and causing a conflict because the users are using the same number. You’ll have to code to handle this. Next, if you ever upgrade your database from Access to SQL Server and then need to replicate your database you’ll need to use a GUID to uniquely identify each row.

Access does support GUIDs as outlined in Chapter 1 but you are free to use a sequential number instead.

Thearon





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ask IIS for a GUID? Raconteur ASP.NET 2.0 Professional 2 April 25th, 2007 03:25 PM
guid generator in xslt? jkmyoung XSLT 1 November 13th, 2004 06:34 AM
generating two different GUID shaileshmark General .NET 5 August 1st, 2004 01:25 PM
Creating a GUID xgbnow Visual C++ 1 May 6th, 2004 11:10 AM
Dynamic GUID? Klavs Pedersen Visual C++ 1 October 15th, 2003 12:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.