Click here to Skip to main content
15,905,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please help me!
I have mydata.mdf and mydata_log.mdf and I want to connect to mydata.mdf when my pc don't has sql server, so how to I can do this. Please tell me the connect string
Thanks very much!
Posted

Firstly, why not just download SQL Server?
Available here[^]

Here[^] is a Stack O thread on the subject.
 
Share this answer
 
Comments
truongleman 25-Dec-11 5:14am    
Thanks, but if My PC don't have enough memory, so how to do this?
The only reasonable way is to install SQL Server, Express edition if you like.

You must understand that when an application connects to the database, it's does not connect to the files. It connects to the database engine (SQL Server service) which is responsible of handling the files. No application or user should never see the files where the data is stored, it's up to the service to take care of them.

This is very different from for example Access, which is simply a shared file manipulated with appropriate drivers from each workstation.
 
Share this answer
 
You can connect your .mdf DataBase file using SQLConnection to application.See this :
connectionStrings
If you want to Connect your Application with SQL DataBase without installing SQLServer
then Just Install required files which are usefull to run Sql Servises.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900