SQL Server ->> Msg 7411, Level 16, State 1, Line 1 -- Server 'XXXX' is not configured for RPC.

关于问题,有两个相关的服务器选项。

  exec sp_serveroption @server=‘CIA-SH-SVR-SIS‘, @optname=‘rpc‘, @optvalue=‘true‘
  exec sp_serveroption @server=‘CIA-SH-SVR-SIS‘, @optname=‘rpc out‘, @optvalue=‘true‘  

通常我们从linked server上取数据有两种办法。第一种是用完全路径访问,即SELECT * FROM [Server].[Database].sys.objects。另一种则是用EXEC(<cmd>) AT linked_server。

第一种办法好像是不受上面两个RPC选项的影响,至少我把它们都设置成false也照样可以从linked server上select数据。而第二种则需要把rpc out设置为true,我试过在rpc为false的情况下照样可以用第二种方法返回数据。测试环境:Microsoft SQL Server 2012 (X64) Enterprise Edition。

SQL Server ->> Msg 7411, Level 16, State 1, Line 1 -- Server 'XXXX' is not configured for RPC.

时间: 2024-12-21 21:46:13

SQL Server ->> Msg 7411, Level 16, State 1, Line 1 -- Server 'XXXX' is not configured for RPC.的相关文章

Sybase ASE报错:server Error: 8242, Severity: 16, State: 1

昨天上午,同事反映某系统在执行存储过程的过程中报错了,报错的信息异常如下: 05:00000:00009:2014/06/09 15:45:30.34 server Error: 8242, Severity: 16, State: 1 05:00000:00009:2014/06/09 15:45:30.34 server The table 'USER_FILES' in database 'PRODB' is bound to metadata cache memory. Unbind t

delphi连接sql server的字符串2011-10-11 16:07

delphi连接sql server的字符串2011-10-11 16:07 一.delphi连接sql server 放一个连接组件 ADOConnection, 其它组件TADODataSet,TADOQuery等的connection指向ADOConnection就可以了. 你可以双击ADOConnection,使用它的向导.也可以使用下面的代码 function OpenADOConn:boolean; begin result:=false; try with ADOConnectio

教你发布Silverlight Bussiness Application(SQL Server 登录,局域网访问,以及使用ArcGIS Server服务需要注意的问题)

原文:教你发布Silverlight Bussiness Application(SQL Server 登录,局域网访问,以及使用ArcGIS Server服务需要注意的问题) 之前发布过Silverlight应用程序,当时也没有你遇到什么阻碍,直接使用的Visual Studio 2010的Publish功能,貌似也没有作什么设置.后来重装系统,也就都没有了,这两天帮一个大哥做了一些小例子,顺便整合了一下.于是闲来无聊遍想发布一下,结果费了老大周折才弄好,于是再次好好记录一下,以便下次查阅.

MySql 执行语句错误 Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

关于用Power Designer 生成sql文件出现 错误  [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int not null auto_increment comment '用户id', 的解决办法 sql语句如下 1 drop table

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#39;?,?,?,?)&#39;

使用?占位符写MYSQL查询语句,执行报错 1 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?,?,?,?)' at line 1 2 at sun.ref

MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ...

下面是我update数据库时打印出来的异常: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nea

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

1.错误描述 org.hibernate.exception.SQLGrammarException: error executing work at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:80) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(

插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

插入一个很简单的sql语句时候,mysql一直报错: [SQL] INSERT INTO ORDER ( id, activity_id, order_type, phone, order_amount, order_state, pay_type)VALUES ( '4', '2121313', '1', '13552444989', '1', '1', '1' ) [Err] 1064 - You have an error in your SQL syntax; check the man

解决You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#39;order (order_name, customer)

在学习hibernate一对多映射关系时,根据视频学习的时候,例子是顾客和订单的问题,一个顾客有多个订单.按照视频中的敲代码出现了You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order (order_name, customer) 原因是order是mysql关键字,不能做