Click here to Skip to main content
15,902,198 members
Home / Discussions / Database
   

Database

 
QuestionADO.NET Update / delete without primary keys Pin
Jasonc22114-Oct-05 11:10
Jasonc22114-Oct-05 11:10 
I'm working on a program that needs to be able to update/delete rows in tables which do not (for whatever reason) have primary keys. I've done extensive searching on the subject and so far all I can turn up are suggestions to write my own custom update/delete SQL statements and attach them to the DataAdapter. The problem with this is that this program doesn't connect to one or two tables exclusively; rather, it allows the user to bring up -any- table.

The only thoughts my coworkers and I have had are to use Oracle's (we're using and Oracle database btw) rowid property, or to maintain a server-side cursor and somehow update/delete using that. The problem with these two solutions is:

1) Oracle's rowid is based off the row's location on the hard drive and is unreliable for uniquely referring to a row
2) I've been reading that ADO.NET has no server-side cursor

Does anyone have -any- ideas at all on how to solve this problem?
AnswerRe: ADO.NET Update / delete without primary keys Pin
miah alom17-Oct-05 5:52
miah alom17-Oct-05 5:52 
GeneralRe: ADO.NET Update / delete without primary keys Pin
Jasonc22117-Oct-05 7:33
Jasonc22117-Oct-05 7:33 
GeneralRe: ADO.NET Update / delete without primary keys Pin
miah alom17-Oct-05 8:35
miah alom17-Oct-05 8:35 
GeneralRe: ADO.NET Update / delete without primary keys Pin
Jasonc22118-Oct-05 9:22
Jasonc22118-Oct-05 9:22 
GeneralRe: ADO.NET Update / delete without primary keys Pin
l a u r e n21-Oct-05 15:04
l a u r e n21-Oct-05 15:04 
AnswerRe: ADO.NET Update / delete without primary keys Pin
S Douglas20-Oct-05 1:45
professionalS Douglas20-Oct-05 1:45 
AnswerRe: ADO.NET Update / delete without primary keys Pin
l a u r e n21-Oct-05 15:06
l a u r e n21-Oct-05 15:06 
GeneralRe: ADO.NET Update / delete without primary keys Pin
Jasonc22124-Oct-05 12:37
Jasonc22124-Oct-05 12:37 
QuestionSQL connection in servicedcomponents Pin
eliprand14-Oct-05 5:43
eliprand14-Oct-05 5:43 
AnswerRe: SQL connection in servicedcomponents Pin
eliprand14-Oct-05 6:08
eliprand14-Oct-05 6:08 
QuestionHow does Oracle support unicode text? Pin
Xiangyang Liu 刘向阳14-Oct-05 5:35
Xiangyang Liu 刘向阳14-Oct-05 5:35 
AnswerRe: How does Oracle support unicode text? Pin
DiWa14-Oct-05 19:30
DiWa14-Oct-05 19:30 
GeneralRe: How does Oracle support unicode text? Pin
Xiangyang Liu 刘向阳14-Oct-05 19:50
Xiangyang Liu 刘向阳14-Oct-05 19:50 
QuestionConnection String Pin
kenexcelon13-Oct-05 14:27
kenexcelon13-Oct-05 14:27 
AnswerRe: Connection String Pin
Mike Dimmick14-Oct-05 4:42
Mike Dimmick14-Oct-05 4:42 
GeneralRe: Connection String Pin
Anonymous14-Oct-05 15:32
Anonymous14-Oct-05 15:32 
QuestionOPENXML and ntext problem Pin
Luke Murray13-Oct-05 13:44
Luke Murray13-Oct-05 13:44 
QuestionListBox Display Member Pin
kenexcelon13-Oct-05 7:49
kenexcelon13-Oct-05 7:49 
AnswerRe: ListBox Display Member Pin
-Dr_X-13-Oct-05 8:44
-Dr_X-13-Oct-05 8:44 
QuestionError: JZooL & JZ006 What do I do? Pin
Crystal A13-Oct-05 3:27
sussCrystal A13-Oct-05 3:27 
AnswerRe: Error: JZooL & JZ006 What do I do? Pin
Mike Dimmick14-Oct-05 5:01
Mike Dimmick14-Oct-05 5:01 
QuestionSyntax error converting the nvarchar value 'INSERT INTO.... Pin
Mahantesh_Hongal12-Oct-05 23:25
Mahantesh_Hongal12-Oct-05 23:25 
AnswerRe: Syntax error converting the nvarchar value 'INSERT INTO.... Pin
under281113-Oct-05 2:08
under281113-Oct-05 2:08 
GeneralRe: Syntax error converting the nvarchar value 'INSERT INTO.... Pin
Mahantesh_Hongal13-Oct-05 2:11
Mahantesh_Hongal13-Oct-05 2:11 

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.