创建数据库时出错 [英] Getting error while creating database

查看:99
本文介绍了创建数据库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下错误,

I am getting the following error,

provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

推荐答案

好像您需要检查连接字符串.

祝您好运!
Seems like you need to check your connectionstring.

Good luck!


确定问题的步骤可以在此CodeProject文章 MSDN博客 [
Steps for determining the problem can be found in this CodeProject article Solution: Error: 26 – Error Locating Server/Instance Specified[^]

Further information from this MSDN blog[^]


如果在连接时引发错误,则会引发此错误到服务器.造成这种情况的一些可能原因是

This error is raised if an error is raise while connecting to the server. The few of the possible reasons for this can be,


  1. 服务器名称无效; typo ?
  2. 如果数据库是远程数据库,请确保仍建立连接.
  3. 防火墙可能在您和服务器之间介入.

  1. Server name is not valid; typo?
  2. If the database is remote, make sure connection is still established.
  3. Firewall might be intervening between your and the server.



您可以将以上几点作为检查清单,并确保所有这些都不会对您的系统造成任何问题.通常,第一个会导致问题,请确保连接字符串中具有正确的服务器名称,以便框架尝试连接至正确的服务器.可用的服务器.

除此之外,我还从Microsoft论坛中找到了一些线程可以指导您完成操作.

http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx [



You can take the above points as check list and make sure all of these are not causing any problem at all in your system. Usually the first one causes the problem, make sure you are having the correct server-name in your connection string so that the framework is trying to connect to the correct server; available server.

Apart from this, I found a few threads from Microsoft Forums which might guide you through.

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8cdc71eb-6929-4ae8-a5a8-c1f461bd61b4/provider-sql-network-interfaces-error-26-error-locating-serverinstance-specified?forum=sqlexpress[^] (Forum Thread)
http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx[^] (Blog post)


这篇关于创建数据库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆