Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConnection with SQL Server 2008 using C++ Pin
PankajB12-Feb-09 20:50
PankajB12-Feb-09 20:50 
AnswerRe: Connection with SQL Server 2008 using C++ Pin
Stuart Dootson12-Feb-09 21:54
professionalStuart Dootson12-Feb-09 21:54 
GeneralRe: Connection with SQL Server 2008 using C++ Pin
PankajB12-Feb-09 22:17
PankajB12-Feb-09 22:17 
GeneralRe: Connection with SQL Server 2008 using C++ Pin
SandipG 12-Feb-09 22:33
SandipG 12-Feb-09 22:33 
GeneralRe: Connection with SQL Server 2008 using C++ Pin
PankajB12-Feb-09 22:44
PankajB12-Feb-09 22:44 
GeneralRe: Connection with SQL Server 2008 using C++ Pin
PankajB12-Feb-09 22:56
PankajB12-Feb-09 22:56 
GeneralRe: Connection with SQL Server 2008 using C++ Pin
SandipG 12-Feb-09 23:08
SandipG 12-Feb-09 23:08 
GeneralRe: Connection with SQL Server 2008 using C++ Pin
Stuart Dootson12-Feb-09 22:52
professionalStuart Dootson12-Feb-09 22:52 
PankajB wrote:
I am able to test the connection using Visual Studio's Server Explorer option.


If server explorer is able to connect using your connection string, that implies your connection string is valid.



PankajB wrote:
m_pConnection is of _ConnectionPtr type

PankajB wrote:
I am getting an error "Invalid Connection"


Looking at this article[^], you need to create the connection like this before opening it:

_ConnectionPtr m_pConn;
m_pConn.CreateInstance (__uuidof(Connection));


Maybe that's missing?

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Connection with SQL Server 2008 using C++ Pin
PankajB12-Feb-09 23:14
PankajB12-Feb-09 23:14 
GeneralRe: Connection with SQL Server 2008 using C++ Pin
PankajB12-Feb-09 23:23
PankajB12-Feb-09 23:23 
GeneralRe: Connection with SQL Server 2008 using C++ Pin
PankajB16-Feb-09 1:13
PankajB16-Feb-09 1:13 
Questionenabling keyboard shortcuts in my application Pin
VCProgrammer12-Feb-09 20:49
VCProgrammer12-Feb-09 20:49 
AnswerRe: enabling keyboard shortcuts in my application Pin
Arman S.12-Feb-09 21:09
Arman S.12-Feb-09 21:09 
AnswerRe: enabling keyboard shortcuts in my application Pin
Madhu Nair12-Feb-09 21:27
Madhu Nair12-Feb-09 21:27 
AnswerRe: enabling keyboard shortcuts in my application Pin
Rajesh R Subramanian13-Feb-09 5:05
professionalRajesh R Subramanian13-Feb-09 5:05 
QuestionWIN32 Com port ReadFile() Gets delay Pin
yctsai12-Feb-09 20:31
yctsai12-Feb-09 20:31 
AnswerRe: WIN32 Com port ReadFile() Gets delay Pin
Cedric Moonen12-Feb-09 20:38
Cedric Moonen12-Feb-09 20:38 
GeneralRe: WIN32 Com port ReadFile() Gets delay Pin
yctsai12-Feb-09 20:49
yctsai12-Feb-09 20:49 
GeneralRe: WIN32 Com port ReadFile() Gets delay Pin
Cedric Moonen12-Feb-09 21:05
Cedric Moonen12-Feb-09 21:05 
GeneralRe: WIN32 Com port ReadFile() Gets delay Pin
yctsai12-Feb-09 23:24
yctsai12-Feb-09 23:24 
GeneralRe: WIN32 Com port ReadFile() Gets delay Pin
Stuart Dootson12-Feb-09 21:56
professionalStuart Dootson12-Feb-09 21:56 
QuestionRe: WIN32 Com port ReadFile() Gets delay Pin
Roger Stoltz12-Feb-09 23:05
Roger Stoltz12-Feb-09 23:05 
AnswerRe: WIN32 Com port ReadFile() Gets delay Pin
David Crow13-Feb-09 2:49
David Crow13-Feb-09 2:49 
Questionsqrt() pow() fabs() do not work Pin
Member 337533412-Feb-09 19:23
Member 337533412-Feb-09 19:23 
AnswerRe: sqrt() pow() fabs() do not work Pin
Cedric Moonen12-Feb-09 20:18
Cedric Moonen12-Feb-09 20:18 

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.