Click here to Skip to main content
15,892,298 members
Home / Discussions / Database
   

Database

 
GeneralCopy tables between 2 SQL Servers Pin
tgprakash25-Oct-04 2:48
tgprakash25-Oct-04 2:48 
GeneralRe: Copy tables between 2 SQL Servers Pin
Alomgir Miah26-Oct-04 10:38
Alomgir Miah26-Oct-04 10:38 
GeneralConnection String Pin
Marwa Bahaa25-Oct-04 1:06
Marwa Bahaa25-Oct-04 1:06 
GeneralRe: Connection String Pin
Michael Potter25-Oct-04 4:57
Michael Potter25-Oct-04 4:57 
GeneralRe: Connection String Pin
BlackDice28-Oct-04 10:43
BlackDice28-Oct-04 10:43 
GeneralRe: Connection String Pin
cnet20083-Nov-04 15:41
cnet20083-Nov-04 15:41 
GeneralRe: Connection String Pin
cnet20083-Nov-04 15:41
cnet20083-Nov-04 15:41 
GeneralAddNew Problem with CLOB field Pin
weblizp24-Oct-04 19:06
weblizp24-Oct-04 19:06 
hi I have a class(eg CMyClass) with a data member which is a _RecordsetPtr ,bind with a table of ORACLE which has a CLOB field.
class CMyClass
{
_RecordsetPtr m_pRst;
public:
void SomeMethod(CString strContent)
{
IDBAccessPtr o(__uuidof(DBAccess));
m_pRst = o.GetRecordset(_T("select * from tbl_a where id = 0"));//select an empty recordset
m_pRst->AddNew();
m_pRst->PutCollect(_T("id"),lDataId);
m_pRst->PutCollect(_T("content"),(LPTSTR)(LPCTSTR)strContent);
o.UpdateRecordset(m_pRst);

}
};

structure of tbl_a is:
create table tbl_a
(
id number(10,0),
content clob
)
/

using of CMyClass:

void UseOfMyClass(CString str)
{
CMyClass obj;
obj.SomeMethod(str);
}

First call UseOfMyClass with a very long string as parameter,is ok.
then call UseOfMyClass again(and all the succeeding calling ),the system issue a messagebox say:
""在对应所需名称或序数的集合中,未找到项目。
0x800a0cc1"
means "Item cannot be found in the collection corresponding to the requested name or ordinal"


if first calling of UseofMyClass with a shorter string parameter and the second call to UseofMyClass does not issue error and the result is correct.
I don't know why ,is there a stack overflow in _Recordset Object after handle a very long string ?

Help me please!
thanks advaced.
GeneralRe: AddNew Problem with CLOB field Pin
weblizp24-Oct-04 21:50
weblizp24-Oct-04 21:50 
GeneralHavving problem with a FILL command Pin
rudemusik24-Oct-04 18:01
rudemusik24-Oct-04 18:01 
Generalupdating doesn't work Pin
ezak24-Oct-04 8:51
ezak24-Oct-04 8:51 
GeneralRe: updating doesn't work Pin
Colin Angus Mackay24-Oct-04 13:10
Colin Angus Mackay24-Oct-04 13:10 
GeneraldateTime column in datagrid Pin
Miri Ofir24-Oct-04 5:53
Miri Ofir24-Oct-04 5:53 
GeneralRe: dateTime column in datagrid Pin
afronaut24-Oct-04 6:38
afronaut24-Oct-04 6:38 
GeneralRe: dateTime column in datagrid Pin
Miri Ofir25-Oct-04 1:55
Miri Ofir25-Oct-04 1:55 
GeneralGetting metadata from SQL Server Pin
Anonymous23-Oct-04 22:53
Anonymous23-Oct-04 22:53 
GeneralRe: Getting metadata from SQL Server Pin
Duncan Edwards Jones24-Oct-04 1:11
professionalDuncan Edwards Jones24-Oct-04 1:11 
GeneralRe: Getting metadata from SQL Server Pin
afronaut24-Oct-04 6:26
afronaut24-Oct-04 6:26 
GeneralRe: Getting metadata from SQL Server Pin
Duncan Edwards Jones24-Oct-04 7:39
professionalDuncan Edwards Jones24-Oct-04 7:39 
GeneralSQL Packages Pin
maro1823-Oct-04 22:01
maro1823-Oct-04 22:01 
GeneralRe: SQL Packages Pin
DreadPirateRoberts27-Oct-04 6:12
DreadPirateRoberts27-Oct-04 6:12 
QuestionSQl statement doesn't work why? Pin
jlawren723-Oct-04 14:12
jlawren723-Oct-04 14:12 
AnswerRe: SQl statement doesn't work why? Pin
afronaut24-Oct-04 6:29
afronaut24-Oct-04 6:29 
QuestionInsert into Syntax error? Pin
mikhaelb23-Oct-04 12:54
mikhaelb23-Oct-04 12:54 
AnswerRe: Insert into Syntax error? Pin
Colin Angus Mackay23-Oct-04 14:02
Colin Angus Mackay23-Oct-04 14:02 

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.