|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unique ID, without an ID column
Hi,
How can I assign or retrieve a unique ID from a msSQL table where there isn't a unique column. Is there a hidden 'raw id' i can retrieve from msSQL for each record? I'm not allowed to change the current database at all, but the developers who created it managed to use it without Unique IDs.... which doesn't help me coming from a mySQL background where UID's are kind of mandatory. Thanks
__________________
Damo |
|
#2
|
||||
|
||||
|
Quote:
No. You need a primary key or unique constraint. Tell that to the developers. Quote:
There is no difference between Mysql and Mssql with regard to this. |
|
#3
|
||||
|
||||
|
Quote:
I've gotten a little further, I've discovered how do find out the primary key. (in this case there are 3) Quote:
True, the SQL is the same. I'll rephrase. I'm used to doing things in a certain way with mySQL, where as in this case someone else has designed the database without my beloved unique ID's. ![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Unique ID, without an ID column |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|