Click here to Skip to main content
15,920,110 members
Home / Discussions / Database
   

Database

 
GeneralRe: Create a new database Pin
Blue_Skye22-Feb-05 17:40
Blue_Skye22-Feb-05 17:40 
GeneralCurrent Row Index Pin
RChin22-Feb-05 6:14
RChin22-Feb-05 6:14 
GeneralRe: Current Row Index Pin
Michael Potter22-Feb-05 10:40
Michael Potter22-Feb-05 10:40 
GeneralRe: Current Row Index Pin
RChin22-Feb-05 22:48
RChin22-Feb-05 22:48 
GeneralMSDE2000A Pin
caoquanghanh22-Feb-05 0:05
caoquanghanh22-Feb-05 0:05 
Generalabout autherization Pin
Allah Kaa Bandaa21-Feb-05 22:10
Allah Kaa Bandaa21-Feb-05 22:10 
Generalstrange problem using ado to add record Pin
Dababa21-Feb-05 15:57
Dababa21-Feb-05 15:57 
GeneralStrange problem using OLE DB Consumer Templates Pin
lisoft21-Feb-05 13:56
lisoft21-Feb-05 13:56 
I'm writing a program to access the SQL SERVER using OLE DB Consumer templates. There was a strange problem found when I was trying to modify row data using CRowset::SetData method. Here is some key source code:


CDBPropSet ps(DBPROPSET_ROWSET);
ps.AddProperty(DBPROP_IRowsetChange,true);
ps.AddProperty(DBPROP_UPDATABILITY,DBPROPVAL_UP_CHANGE | DBPROPVAL_UP_INSERT | DBPROPVAL_UP_DELETE);
//...
Ctheclass record; //class Ctheclass :
public Command<CAccessor<CtheAccessor> >

record.Open(session,_T("TABLE_NAME"),&ps)
_tcscpy(record.column1,_T("Data to modify"));
record.SetData();


The problem is that sometime these code runs ok and the row data has been modified as expected but sometime the row data did not changed even the SetData() method returned S_OK.

Can any tell me if there is something wrong with my code or something I was missing.




Lisoft
GeneralExcel Oledb Pin
Devius21-Feb-05 13:38
Devius21-Feb-05 13:38 
GeneralPlease HELP! Data Source Configuration Wizard Pin
Member 169642421-Feb-05 7:13
Member 169642421-Feb-05 7:13 
GeneralEXCLUDING DATA USING DATE AS PARAMETER Pin
Brendan Vogt20-Feb-05 19:28
Brendan Vogt20-Feb-05 19:28 
GeneralRe: EXCLUDING DATA USING DATE AS PARAMETER Pin
Colin Angus Mackay20-Feb-05 19:54
Colin Angus Mackay20-Feb-05 19:54 
GeneralRe: EXCLUDING DATA USING DATE AS PARAMETER Pin
Member 174480620-Feb-05 21:17
Member 174480620-Feb-05 21:17 
GeneralSQL Server Replace Text/Characters Pin
Brendan Vogt20-Feb-05 19:27
Brendan Vogt20-Feb-05 19:27 
GeneralRe: SQL Server Replace Text/Characters Pin
Colin Angus Mackay20-Feb-05 19:58
Colin Angus Mackay20-Feb-05 19:58 
GeneralCreating New Table and Pump data from ActiveX Pin
Mehbub19-Feb-05 3:27
Mehbub19-Feb-05 3:27 
GeneralRowNumber in results. Pin
ABBASI_RA18-Feb-05 23:52
ABBASI_RA18-Feb-05 23:52 
GeneralRe: RowNumber in results. Pin
Mike Ellison19-Feb-05 19:53
Mike Ellison19-Feb-05 19:53 
GeneralRe: RowNumber in results. Pin
ABBASI_RA20-Feb-05 1:37
ABBASI_RA20-Feb-05 1:37 
GeneralRe: RowNumber in results. Pin
Mike Ellison22-Feb-05 9:48
Mike Ellison22-Feb-05 9:48 
GeneralRe: RowNumber in results. Pin
SimonS20-Feb-05 1:47
SimonS20-Feb-05 1:47 
GeneralRe: RowNumber in results. Pin
ABBASI_RA20-Feb-05 2:40
ABBASI_RA20-Feb-05 2:40 
GeneralBack up database Pin
GoldenStar18-Feb-05 22:56
GoldenStar18-Feb-05 22:56 
GeneralRe: Back up database Pin
Colin Angus Mackay19-Feb-05 1:10
Colin Angus Mackay19-Feb-05 1:10 
GeneralRe: Back up database Pin
GoldenStar20-Feb-05 10:13
GoldenStar20-Feb-05 10:13 

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.