Click here to Skip to main content
16,009,114 members
Home / Discussions / Database
   

Database

 
GeneralRe: database Pin
Alexandru Savescu29-Jul-02 21:30
Alexandru Savescu29-Jul-02 21:30 
GeneralRe: database Pin
David Salter5-Aug-02 11:33
David Salter5-Aug-02 11:33 
GeneralBulk loading in .Net Pin
Anonymous27-Jul-02 8:57
Anonymous27-Jul-02 8:57 
GeneralRe: Bulk loading in .Net Pin
Andres Manggini27-Jul-02 12:16
Andres Manggini27-Jul-02 12:16 
GeneralRe: Bulk loading in .Net Pin
Anonymous27-Jul-02 18:41
Anonymous27-Jul-02 18:41 
GeneralRe: Bulk loading in .Net Pin
stephen woolhead29-Jul-02 5:38
stephen woolhead29-Jul-02 5:38 
GeneralSequential Number Pin
Waleed Eissa27-Jul-02 6:37
Waleed Eissa27-Jul-02 6:37 
GeneralSQL Server, OLE DB problem Pin
Alex Deem26-Jul-02 2:23
Alex Deem26-Jul-02 2:23 
Howdy,

I'm currently undertaking to convert a c++ application which uses DAO to access an mdb file to using OLE DB to connect to MS SQL Server 2000.

The UI for part of the application is split in two, allowing the user to browse records in the top portion [in a table] whilst allowing a specific record to be edited in the bottom portion. To implement this in DAO using a single recordset was simple. The bottom view requests the data of a specific record as well as a bookmark to the record. When the record is to be saved we jump to the record identified by the bookmark, set the data appropriately and call Update(). In between getting the initial data and the save process other records may have been retrieved from the database if the user browsed around in the table view.

I am currently trying to move this functionality to OLE DB. According to the MS SQL Server documentation i have a choice of only 2 cursor types if i want read/write access. The cursor type that fits perfectly my needs is the keyset, as it allows bookmarking. The other type (dynamic) doesnt allow bookmarking. I am setting the properties of the command object in order to obtain this keyset cursor. This all seems to work fine when i view a table which has a Primary Key. However, if i try view a table which does not have a primary key, i receive an error when i attempt to Execute() the command.

This seems logical because there are no fields from which the keyset can be created, so it fails. Cry | :((

How do i get around this? Am i missing something?
I am annoyed because it was so simple and smooth with DAO, it somehow allowed me to obtain bookmarks even if there is no key information in the result set. So how can i achieve the same thing using OLE DB and SQL Server?

Any suggestions at all would be great! I am about at my wits end! Confused | :confused:
Thanks!
GeneralXML Web Service error on Update() Pin
laphijia25-Jul-02 23:45
laphijia25-Jul-02 23:45 
GeneralError Creating SQL DB in .NET Pin
bingo199525-Jul-02 2:25
bingo199525-Jul-02 2:25 
GeneralRe: Error Creating SQL DB in .NET Pin
Alexandru Savescu25-Jul-02 5:34
Alexandru Savescu25-Jul-02 5:34 
GeneralRe: Error Creating SQL DB in .NET Pin
Nick Parker25-Jul-02 7:55
protectorNick Parker25-Jul-02 7:55 
Questionhow to set a database only permit seraral IP can connet with odbc or oledb? Pin
realfly24-Jul-02 17:46
realfly24-Jul-02 17:46 
AnswerRe: how to set a database only permit seraral IP can connet with odbc or oledb? Pin
Nick Parker25-Jul-02 8:04
protectorNick Parker25-Jul-02 8:04 
GeneralRe: how to set a database only permit seraral IP can connet with odbc or oledb? Pin
realfly25-Jul-02 15:28
realfly25-Jul-02 15:28 
GeneralRe: how to set a database only permit seraral IP can connet with odbc or oledb? Pin
Nick Parker28-Jul-02 11:19
protectorNick Parker28-Jul-02 11:19 
GeneralADO asynchronous queries and sorting Pin
Byteman24-Jul-02 8:01
Byteman24-Jul-02 8:01 
GeneralRe: ADO asynchronous queries and sorting Pin
SimonS24-Jul-02 22:18
SimonS24-Jul-02 22:18 
GeneralADO.Net updating a BLOB Pin
MrGlover23-Jul-02 19:01
MrGlover23-Jul-02 19:01 
GeneralRe: ADO.Net updating a BLOB Pin
Richard Deeming25-Jul-02 1:38
mveRichard Deeming25-Jul-02 1:38 
Generaloledb and table with no key Pin
AlexEg23-Jul-02 2:22
AlexEg23-Jul-02 2:22 
GeneralRe: oledb and table with no key Pin
Alex Deem26-Jul-02 2:25
Alex Deem26-Jul-02 2:25 
GeneralCreating Login Pin
Mazdak22-Jul-02 19:14
Mazdak22-Jul-02 19:14 
GeneralRe: Creating Login Pin
Richard Deeming22-Jul-02 23:39
mveRichard Deeming22-Jul-02 23:39 
GeneralRe: Creating Login Pin
Mazdak25-Jul-02 7:14
Mazdak25-Jul-02 7:14 

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.