![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I need to be able to create a new record in a table and return the AutoIncremented ID fields contents so I can be sure that no two people can try to use the same ID Number. Any suggestions, I have been looking for a while now, and I just do not seem to making any headway. |
#4
| |||
| |||
|
|
Check out SCOPE_IDENTITY() in the BOL. -- Tom --------------------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com "Atley" <atley_1 (AT) homtmail (DOT) com> wrote in message news:OuFKbtW3EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I need to be able to create a new record in a table and return the AutoIncremented ID fields contents so I can be sure that no two people can try to use the same ID Number. Any suggestions, I have been looking for a while now, and I just do not seem to making any headway. |
#5
| |||
| |||
|
|
Could you tell me What is BOL ? Thx -- . "Tom Moreau" <tom (AT) dont (DOT) spam.me.cips.ca> ??? news:Oo23jwW3EHA.3840 (AT) tk2msftngp13 (DOT) phx.gbl ???... Check out SCOPE_IDENTITY() in the BOL. -- Tom --------------------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com "Atley" <atley_1 (AT) homtmail (DOT) com> wrote in message news:OuFKbtW3EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I need to be able to create a new record in a table and return the AutoIncremented ID fields contents so I can be sure that no two people can try to use the same ID Number. Any suggestions, I have been looking for a while now, and I just do not seem to making any headway. |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Check out SCOPE_IDENTITY() in the BOL. -- Tom --------------------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com "Atley" <atley_1 (AT) homtmail (DOT) com> wrote in message news:OuFKbtW3EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I need to be able to create a new record in a table and return the AutoIncremented ID fields contents so I can be sure that no two people can try to use the same ID Number. Any suggestions, I have been looking for a while now, and I just do not seem to making any headway. |
#8
| |||
| |||
|
|
Check out SCOPE_IDENTITY() in the BOL. -- Tom --------------------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com "Atley" <atley_1 (AT) homtmail (DOT) com> wrote in message news:OuFKbtW3EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I need to be able to create a new record in a table and return the AutoIncremented ID fields contents so I can be sure that no two people can try to use the same ID Number. Any suggestions, I have been looking for a while now, and I just do not seem to making any headway. |
#9
| |||
| |||
|
|
Check out SCOPE_IDENTITY() in the BOL. -- Tom --------------------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com "Atley" <atley_1 (AT) homtmail (DOT) com> wrote in message news:OuFKbtW3EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I need to be able to create a new record in a table and return the AutoIncremented ID fields contents so I can be sure that no two people can try to use the same ID Number. Any suggestions, I have been looking for a while now, and I just do not seem to making any headway. |
#10
| |||
| |||
|
|
I looked at those, But I am worried because this is for an application where several people (up to 20) could be making a new record at the same time. They just seem to return the last identity entered. I also didn't see in either of the examples if it could really help me create a new record and then return the value of the ID field I specify. Has anyone had to do this before and if so, how did you do it? "Tom Moreau" <tom (AT) dont (DOT) spam.me.cips.ca> wrote in message news:Oo23jwW3EHA.3840 (AT) tk2msftngp13 (DOT) phx.gbl... Check out SCOPE_IDENTITY() in the BOL. -- Tom --------------------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com "Atley" <atley_1 (AT) homtmail (DOT) com> wrote in message news:OuFKbtW3EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I need to be able to create a new record in a table and return the AutoIncremented ID fields contents so I can be sure that no two people can try to use the same ID Number. Any suggestions, I have been looking for a while now, and I just do not seem to making any headway. |
![]() |
| Thread Tools | |
| Display Modes | |
| |