简体   繁体   English

SQL Server不存在或访问被拒绝(对于以前有效的连接)

[英]SQL Server does not exist or access denied (For a connection that worked previously)

I apologize in advance for how vague this question is. 对于这个问题的含糊之处,我预先表示歉意。 I had a connection string to SQL Server 2012 on a remote server from my work laptop using Visual Studio 2015 and it worked well for connecting to my database to populate asp:dropdownlists etc. on my web app as well as generating reports using SSRS. 我使用Visual Studio 2015从工作笔记本电脑到远程服务器上的SQL Server 2012连接字符串,它可以很好地连接到数据库以在Web应用程序中填充asp:dropdownlists等,以及使用SSRS生成报告。

That was last week, today I'm getting the error indicated in the title of this post. 那是上周,今天我收到了帖子标题中指示的错误。 Below is my connection string minus the specific server name and ip address. 下面是我的连接字符串减去特定的服务器名称和IP地址。 Something changed between last Friday and today that this error is popping up. 从上周五到今天,此错误弹出。

Provider=SQLOLEDB.1;Data Source=[Server Name];Initial Catalog=[Database Name];Network Address=[Server IP Address] 提供程序= SQLOLEDB.1;数据源= [服务器名称];初始目录= [数据库名称];网络地址= [服务器IP地址]

I admittedly am at a loss as to how to troubleshoot this. 我当然不知道如何解决此问题。 I would endlessly appreciate a few leads as to what I can check out, whether there is some sort of log that tracks failed log ins, or some other means of finding out the source of the problem, or what changed. 对于我可以检查的内容,是否有某种日志可以跟踪失败的登录,是否有其他方法来找出问题的根源或发生了什么变化,我将无休止地感谢一些线索。

Thank you so much in advance for helping a brand new programmer. 在此先非常感谢您帮助全新的程序员。

The problem could be any of the above problems, or a SQL Server configuration issue, or a network problem, or a permissions issue. 该问题可能是以上任何问题,或者是SQL Server配置问题,或者是网络问题,或者是权限问题。 The first thing I usually try is connecting with SQL Server Management Studio with the same settings. 我通常尝试的第一件事是使用相同的设置连接到SQL Server Management Studio。 This will give a much more detailed message with specifics of what is failing. 这将给出更详细的信息,详细说明失败的原因。 In short, all of the numbers in the error message are important and help pinpoint the real problem. 简而言之,错误消息中的所有数字都很重要,有助于查明实际问题。 You can also use https://msdn.microsoft.com/en-us/library/mt750266.aspx for some other techniques to diagnose/repair the issue. 您还可以将https://msdn.microsoft.com/zh-cn/library/mt750266.aspx用于其他一些诊断/修复问题的技术。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM