简体   繁体   English

sqlserver rake db:migrate的连接错误

[英]Connection error for sqlserver rake db:migrate

I am getting the following error: 我收到以下错误:

Open
OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
HRESULT error code:0×80020009
Exception occurred.

I have tried following the directions here with no luck. 我尝试过这里的指示,没有运气。

Any ideas? 有任何想法吗?

FIXED 固定

My specific issue I believe was related to having to many mixed systems installed on my laptop. 我认为我的特定问题与笔记本电脑上安装了许多混合系统有关。 I had Visual Studio 2005 and 2008 components and SQL Server Management Standard loaded with SQL Server Express Edition as well as various other components that might have affected the stability of my environment. 我安装了Visual Studio 2005和2008组件以及SQL Server Express Edition,以及可能影响环境稳定性的其他各种组件。 Once I reloaded Vista and went back through the steps from the link above it worked without issue. 重新加载Vista后,按照上面的链接进行操作,一切正常。

I only loaded the Express Editions of SQL Server and SQL Server Management Studio. 我只加载了SQL Server Express Edition和SQL Server Management Studio。

Usually a authentication/permissions error. 通常是身份验证/权限错误。

Is the SQL Server on the same box as the web server, review the accounts they are running under, and review the type of connection you are making (integrated or otherwise)? SQL Server是否与Web服务器位于同一框上,是否查看它们在其下运行的帐户,并查看所建立的连接类型(集成或其他方式)?

Random guess: By default SQL Server (express, at least anyway) does NOT enable network access. 随机猜测:默认情况下,SQL Server(至少无论如何还是要表达)不启用网络访问。 The SQL Admin manager tools connect to it using named pipes, however rails most likely will be trying to use TCP. SQL Admin管理器工具使用命名管道连接到它,但是rails最有可能会尝试使用TCP。

My specifc issue I believe was related to having to many mixed systems installed on my laptop. 我认为我的特定问题与笔记本电脑上安装了许多混合系统有关。 I had Visual Studio 2005 and 2008 componets and SQL Server Managment Standard loaded with SQL Server Express Edition as well as various other componets that might have effected the stability of my envirnomnet. 我安装了SQL Server Express Edition的Visual Studio 2005和2008组件以及SQL Server管理标准,以及可能影响环境稳定性的其他各种组件。 Once I reloaded Vista and went back through the steps on http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServer it worked without issue. 重新加载Vista并返回http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServer上的步骤后,它就可以正常工作了。

I only loaded the Express Editions of SQL Server and SQL Server Management Studio 我只加载了SQL Server Express Edition和SQL Server Management Studio

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

相关问题 rake db出错:使用tiny_tds和sqlserver adapter迁移 - Error with rake db:migrate using tiny_tds and sqlserver adapter rake db: 使用现有数据库迁移 - rake db:migrate with existing database 将数据从notifyix数据库迁移到sqlserver数据库 - Migrate data from informix db to sqlserver db 修复 Java db 连接到 sqlserver 中的“找不到适合 jdbc 的驱动程序”错误 - Fix 'No suitable driver found for jdbc' error in Java db connection to sqlserver 连接的sqlserver错误 - sqlserver error for connection Visual Studio 2013数据库创建错误:与sqlserver建立连接时发生网络相关或实例特定错误 - Visual Studio 2013 DB creation error : a network related or instance specific error occurred while establishing connection with sqlserver 登录系统的SQLServer连接错误 - Sqlserver connection error for login system Codeigniter-SQLServer数据库连接错误 - Codeigniter - SQLServer Database Connection Error 在ms中连接到sqlserver服务时出错 - Getting error while connection to sqlserver services in ms Visual Studio 2013数据库创建C#与sqlserver建立连接时发生与网络相关或特定于实例的错误 - Visual Studio 2013 DB Creation C# a network related or instance specific error occurred while establishing connection with sqlserver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM