Click here to Skip to main content
15,908,626 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server 2005 Installation Error Pin
Wendelius24-Sep-08 8:28
mentorWendelius24-Sep-08 8:28 
Question[Message Deleted] Pin
notes4we24-Sep-08 3:04
notes4we24-Sep-08 3:04 
AnswerRe: Send Mail Task on Failure Pin
Wendelius24-Sep-08 8:26
mentorWendelius24-Sep-08 8:26 
QuestionMaking a Winform Application Support ORACLE and SQL Server Pin
Member 118746624-Sep-08 2:40
Member 118746624-Sep-08 2:40 
AnswerRe: Making a Winform Application Support ORACLE and SQL Server Pin
Coxianuk24-Sep-08 11:23
Coxianuk24-Sep-08 11:23 
AnswerRe: Making a Winform Application Support ORACLE and SQL Server Pin
jVersteegen24-Sep-08 23:49
jVersteegen24-Sep-08 23:49 
GeneralRe: Making a Winform Application Support ORACLE and SQL Server Pin
Member 118746625-Sep-08 5:08
Member 118746625-Sep-08 5:08 
QuestionAccessing/ connecting MySQL database from VC++ application...... please help Pin
param_joshi24-Sep-08 2:29
param_joshi24-Sep-08 2:29 
I m new to VC++ , I have a vc++ mfc application which i want connect with MySQL database.. earlier it dont have any database connectivity. Can anybody guide step by step to connect it to databse. I have installed MySQL 5 on my system n also installed MySQL connector 5.1 .
In my application , added these two lines of code
#include "afxdb.h"

then in a function void OnClickOk()
{
CDatabase db;
int i;
db.OpenEx(_T("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=kcc_trades; User=kats;Password=db_logon;Option=3;"));
i = db.IsOpen();

}

but it gives the errors
error C2065: 'CDatabase' : undeclared identifier
1>.\ChangeLimitsForm.cpp(574) : error C2146: syntax error : missing ';' before identifier 'db'
1>.\ChangeLimitsForm.cpp(574) : error C2065: 'db' : undeclared identifier
1>.\ChangeLimitsForm.cpp(576) : error C2228: left of '.OpenEx' must have class/struct/union
1> type is ''unknown-type''
1>.\ChangeLimitsForm.cpp(577) : error C2228: left of '.IsOpen' must have class/struct/union
1> type is ''unknown-type''

and if I put the cursor on CDatabse db; then it shows CDatabase as class and cursor on db shows CDatabase db means memeber ...... also db. shows me the list of available function from which I selected OpenEx....... i mean to say that it identifies CDatabase as class then why it is giving error....

Can anybody help me!!!!!!!!!!
Please I m struggling with these from the last one week.......
thanks
Questioninstance of sql server at client side Pin
laziale24-Sep-08 1:40
laziale24-Sep-08 1:40 
AnswerRe: instance of sql server at client side Pin
Rob Graham24-Sep-08 2:09
Rob Graham24-Sep-08 2:09 
QuestionHow can I solve this "Procedure or function StoredProcedure1 has too many arguments specified. problem"? Please only experts. Pin
JUNEYT24-Sep-08 0:20
JUNEYT24-Sep-08 0:20 
AnswerRe: How can I solve this "Procedure or function StoredProcedure1 has too many arguments specified. problem"? Please only experts. Pin
Rob Graham24-Sep-08 2:14
Rob Graham24-Sep-08 2:14 
GeneralRe: How can I solve this "Procedure or function StoredProcedure1 has too many arguments specified. problem"? Please only experts. Pin
JUNEYT24-Sep-08 11:15
JUNEYT24-Sep-08 11:15 
AnswerRe: How can I solve this "Procedure or function StoredProcedure1 has too many arguments specified. problem"? Please only experts. Pin
J4amieC24-Sep-08 2:56
J4amieC24-Sep-08 2:56 
GeneralRe: How can I solve this "Procedure or function StoredProcedure1 has too many arguments specified. problem"? Please only experts. Pin
Blue_Boy24-Sep-08 3:40
Blue_Boy24-Sep-08 3:40 
QuestionAltering a table with SQL manager 2008 Pin
Paw Jershauge23-Sep-08 23:58
Paw Jershauge23-Sep-08 23:58 
AnswerRe: Altering a table with SQL manager 2008 Pin
Wendelius24-Sep-08 8:58
mentorWendelius24-Sep-08 8:58 
GeneralRe: Altering a table with SQL manager 2008 Pin
Paw Jershauge24-Sep-08 9:12
Paw Jershauge24-Sep-08 9:12 
GeneralRe: Altering a table with SQL manager 2008 Pin
Wendelius24-Sep-08 9:20
mentorWendelius24-Sep-08 9:20 
GeneralRe: Altering a table with SQL manager 2008 Pin
Paw Jershauge24-Sep-08 9:29
Paw Jershauge24-Sep-08 9:29 
GeneralRe: Altering a table with SQL manager 2008 [modified] Pin
Wendelius24-Sep-08 9:37
mentorWendelius24-Sep-08 9:37 
GeneralRe: Altering a table with SQL manager 2008 Pin
Paw Jershauge24-Sep-08 9:46
Paw Jershauge24-Sep-08 9:46 
GeneralRe: Altering a table with SQL manager 2008 Pin
Paw Jershauge24-Sep-08 9:56
Paw Jershauge24-Sep-08 9:56 
GeneralRe: Altering a table with SQL manager 2008 Pin
Wendelius24-Sep-08 9:58
mentorWendelius24-Sep-08 9:58 
GeneralRe: Altering a table with SQL manager 2008 Pin
Paw Jershauge24-Sep-08 10:01
Paw Jershauge24-Sep-08 10:01 

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.