问题描述
我目前有涉及PHP和asp.net一所学校分配。现在的任务是,我使一个电子商务网站使用PHP和它的CMS与asp.net。
因此,这两个网站连接到这是在SQL Server相同的数据库。
I currently have a school assignment that involves both PHP and asp.net. Now the assignment is that I make an E-commerce website with PHP and it's CMS with asp.net.Therefore both websites connect to the same database which is in SQL Server.
在使用Visual Studio的SQL Server的防爆preSS的那一刻,我已经生成的MDF文件作为数据库。我使用Xampplite文件作为Web服务器和记事本++到code PHP,我试图连接到MDF文件。
At the moment using Visual Studio's SQL Server Express, and I have generated an mdf file as the database. I am using xampplite as a web-server and notepad++ to code PHP and I am trying to connect to the mdf file.
这可能吗?如果是这样,我应该作为一个连接字符串使用?
Is it possible? If so, What should I use as a connection string?
推荐答案
下面的手册中这一切都说明。看用户的意见为好。
Here in the manual it's all explained. Look at the user comments as well.
这篇关于连接到通过PHP的SQL Server的MDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!