16,007,885 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by sally8998 (Top 7 by date)
sally8998
20-Mar-13 4:23am
View
I had got my problem solved by myself. Thank you.
sally8998
12-Jun-12 0:12am
View
Finally I make it! The server and database were not correct. Thanks, barneyman!
sally8998
11-Jun-12 21:47pm
View
It still failed even I changed it to:
CDatabase database;
CString SqlString;
CString sDriver = "SQL Server";
CString sDsn, sMc;
sMc.Format("localhost");
CString sFile = "C:\\MyFolder\\Libraries.mdf";
sDsn.Format("ODBC;DRIVER={%s};Server=%s;Database=%s;Trusted_Connection=yes",sDriver,sMc,sFile);
// Open the database
if(database.Open(NULL,false,false,sDsn))
AfxMessageBox("database opened!");
sally8998
11-Jun-12 20:56pm
View
Dear barneyman, I had got SQL2008 express installed in my system. I checked the web you suggested, if the database is in my local machine, what should i put for the "server" for the connection string? Thanks!
sally8998
7-Dec-11 3:03am
View
Thanks for the lesson.
sally8998
7-Dec-11 2:55am
View
Hi there. Yes, I need a storage where its size is growing to a big number. Is there any examples or sites for your suggestions? Thanks.
sally8998
7-Dec-11 2:52am
View
Ok. I'll browse them. Thanks.
Show More