Click here to Skip to main content
15,924,039 members
Home / Discussions / Database
   

Database

 
QuestionSave text with its format to database? Pin
bekunkun6-Oct-04 0:39
bekunkun6-Oct-04 0:39 
AnswerRe: Save text with its format to database? Pin
David Salter6-Oct-04 10:27
David Salter6-Oct-04 10:27 
GeneralRe: Save text with its format to database? Pin
bekunkun6-Oct-04 22:29
bekunkun6-Oct-04 22:29 
GeneralDataTable.Select() Pin
amatyasik5-Oct-04 5:57
amatyasik5-Oct-04 5:57 
GeneralRe: DataTable.Select() Pin
Guillermo Rivero5-Oct-04 6:15
Guillermo Rivero5-Oct-04 6:15 
GeneralRe: DataTable.Select() Pin
EdbertP5-Oct-04 16:59
EdbertP5-Oct-04 16:59 
GeneralRe: DataTable.Select() Pin
amatyasik5-Oct-04 21:28
amatyasik5-Oct-04 21:28 
Generalerror when calling stored procedure in ole db Pin
sudheer_ars4-Oct-04 20:28
sudheer_ars4-Oct-04 20:28 
Hi,
I am new to OLE DB. I created a simple stored procedure that insert
given data to a table. when I tried to call Open function of the wizard
generated ole db class, it fails with a HRESULT value : [-2147217887]. (the
error lookup tool returns 'No such Message' for this value). While debuging
i found, the Execute function is returning this value.

My code is given below. Is it correct ?

CdbospTestTable1 m_db;

m_db.m_test1 = 111;
m_db.m_test2 = 222;

HRESULT hr = m_db.Open();
if(FAILED(hr))
AfxMessageBox("Error : Open");


When I created OLE DB consumer class, selecting table, then the insertion
succeeded.

The creation of the class was :
Insert => New Atl Object .
Data Access : Consumer
OLE DB provider : OLE DB provider for Sql Server
Type property : Command
Support : change, insert and delete

Then selected the Stored Procedure name.

Thanks and Regards
Sudheer

GeneralRe: error when calling stored procedure in ole db Pin
sreejith ss nair7-Oct-04 1:11
sreejith ss nair7-Oct-04 1:11 
GeneralRe: error when calling stored procedure in ole db Pin
Colin Angus Mackay7-Oct-04 1:42
Colin Angus Mackay7-Oct-04 1:42 
GeneralSaving files into image field on sql server2000 Pin
firad3-Oct-04 20:18
sussfirad3-Oct-04 20:18 
QuestionOpinions on loading large file into database? Pin
ThomasH13-Oct-04 12:30
ThomasH13-Oct-04 12:30 
GeneralDatetime problem on sql statement Pin
Gamoss3-Oct-04 3:54
Gamoss3-Oct-04 3:54 
GeneralRe: Datetime problem on sql statement Pin
Jeremy Oldham3-Oct-04 3:57
Jeremy Oldham3-Oct-04 3:57 
GeneralRe: Datetime problem on sql statement Pin
Gamoss3-Oct-04 4:06
Gamoss3-Oct-04 4:06 
GeneralShutdown and restart SQL Server programatically Pin
Xiangyang Liu 刘向阳2-Oct-04 16:39
Xiangyang Liu 刘向阳2-Oct-04 16:39 
GeneralRe: Shutdown and restart SQL Server programatically Pin
Kurt _B7-Oct-04 13:09
Kurt _B7-Oct-04 13:09 
GeneralRe: Shutdown and restart SQL Server programatically Pin
Xiangyang Liu 刘向阳14-Oct-04 8:05
Xiangyang Liu 刘向阳14-Oct-04 8:05 
GeneralRe: Shutdown and restart SQL Server programatically Pin
Xiangyang Liu 刘向阳14-Oct-04 15:04
Xiangyang Liu 刘向阳14-Oct-04 15:04 
GeneralNeed help do design the table for this requirement Pin
percyvimal2-Oct-04 6:44
percyvimal2-Oct-04 6:44 
GeneralRe: Need help do design the table for this requirement Pin
Colin Angus Mackay2-Oct-04 7:00
Colin Angus Mackay2-Oct-04 7:00 
GeneralRe: Need help do design the table for this requirement Pin
percyvimal2-Oct-04 7:14
percyvimal2-Oct-04 7:14 
GeneralRe: Need help do design the table for this requirement Pin
Colin Angus Mackay2-Oct-04 7:52
Colin Angus Mackay2-Oct-04 7:52 
GeneralRe: Need help do design the table for this requirement Pin
percyvimal2-Oct-04 8:25
percyvimal2-Oct-04 8:25 
GeneralRe: Need help do design the table for this requirement Pin
Colin Angus Mackay2-Oct-04 8:59
Colin Angus Mackay2-Oct-04 8:59 

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.