Click here to Skip to main content
16,004,927 members
Home / Discussions / Database
   

Database

 
GeneralRe: Stored Procedures or Direct SQL Statements Pin
Frank Kerrigan24-Aug-05 0:35
Frank Kerrigan24-Aug-05 0:35 
GeneralRe: Stored Procedures or Direct SQL Statements Pin
Colin Angus Mackay24-Aug-05 1:30
Colin Angus Mackay24-Aug-05 1:30 
GeneralRe: Stored Procedures or Direct SQL Statements Pin
Yulianto.25-Aug-05 0:52
Yulianto.25-Aug-05 0:52 
QuestionHow do i use c# control sqlserver backup and restore? Pin
xfliu13923-Aug-05 15:49
xfliu13923-Aug-05 15:49 
AnswerRe: How do i use c# control sqlserver backup and restore? Pin
Colin Angus Mackay23-Aug-05 23:27
Colin Angus Mackay23-Aug-05 23:27 
GeneralRe: How do i use c# control sqlserver backup and restore? Pin
miah alom25-Aug-05 10:11
miah alom25-Aug-05 10:11 
AnswerRe: How do i use c# control sqlserver backup and restore? Pin
airbus38025-Aug-05 13:29
airbus38025-Aug-05 13:29 
GeneralADO Update Question Pin
Santanu Lahiri23-Aug-05 11:16
Santanu Lahiri23-Aug-05 11:16 
My Environment: MySQL Database, ADO, MSVC6, MS DataGrid.
Datagrid is being used to display data from three tables, joined by their primary keys.

Problem: User wants to be able to edit the data in the grid itself. When he does, and tried to move to another record, the grid displays the message "Insufficient Key Column Information for updating or refreshing". User is not willing to have me bring up the row data in a dialog to edit.

Even Bigger Problem: I need to keep this user happy!

Schema:
Table_1: ID (AutoNumber, PK), Field_A (Varchar), Field_B (Varchar)
Table_2: ID (Autonumber, PK), Field_C (Varchar), Field_D (Integer)
Table_3: ID (Autonumber, PK), Field_E (Double)

SQL for Grid: SELECT Table_1.ID, Table_1.Field_A, Table_2.Field_C, Table_3.Field_E FROM (Table_1 INNER JOIN Table_2 ON Table_1.ID=Table_2.ID) INNER JOIN Table_3 ON Table_1.ID=Table_3.ID ORDER BY Table_1.Field_A

MS KB: There is no duplication of field names except ID. ID is always the primary key. The ID field is not being updated. Field_A is.

ADO: I have tried using both adUseClient and adUseServer as the cursor location, for both the connection object and the recordset object. Has not made any difference.

Can I set this up so that enough key column information is available for the update? Is this even possible?
GeneralRe: ADO Update Question Pin
miah alom25-Aug-05 11:34
miah alom25-Aug-05 11:34 
GeneralRe: ADO Update Question Pin
Santanu Lahiri26-Aug-05 7:51
Santanu Lahiri26-Aug-05 7:51 
GeneralSearching a database Pin
Binary011023-Aug-05 9:36
Binary011023-Aug-05 9:36 
GeneralRe: Searching a database Pin
Colin Angus Mackay23-Aug-05 21:21
Colin Angus Mackay23-Aug-05 21:21 
GeneralRe: Searching a database Pin
Binary011024-Aug-05 6:18
Binary011024-Aug-05 6:18 
Generalconcatenate recordset into one row Pin
JKroschel23-Aug-05 9:11
JKroschel23-Aug-05 9:11 
GeneralRe: concatenate recordset into one row Pin
airbus38024-Aug-05 22:34
airbus38024-Aug-05 22:34 
GeneralRe: concatenate recordset into one row Pin
JKroschel25-Aug-05 4:28
JKroschel25-Aug-05 4:28 
GeneralRe: concatenate recordset into one row Pin
Davene31-Aug-05 8:14
Davene31-Aug-05 8:14 
GeneralRe: concatenate recordset into one row Pin
airbus38031-Aug-05 11:45
airbus38031-Aug-05 11:45 
GeneralRe: concatenate recordset into one row Pin
Davene31-Aug-05 12:20
Davene31-Aug-05 12:20 
GeneralSQL Mail Pin
samoore23-Aug-05 6:09
samoore23-Aug-05 6:09 
GeneralRe: SQL Mail Pin
samoore23-Aug-05 7:32
samoore23-Aug-05 7:32 
GeneralProblem with Update ADO record through VBS Pin
IFriendly23-Aug-05 4:20
IFriendly23-Aug-05 4:20 
GeneralT-SQL Problem Pin
WDI23-Aug-05 2:45
WDI23-Aug-05 2:45 
GeneralRe: T-SQL Problem Pin
Colin Angus Mackay23-Aug-05 3:13
Colin Angus Mackay23-Aug-05 3:13 
GeneralRe: T-SQL Problem Pin
WDI23-Aug-05 4:27
WDI23-Aug-05 4:27 

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.