Click here to Skip to main content
15,916,692 members
Home / Discussions / Database
   

Database

 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem2-Mar-08 16:48
Sadaf Naeem2-Mar-08 16:48 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem2-Mar-08 18:02
Sadaf Naeem2-Mar-08 18:02 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem2-Mar-08 18:04
Sadaf Naeem2-Mar-08 18:04 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem2-Mar-08 20:30
Sadaf Naeem2-Mar-08 20:30 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
pmarfleet2-Mar-08 22:04
pmarfleet2-Mar-08 22:04 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Khawar Abbas13-Mar-08 2:28
Khawar Abbas13-Mar-08 2:28 
Questionhow to store a *.jpg file in oracle? Pin
sejal_tank1-Mar-08 8:02
sejal_tank1-Mar-08 8:02 
GeneralRe: how to store a *.jpg file in oracle? Pin
followait1-Mar-08 8:18
followait1-Mar-08 8:18 
Hope it helps.

BOOL CMyDoc::ImportPic(LPCTSTR filePath)
{
	CFile file;
	file.Open(filePath,CFile::modeRead);
	DWORD len=file.GetLength();
	BYTE *pBuf=new BYTE[len+1];
	file.ReadHuge(pBuf,len);
	
	VARIANT			varBLOB;
	SAFEARRAY		*psa;
	SAFEARRAYBOUND	rgsabound;
	
	_RecordsetPtr pRs;
	pRs.CreateInstance(__uuidof(Recordset));
	pRs->Open(_T("picdata"),m_pConn.GetInterfacePtr(),adOpenStatic,adLockOptimistic,adCmdTable);
	pRs->AddNew();
	pRs->PutCollect(_T("name"),_T("a"));
	rgsabound.lLbound=0;
	rgsabound.cElements=len;
	psa=SafeArrayCreate(VT_UI1,1,&rgsabound);
	for (LONG i=0;i<(LONG)len;++i)
		SafeArrayPutElement(psa,&i,pBuf++);
	varBLOB.vt=VT_ARRAY|VT_UI1;
	varBLOB.parray=psa;
	pRs->GetFields()->GetItem("pic0")->AppendChunk(varBLOB);
	pRs->Update();
	pRs->Close();
	pRs.Release();
	return TRUE;
}

GeneralRe: how to store a *.jpg file in oracle? Pin
Paul Conrad1-Mar-08 12:32
professionalPaul Conrad1-Mar-08 12:32 
GeneralRe: how to store a *.jpg file in oracle? Pin
followait1-Mar-08 16:48
followait1-Mar-08 16:48 
QuestionHow to optimize the SQL command ... Pin
followait1-Mar-08 7:53
followait1-Mar-08 7:53 
AnswerRe: How to optimize the SQL command ... Pin
Paul Conrad1-Mar-08 12:32
professionalPaul Conrad1-Mar-08 12:32 
GeneralRe: How to optimize the SQL command ... Pin
followait1-Mar-08 16:48
followait1-Mar-08 16:48 
GeneralRe: How to optimize the SQL command ... Pin
Paul Conrad2-Mar-08 5:17
professionalPaul Conrad2-Mar-08 5:17 
GeneralRe: How to optimize the SQL command ... Pin
followait2-Mar-08 5:44
followait2-Mar-08 5:44 
GeneralRe: How to optimize the SQL command ... Pin
pmarfleet2-Mar-08 6:08
pmarfleet2-Mar-08 6:08 
AnswerRe: How to optimize the SQL command ... Pin
andyharman2-Mar-08 23:36
professionalandyharman2-Mar-08 23:36 
GeneralRe: How to optimize the SQL command ... Pin
followait3-Mar-08 4:19
followait3-Mar-08 4:19 
GeneralRe: How to optimize the SQL command ... Pin
andyharman3-Mar-08 8:48
professionalandyharman3-Mar-08 8:48 
GeneralRe: How to optimize the SQL command ... Pin
followait3-Mar-08 16:36
followait3-Mar-08 16:36 
GeneralRe: How to optimize the SQL command ... Pin
Ennis Ray Lynch, Jr.3-Mar-08 17:28
Ennis Ray Lynch, Jr.3-Mar-08 17:28 
GeneralNested BeginTrans failed (ado + sql server 2000) Pin
followait29-Feb-08 21:38
followait29-Feb-08 21:38 
AnswerRe: Nested BeginTrans failed (ado + sql server 2000) Pin
pmarfleet29-Feb-08 23:13
pmarfleet29-Feb-08 23:13 
GeneralSqlConnection problem on ASP.NET Web Application Pin
laziale29-Feb-08 2:20
laziale29-Feb-08 2:20 
GeneralRe: SqlConnection problem on ASP.NET Web Application Pin
Colin Angus Mackay29-Feb-08 3:03
Colin Angus Mackay29-Feb-08 3:03 

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.