Click here to Skip to main content
15,923,051 members
Home / Discussions / Database
   

Database

 
GeneralPassword! [modified] Pin
kibromg18-Feb-08 1:29
kibromg18-Feb-08 1:29 
GeneralRe: Password! Pin
Michael Potter18-Feb-08 6:10
Michael Potter18-Feb-08 6:10 
QuestionDynamic Parameters for report designed in SQL Server Reporting Services 2005 Pin
Senthil_M17-Feb-08 21:40
Senthil_M17-Feb-08 21:40 
GeneralRe: Dynamic Parameters for report designed in SQL Server Reporting Services 2005 Pin
r aa j18-Feb-08 2:18
r aa j18-Feb-08 2:18 
Questionsecurity in sql server 2000 database [modified] Pin
Sonia Gupta17-Feb-08 19:15
Sonia Gupta17-Feb-08 19:15 
GeneralRe: security in sql server 2000 database Pin
N a v a n e e t h17-Feb-08 19:42
N a v a n e e t h17-Feb-08 19:42 
GeneralRe: security in sql server 2000 database Pin
Sonia Gupta17-Feb-08 19:53
Sonia Gupta17-Feb-08 19:53 
GeneralRe: security in sql server 2000 database Pin
N a v a n e e t h17-Feb-08 21:10
N a v a n e e t h17-Feb-08 21:10 
GeneralPrimark key Pin
laleh.rajabi17-Feb-08 16:23
laleh.rajabi17-Feb-08 16:23 
GeneralRe: Primark key Pin
Christian Graus17-Feb-08 18:44
protectorChristian Graus17-Feb-08 18:44 
AnswerRe: Primark key Pin
SimulationofSai18-Feb-08 0:12
SimulationofSai18-Feb-08 0:12 
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 

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.