Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
pgmr1998
Yak Posting Veteran
66 Posts |
Posted - 2011-02-11 : 17:21:02
|
| Is there a way to select a document in a sql table by some doc id number? What I am asking is this:Does SQL assign some sort of doc id to each doc in a table so that you can put the doc number in your select stmt and retrieve on doc id? |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2011-02-11 : 22:28:09
|
What do you mean by "document" ? Or are you referring to a record in a table ? SQL Server does not assign any ID number, you have to create a column in the table to do that. You can defined the column as an IDENTITY and an number will be auto assign when a record is inserted KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-02-12 : 03:16:23
|
| is it xml data that you're refering as a document here?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
Transact Charlie
Master Smack Fu Yak Hacker
3451 Posts |
Posted - 2011-02-12 : 13:19:36
|
| If you are asking: does sql server store some sort of unique reference to each row? It does internally but that won't help you.I think you should read up on surrogate keys.Charlie===============================================================Msg 3903, Level 16, State 1, Line 1736The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION |
 |
|
|
|
|
|