简体   繁体   English

经典ASP Microsoft SQL Server本机客户端11.0错误'80040e14'用户登录失败,但不是我指定的用户登录

[英]Classic ASP Microsoft SQL Server Native Client 11.0 error '80040e14' Login failed for user, but not the one I specified

Getting a very odd error that I can't seem to track down. 收到一个我似乎无法追踪的非常奇怪的错误。 Running Classic ASP on IIS10. 在IIS10上运行经典ASP。 I'm specifying a user in my connection string, but the application seems to be "defaulting" to another user. 我在连接字符串中指定了一个用户,但是该应用程序似乎在“默认”另一个用户。 I can't figure out where this user is being specified. 我不知道指定该用户的位置。

set conn = Server.CreateObject("ADODB.Connection")
connectionString = "Provider=SQLNCLI11;Data Source=serverxy;Initial Catalog=hazard;USER Id=xxxxx;PASSWORD=yyyyy;"
conn.Open connectionString
...do sql queries, etc...

This happens on both my production server, development server and my development desktop machine. 这在我的生产服务器,开发服务器和开发台式机上都发生。

SQL Profiler helped me figure out how to fix the problem. SQL Profiler帮助我弄清楚了如何解决该问题。 It showed that the user I was specifying was actually working. 它表明我指定的用户实际上正在工作。 There was a view calling a query on another server. 有一个视图在另一台服务器上调用查询。 The database on this server was actually offline and had been moved. 该服务器上的数据库实际上处于脱机状态,并且已被移动。 I updated the view to use the new server and all worked after. 我更新了视图以使用新服务器,并且所有工作均已完成。 Completely forgot about Profiler as it's been ages since I've had to use it. 自从我不得不使用Profiler以来,它已经完全忘记了它。

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

相关问题 ODB错误80040e14 ASP CLASSIC - ODB ERROR 80040e14 ASP CLASSIC SQL Server的Microsoft OLE DB提供程序错误'80040e14'无效的列名。 SQL查询 - Microsoft OLE DB Provider for SQL Server error '80040e14' Invalid column name . SQL query 如何解决此ASP错误“ 80040e14”? - How can I solve this ASP error '80040e14'? SQL Server错误'80040e14'列名不明确 - SQL Server error '80040e14' Ambiguous column name 迁移问题:ASP经典应用程序中的错误“ 80040e14”从Windows Server 2003 / SQL Server 2000迁移到Windows Server 2008 R2 / SQL Server 2012 - Migration Issue: error '80040e14' in ASP classic application from Windows server 2003/SQL Server 2000 to Windows Server 2008 R2/SQL Server 2012 具有多个Insert语句的SQL Compact错误80040E14 - SQL Compact Error 80040E14 with multiple Insert statement SQL Server错误“ 80040e14”,语法错误在“ ORDER”附近 - SQL Server error '80040e14' with syntax error nearby “ORDER” 尝试从 SQL Server 检索数据时出现 VBA ADODB 错误 (80040e14) - VBA ADODB error (80040e14) when trying to retrieve data from SQL Server SQL Server在ASP经典版[Microsoft]中执行SQL存储过程时出错[SQL Server Native Client 11.0] [SQL Server]错误 - SQL Server Error executing SQL stored procedure in ASP classic [Microsoft][SQL Server Native Client 11.0][SQL Server] Error 错误= [Microsoft] [SQL Server本机客户端11.0] - Error = [Microsoft][SQL Server Native Client 11.0]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM