Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NEWID for a uniqie record ID?
Message
De
26/04/2002 16:45:27
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Divers
Thread ID:
00649689
Message ID:
00649799
Vues:
26
If you capture (and compare on future hits) their username and IP address, you could probably come up with enough logic to make sure they are who you think and they can only see their own records.

This would mean some validation on each hit, but your key values could [potentially] remain simple.

Guy


>The following is a requirement that I am sure many of you have had a need for and I would be interested to know how you have solved it:
>
>We need to provide our clients a URL to an HTML report module. The module requires a unique Job ID (for example, http://domain.com/r.asp?JOBID=xxx). Although the table's primary key would be perfect for this situation, someone can substitute this number with another and retrieve another client's reports.
>
>In a search for a non-guessable primary key, I considered using a uniqueidentifier field. The one disadvantage of that option is that the URL will be very long. Although the initial table has its own primary key, the Job will be located by searching for the uniqueidentifier provided.
>
>My questions are:
>1. Is that a major load to the DB (because of the lenght of the field)?
>2. Has anyone else used a different approach?
>
>PS: there are too many clients to create logons for each one every time a new order is placed.
>
>Thank you,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform