简体   繁体   English

我应该先安装哪个:Visual Studio 2008 还是 SQL Server 2008?

[英]Which should I install first: Visual Studio 2008 or SQL Server 2008?

Half a year ago, I installed Visual Studio 2008 and SQL Server 2008. I don't quite remember which I installed first, but since then I am unable to connect to any file-based SQL server databases from the Visual Studio IDE.半年前,我安装了 Visual Studio 2008 和 SQL Server 2008。我不太记得我先安装了哪个,但从那以后我无法从 Visual Studio IDE 连接到任何基于文件的 SQL Server 数据库。 I think it was related to a bug in Visual Studio, the fact that I had previously installed Visual Studio 2005 on the same system and the order in which I installed both programs.我认为这与 Visual Studio 中的错误有关,因为我之前在同一系统上安装了 Visual Studio 2005 以及我安装这两个程序的顺序。

Now I am soon going to upgrade to Visual Studio Team System and I would rather avoid having the same database connection problems.现在我很快将升级到 Visual Studio Team System,我宁愿避免遇到相同的数据库连接问题。 Should I我是不是该

A) Uninstall both Visual Studio and SQL Server, then reinstall SQL Server and afterwards Visual Studio? A) 卸载 Visual Studio 和 SQL Server,然后重新安装 SQL Server,然后重新安装 Visual Studio? B) Just uninstall Visual Studio and update to VS Team System? B) 只需卸载 Visual Studio 并更新到 VS Team System?

Thanks,谢谢,

Adrian阿德里安

I install the Developer Edition of SQL Server instead of the SQL Server Express edition that comes with VS2008.我安装的是 SQL Server 的 Developer Edition,而不是 VS2008 附带的 SQL Server Express 版本。 I find that the install works better if you install SQL Server first, that way there is no need to uninstall the Express edition before installing SQL Server Developer edition.我发现如果您先安装 SQL Server,安装效果会更好,这样就无需在安装 SQL Server Developer 版本之前卸载 Express 版本。 I don't recommend having both editions installed.我不建议同时安装这两个版本。 I had no end of problems until I figured out that having two versions installed was the issue.在我发现安装两个版本是问题之前,我一直没有解决问题。 Uninstalling VS and SQL Server Express may be necessary, but I believe it was enough just to uninstall SQL Server Express and (re)install SQL Server Developer edition.可能需要卸载 VS 和 SQL Server Express,但我相信卸载 SQL Server Express 并(重新)安装 SQL Server Developer 版本就足够了。

always first add IIS to your os then intsall Office (if you need) then use windows update as long as you're sure you have no more updates then install Sql Server then use windows update to be sure you have any ServicePack needed by Sql Server then install Visual Studio then use windows update as long as you're sure you have no more updates始终首先将 IIS 添加到您的操作系统,然后安装 Office(如果需要),然后使用 Windows 更新,只要您确定没有更多更新,然后安装 Sql Server,然后使用 Windows 更新以确保您拥有 Sql Server 所需的任何 ServicePack然后安装 Visual Studio 然后使用 Windows 更新,只要您确定没有更多更新

You can have developer and express edition of sql (even of different versions) on same machine.您可以在同一台机器上拥有开发人员和快速版本的 sql(甚至不同版本)。 And you can have all the Visual Studio versions from 2003 (did not tried having also previous) to 2010.并且您可以拥有从 2003 年(以前没有尝试过)到 2010 年的所有 Visual Studio 版本。

The only caveat is: all in same language, or you will experience MSDN crash every too often, and the merge action of msdn will make an unreadable msdn on your pc.唯一的警告是:全部使用相同的语言,否则您将经常遇到 MSDN 崩溃,并且 msdn 的合并操作将使您的 pc 上的 msdn 不可读。

Cimpy辛比

我认为它们的安装顺序无关紧要。

There is no technical reasons why you should install one or the other first.您应该先安装一个或另一个没有技术原因。 The VS IDE is the same for both and the Visual Studio add-on's for development (C#, VB are add-ons) or SQL should install no matter what else is installed. VS IDE 是相同的,无论安装什么,都应该安装用于开发的 Visual Studio 附加组件(C#、VB 是附加组件)或 SQL。

Personally I would install DB first - the reason is that if you install DB second the default feed for the start page is set to the SQL teams RSS feed and not the MSDN one.就我个人而言,我会先安装 DB - 原因是如果您第二次安装 DB,则起始页的默认提要设置为 SQL 团队 RSS 提要而不是 MSDN 提要。

My experience after changing from SQL 2005 Express to SQL 2008 Express was that VS would not recognize SQL 2008 and was still looking for SQL 2005.我从 SQL 2005 Express 改为 SQL 2008 Express 后的经验是,VS 无法识别 SQL 2008 并且仍在寻找 SQL 2005。

I took these steps:我采取了以下步骤:

  • uninstall Visual Studio卸载 Visual Studio
  • delete all the registry keys I could find that seemed to relate to Visual Studio删除所有我能找到的似乎与 Visual Studio 相关的注册表项
  • install Visual Studio安装 Visual Studio

VS was now able to connect to SQL Server and user instances (file mdf) However, in the least priviledged user access account I got this error message: "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance." VS 现在能够连接到 SQL Server 和用户实例(文件 mdf)但是,在最低权限的用户访问帐户中,我收到此错误消息:“由于启动进程失败,无法生成 SQL Server 的用户实例用户实例。”

To fix this error:要修复此错误:

  • under the C:\\Users[user]\\AppData directory if found the folders that SQL Express was using and deleted them.如果找到 SQL Express 正在使用的文件夹并删除它们,则在 C:\\Users[user]\\AppData 目录下。

I was now able to make a database connection in Visual Studio.我现在能够在 Visual Studio 中建立数据库连接。

通过在自定义安装中禁用 sqlsever express editin 选项来安装 Visual Studio,然后单独安装 sqlserver express edition 2005,然后在安装 mangaement studio 后..u 可以连接到 DB..it's working...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 首先安装Sql Server 2008还是Visual Studio 2008? - Install Sql Server 2008 first or Visual Studio 2008? 先安装什么? sql 服务器 2008 r2 或 Visual Studio 2008(不是 sp1) - what install first? sql server 2008 r2 or visual studio 2008 (it is not sp1) Visual Studio 2008商业智能SQL Server,要安装C#? - Visual Studio 2008 Business Intelligence SQL Server, Install C#? 将 Visual Studio 2008 升级到 SP1 以安装 SQL Server 2008 Management Studio - Upgrade Visual Studio 2008 to SP1 to install SQL Server 2008 Management Studio 无法安装SQL Server 2008 Management Studio-需要Visual Studio C ++ 2008 SP1 - Cannot install SQL Server 2008 Management Studio - Need Visual Studio C++ 2008 SP1 为什么在安装SQL Server 2008 R2时会安装visual studio 2008和SQL Server 2008? - Why does visual studio 2008 and SQL Server 2008 get installed when you install SQL Server 2008 R2? 如何管理Visual Studio 2008附带的SQL Server 2008? - how to manage sql server 2008 that came with Visual studio 2008? Crystal Reports Visual Studio 2008和SQL Server 2008 R2 - Crystal Reports Visual Studio 2008 and SQL Server 2008 R2 带有Visual Studio 2008的SQL Server Compact - SQL Server Compact with Visual Studio 2008 Visual Studio 2008与Sql Server 2005的连接 - Visual Studio 2008 connection to Sql Server 2005
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM