惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V2EX - 技术
V2EX - 技术
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
S
Securelist
P
Privacy & Cybersecurity Law Blog
Scott Helme
Scott Helme
T
Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
Cyberwarzone
Cyberwarzone
Cisco Talos Blog
Cisco Talos Blog
量子位
博客园 - Franky
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Latest news
Latest news
T
Troy Hunt's Blog
N
News | PayPal Newsroom
Google Online Security Blog
Google Online Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
N
Netflix TechBlog - Medium
小众软件
小众软件
P
Palo Alto Networks Blog
Spread Privacy
Spread Privacy
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
L
Lohrmann on Cybersecurity
L
LINUX DO - 最新话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Last Watchdog
The Last Watchdog
S
Security @ Cisco Blogs
P
Privacy International News Feed
Last Week in AI
Last Week in AI
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
博客园_首页
云风的 BLOG
云风的 BLOG
V
Vulnerabilities – Threatpost
D
DataBreaches.Net
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
罗磊的独立博客
Engineering at Meta
Engineering at Meta
Forbes - Security
Forbes - Security
T
Tenable Blog

博客园 - Vincent Yang

Cannot load macro project error SQL Express - "Failed generate a user instance..." PowerShell Operators Crystal Reports .NET Error - "Access to report file denied. Another program may be using it." - Vincent Yang (转:)SharePoint Database Naming Standards List Types & List Internal ID available within MOSS 2007 Telerik: IIS7 & IIS 7.5 and ‘Telerik.Web.UI.WebResource.axd’ is missing in web config 64bit SQL Server issues : Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly 正式入住Windows 7 + XPM A Generic Singleton Form Provider for C# Extreme Programming: Do these 12 practices make perfect? Pick up the pace with extreme programming Testing an ASP.NET Web Service using PowerShell Parsing XML Files with PowerShell Testing SQL Stored Procedures using PowerShell Working with Collections of Objects using PowerShell Generating iCalender file using ASP.NET SQL Server Precision And Scale Problems (SQL Server 精度问题) Six Quick Crystal Reports Design Tips
SQL Express 2008 x64 Integration with Visual Studio 2008 SP1
Vincent Yang · 2010-03-18 · via 博客园 - Vincent Yang

This problem makes me nuts. I spent several hours try to resolve this problem. The following article is the best one which teach solve this silly problem step by step.

Ref: http://blogs.visoftinc.com/archive/2009/02/06/SQL-Express-2008-x64-Integration-with-Visual-Studio-2008-SP1.aspx

Yesterday I was trying to add a database to the App_Data folder of a simple web application I was creating.  During one of my computer re-installs, I didn't install SQL Express since I normally use a full blown SQL instance, so I really had no need for it.  Now that I did need it, I wanted to run SQL Express 2008.  I am running Windows Vista x64, so I proceeded to download SQL Express 2008 x64.  I installed it and loaded up SQL Server Management Studio to make sure the instance was working (I just used the default of SQLEXPRESS for the instance name).  Everything was fine.  I then fired up Visual Studio, right-clicked on the App_Data folder of the web app, and... error (Figure 1).

Visual Studio Requires SQL 2005
Figure 1 - Connections to SQL require SQL Express

The Fix - Option 1 - Use SQL Express 2008 x86

One quick fix for this problem is to install the 32-bit version of SQL 2008 Express instead of the x64 version.  I figured this was sort of silly, I'm running Windows x64 and I really hate installing 32-bit software if I don't have to.  But if you're looking for a simple solution without an extra download, this is it.

The Fix - Option 2 - Using SQL Express 2008 x64

Refusing to take the easy way out, I then started down the path of fixing this "the right way".  The first article I came across was John Roland's post on this error.  Not helpful in my case, but useful if your instance is named something other than the default for SQLEXPRESS. 

Next, I found someone else with my problem on the ASP.NET Forums.  Thankfully, it had a link to the fix (KB 957944).  However this isn't a something you can just directly download from the KB article since it isn't available to the general public just yet. After a quick Google search, I found a simple way to request the hotfix from Microsoft.  From there, I discovered a pretty cool site called Hotfixr, which automatically sends the correct request to Microsoft.  If you are looking for the specific one for this problem, you can use this direct link.

After you make a request, Microsoft will e-mail you a link to the fix as well as a password to unzip the fix.  After downloading it, I installed the fix as show in Figure 2 below.  Note this install took quite a while.  Make sure you have all your instances for VS closed.

Installing KB957944
Figure 2 - Installing the KB 957944 Hotfix

Configuring SQL

I then fired up Visual Studio 2008, attempted to add a database again, but I received another error.  This was a pretty simple one though, it just stated that Named Pipes wasn't enabled for the server.  D'oh forgot to do that.  Easy fix...  Go to the SQL Server Configuration Manger, click on the Protocols for the specific instance and enable Named Pipes (Figure 3).  

SQL Protocols
Figure 3 - Enable Named Pipes

After all of that, a database can successfully be added (Figure 4). 

New Database
Figure 4 - Fixed... A New Database in App_Data