all groups > sql server programming > june 2005 >
You're in the

sql server programming

group:

Using uniqueidentifier as URL parameter


Re: Using uniqueidentifier as URL parameter David Portas
6/11/2005 12:02:25 PM
sql server programming: Not much to comment on, except that an artificial key should not be the only
key of a table. So you should probably make Title unique as well.

--
David Portas
SQL Server MVP
--

Using uniqueidentifier as URL parameter Arjen
6/11/2005 12:10:36 PM
Hi,

Do you see the following sample as "smart".
----------------------------------------------------------
| ID (int32) | Code (uniqueidentifier) | Title (nvarchar) | ... |
----------------------------------------------------------

ID is the key. I use this key also as foreignkey in other tables.
I want to use Code as an id for the URL.

What do you think about this?

Thanks!

Re: Using uniqueidentifier as URL parameter Arjen
6/11/2005 1:12:33 PM
Okay, this was just a sample for a news table, where title is the title of
the newsitem (It can be unique...).

Thanks!
Arjen



"David Portas" <REMOVE_BEFORE_REPLYING_dportas@acm.org> schreef in bericht
news:7a-dnT0US4peWTffRVn-hg@giganews.com...
[quoted text, click to view]

AddThis Social Bookmark Button