Click here to Skip to main content
15,896,606 members
Home / Discussions / Database
   

Database

 
GeneralRemove identity property Pin
Xmen Real 17-Feb-08 13:53
professional Xmen Real 17-Feb-08 13:53 
GeneralRe: Remove identity property Pin
r aa j17-Feb-08 17:59
r aa j17-Feb-08 17:59 
GeneralRe: Remove identity property Pin
Xmen Real 17-Feb-08 18:59
professional Xmen Real 17-Feb-08 18:59 
GeneralRe: Remove identity property Pin
Mike Dimmick18-Feb-08 7:12
Mike Dimmick18-Feb-08 7:12 
GeneralRe: Remove identity property Pin
Xmen Real 18-Feb-08 14:38
professional Xmen Real 18-Feb-08 14:38 
GeneralThe right way to maintain integrity across databases Pin
martin_hughes17-Feb-08 9:56
martin_hughes17-Feb-08 9:56 
GeneralRe: The right way to maintain integrity across databases Pin
SimulationofSai17-Feb-08 22:20
SimulationofSai17-Feb-08 22:20 
QuestionHow to lock a table? Pin
Ian Uy16-Feb-08 21:27
Ian Uy16-Feb-08 21:27 
Good Day,

I'm fairly new to ADO.NET and MS SQL Server 2005...

I have 2 tables, first is the List Table, where a primary key called "Number" is set to IDENTITY.

The other is the Content Table that contains the "Number" from List Table and some other columns.

The environment is MULTI-USER.

This is what I want to accomplish

1. LOCK BOTH TABLE FROM WRITING
2. Add Record to List, this will increment the IDENTITY
3. Get the Identity from the List, Add record to content table using the Identity as the primary key
4. FREE BOTH TABLE FROM WRITING

I need to lock it because the environment is Multiuser.

In short, I just want to learn how to LOCK and UNLOCK a table.

Thanks! Smile | :)
AnswerRe: How to lock a table? Pin
Colin Angus Mackay17-Feb-08 0:33
Colin Angus Mackay17-Feb-08 0:33 
GeneralRe: How to lock a table? Pin
Ian Uy17-Feb-08 0:38
Ian Uy17-Feb-08 0:38 
GeneralRe: How to lock a table? Pin
Colin Angus Mackay17-Feb-08 0:46
Colin Angus Mackay17-Feb-08 0:46 
GeneralRe: How to lock a table? Pin
Ian Uy17-Feb-08 1:29
Ian Uy17-Feb-08 1:29 
GeneralRe: How to lock a table? Pin
Colin Angus Mackay17-Feb-08 1:33
Colin Angus Mackay17-Feb-08 1:33 
GeneralRe: How to lock a table? Pin
Ian Uy17-Feb-08 2:33
Ian Uy17-Feb-08 2:33 
QuestionGetting Stored procedures from database using ADOX Pin
Green Fuze16-Feb-08 11:58
Green Fuze16-Feb-08 11:58 
QuestionIndex and join issue Pin
Ajeet mittal16-Feb-08 5:12
Ajeet mittal16-Feb-08 5:12 
GeneralRe: Index and join issue Pin
pmarfleet16-Feb-08 9:02
pmarfleet16-Feb-08 9:02 
QuestionFireBird Database with .Net 2.0 Pin
avvaru.murali16-Feb-08 2:56
avvaru.murali16-Feb-08 2:56 
GeneralRe: FireBird Database with .Net 2.0 Pin
pmarfleet16-Feb-08 8:55
pmarfleet16-Feb-08 8:55 
Questionhow to show row wise record column wise Pin
mohd imran abdul aziz16-Feb-08 1:26
mohd imran abdul aziz16-Feb-08 1:26 
AnswerRe: how to show row wise record column wise Pin
pmarfleet16-Feb-08 9:06
pmarfleet16-Feb-08 9:06 
Questiontrigger and procedure Pin
RajeevKumarSharma15-Feb-08 23:37
RajeevKumarSharma15-Feb-08 23:37 
GeneralRe: trigger and procedure Pin
Ashfield16-Feb-08 3:42
Ashfield16-Feb-08 3:42 
QuestionTRIGGER PROBLEM Pin
RajeevKumarSharma15-Feb-08 23:14
RajeevKumarSharma15-Feb-08 23:14 
GeneralRe: TRIGGER PROBLEM Pin
Ashfield16-Feb-08 3:40
Ashfield16-Feb-08 3:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.