Click here to Skip to main content
16,005,206 members
Home / Discussions / Database
   

Database

 
GeneralRe: HELP!!! why it's so hard to insert a row to Database by ADO.NET? Pin
Tom Archer25-Aug-03 15:42
Tom Archer25-Aug-03 15:42 
Generalhelp with common ASP/SQL speed issues Pin
kaht19-Aug-03 7:20
kaht19-Aug-03 7:20 
GeneralRe: help with common ASP/SQL speed issues Pin
Jason McBurney21-Aug-03 4:57
Jason McBurney21-Aug-03 4:57 
GeneralRe: help with common ASP/SQL speed issues Pin
Mike Dimmick22-Aug-03 5:04
Mike Dimmick22-Aug-03 5:04 
GeneralRe: help with common ASP/SQL speed issues Pin
kaht25-Aug-03 3:03
kaht25-Aug-03 3:03 
GeneralJet OLEDB:Format Pin
Anthony988719-Aug-03 5:52
Anthony988719-Aug-03 5:52 
QuestionHow to make smaller ACCESS initial file ? Pin
vgrigor19-Aug-03 4:15
vgrigor19-Aug-03 4:15 
GeneralTransactions with Access Pin
Jerome Conus19-Aug-03 2:43
Jerome Conus19-Aug-03 2:43 
Hi !

I'm using an Access 2000 database through ODBC, using only standard SQL requests. In my table, I have an autoincrement field. After adding a new record, I need to know the value of the autoincrement field. To do that, I get the record which has the higher number in the autoincrement field (because it is the last added one), and read this field value.

This works fine in a monouser environnement. But, if two records are added almost simultaneously, there is a risk that the last value of the autoincrement field is not the value of the record I just added. To solve this, I tried to use those SQL commands :

BEGIN TRANSACTION
COMMIT TRANSACTION

But it seems that Access does not handle these SQL commands.

How would you solve my problem ?

Thank you for your help
Jerome
GeneralRe: Transactions with Access Pin
RichardGrimmer19-Aug-03 5:21
RichardGrimmer19-Aug-03 5:21 
GeneralRe: Transactions with Access Pin
Steve S19-Aug-03 22:15
Steve S19-Aug-03 22:15 
GeneralMacro to update data from excel file Pin
PrasadD18-Aug-03 14:07
PrasadD18-Aug-03 14:07 
GeneralRe: Macro to update data from excel file Pin
xoph21-Aug-03 1:33
xoph21-Aug-03 1:33 
QuestionToo Complex For Me...Maybe You? Pin
jesus4u18-Aug-03 8:03
jesus4u18-Aug-03 8:03 
AnswerRe: Too Complex For Me...Maybe You? Pin
basementman18-Aug-03 10:00
basementman18-Aug-03 10:00 
GeneralRe: Too Complex For Me...Maybe You? Pin
jesus4u18-Aug-03 10:04
jesus4u18-Aug-03 10:04 
GeneralRe: Too Complex For Me...Maybe You? Pin
basementman18-Aug-03 10:08
basementman18-Aug-03 10:08 
GeneralRetrieving PF, FK from table Pin
SimonS18-Aug-03 7:32
SimonS18-Aug-03 7:32 
GeneralRe: Retrieving PF, FK from table Pin
basementman18-Aug-03 10:06
basementman18-Aug-03 10:06 
GeneralRe: Retrieving PF, FK from table Pin
RichardGrimmer19-Aug-03 5:25
RichardGrimmer19-Aug-03 5:25 
GeneralRe: Retrieving PF, FK from table Pin
SimonS19-Aug-03 10:42
SimonS19-Aug-03 10:42 
QuestionEver needed to Increment a Revision? Pin
OMalleyW18-Aug-03 4:29
OMalleyW18-Aug-03 4:29 
AnswerRe: Ever needed to Increment a Revision? Pin
OMalleyW18-Aug-03 5:23
OMalleyW18-Aug-03 5:23 
QuestionMD5 in SQL Server 2000? Pin
Abin18-Aug-03 0:19
Abin18-Aug-03 0:19 
AnswerRe: MD5 in SQL Server 2000? Pin
Mike Dimmick19-Aug-03 5:02
Mike Dimmick19-Aug-03 5:02 
GeneralADO :VARIANY :Binarry Array Pin
Fad B17-Aug-03 21:52
Fad B17-Aug-03 21:52 

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.