Click here to Skip to main content
15,904,877 members
Home / Discussions / Database
   

Database

 
Generalcannot execute dts packages with asp.net Pin
steven_wong16-Nov-04 16:38
steven_wong16-Nov-04 16:38 
GeneralRe: cannot execute dts packages with asp.net Pin
minhpc_bk16-Nov-04 18:56
minhpc_bk16-Nov-04 18:56 
GeneralRe: cannot execute dts packages with asp.net Pin
steven_wong17-Nov-04 22:16
steven_wong17-Nov-04 22:16 
GeneralRe: cannot execute dts packages with asp.net Pin
minhpc_bk18-Nov-04 22:54
minhpc_bk18-Nov-04 22:54 
GeneralRe: cannot execute dts packages with asp.net Pin
steven_wong20-Nov-04 16:27
steven_wong20-Nov-04 16:27 
GeneralRe: cannot execute dts packages with asp.net Pin
minhpc_bk21-Nov-04 23:16
minhpc_bk21-Nov-04 23:16 
GeneralRe: cannot execute dts packages with asp.net Pin
minhpc_bk25-Nov-04 13:44
minhpc_bk25-Nov-04 13:44 
GeneralCRecordset Edit Pin
Shotgun16-Nov-04 14:45
Shotgun16-Nov-04 14:45 
I am trying to add and edit records in a CDatabase, CRecordset enviro,
if i comment out the update error everything goes through without a hitch but there is no data updated, with it, it shows no update,
Someone please help, I've been banging my head on the wall with this.

CSetProps is derived from CRecordset
property of int m_textcolor, m_listcolor

datab.Open( NULL,FALSE,FALSE,sDsn,TRUE);

// Allocate the recordset
CSetProps recset( &datab );

// Build the SQL statement
SqlString = "SELECT * FROM Props";

recset.Open(CRecordset::forwardOnly,SqlString, CRecordset::none);

char buff[10];

CDBVariant tvar;
tvar.m_dwType=VT_I2;

recset.GetFieldValue("textcolor",tvar);

//convert the integer for messageing
itoa(tvar.m_iVal, buff, 10);

//This messages current value so we know we are on a record
AfxMessageBox(buff);

//prepare for record to be eddited
recset.Edit();

// msdn says to set the filds null
recset.SetFieldNull(&(recset.m_textcolor), FALSE);

// set new value
recset.m_textcolor = 8;

//tried with and without
recset.SetFieldDirty(NULL);

// always errors
if (!recset.Update())
AfxMessageBox("Error updating database");

recset.Close();
datab.Close();



shotgun
GeneralSQLDataReader for image type Pin
mysorian16-Nov-04 12:09
professionalmysorian16-Nov-04 12:09 
GeneralRe: SQLDataReader for image type Pin
Luis Alonso Ramos21-Nov-04 15:25
Luis Alonso Ramos21-Nov-04 15:25 
GeneralRe: SQLDataReader for image type Pin
mysorian21-Nov-04 18:18
professionalmysorian21-Nov-04 18:18 
GeneralRe: SQLDataReader for image type Pin
Luis Alonso Ramos21-Nov-04 18:44
Luis Alonso Ramos21-Nov-04 18:44 
GeneralRe: SQLDataReader for image type Pin
mysorian22-Nov-04 0:33
professionalmysorian22-Nov-04 0:33 
GeneralRe: SQLDataReader for image type Pin
Luis Alonso Ramos22-Nov-04 5:42
Luis Alonso Ramos22-Nov-04 5:42 
GeneralData Truncated using DAO / ODBC Informix Pin
@LX16-Nov-04 11:31
@LX16-Nov-04 11:31 
GeneralFoxPro ... ODBC ... Help !! Pin
fadee16-Nov-04 10:29
fadee16-Nov-04 10:29 
GeneralRe: FoxPro ... ODBC ... Help !! Pin
fadee17-Nov-04 17:45
fadee17-Nov-04 17:45 
GeneralCould not delete from specified tables Pin
NMiceli16-Nov-04 9:43
NMiceli16-Nov-04 9:43 
GeneralASP user login failed Pin
tadhg8816-Nov-04 5:51
tadhg8816-Nov-04 5:51 
GeneralRe: ASP user login failed Pin
Colin Angus Mackay16-Nov-04 6:55
Colin Angus Mackay16-Nov-04 6:55 
GeneralODBC drivers for Access in WinXP Pin
Skynyrd16-Nov-04 5:13
Skynyrd16-Nov-04 5:13 
GeneralRe: ODBC drivers for Access in WinXP Pin
fadee16-Nov-04 10:35
fadee16-Nov-04 10:35 
GeneralRe: ODBC drivers for Access in WinXP Pin
Skynyrd16-Nov-04 13:36
Skynyrd16-Nov-04 13:36 
GeneralProblems with CDaoDatabase::Execute Pin
Ivan Cachicatari16-Nov-04 4:48
Ivan Cachicatari16-Nov-04 4:48 
GeneralASCII Encoding & C# Pin
StrayGrey16-Nov-04 4:41
StrayGrey16-Nov-04 4:41 

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.