游戏客户端创建大联盟报错:[LUA-print] onSubOperateFailure 1 由于数据库操作异常,请稍后重试!解决

LUA-print onSubOperateFailure 1 由于数据库操作异常,请稍后重试!

断点调试发现链接服务器有问题器

升级原链接服务器脚本为sql server 17版本,再执行,问题解决

sql 复制代码
USE [master]
GO

-- 删除旧链接服务器
IF EXISTS (SELECT 1 FROM sys.servers WHERE name = N'WHQJPlatformDBLink')
    EXEC sp_dropserver N'WHQJPlatformDBLink', 'droplogins'
GO

-- 创建链接服务器(新版驱动 + 加密)
EXEC master.dbo.sp_addlinkedserver
    @server     = N'WHQJPlatformDBLink',
    @srvproduct = N'',
    @provider   = N'MSOLEDBSQL',
    @datasrc    = N'127.0.0.1',   -- ⚠️ 不要使用 (LOCAL)
    @catalog    = N'WHQJPlatformDB',
    @provstr    = N'Encrypt=yes;TrustServerCertificate=yes;'
GO

-- 登录映射(使用当前登录上下文)
EXEC master.dbo.sp_addlinkedsrvlogin
    @rmtsrvname = N'WHQJPlatformDBLink',
    @useself    = N'True'
GO

-- 服务器选项(保持原配置)
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'collation compatible', 'true'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'data access', 'true'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'dist', 'false'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'pub', 'false'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'rpc', 'true'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'rpc out', 'true'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'sub', 'false'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'connect timeout', '0'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'collation name', NULL
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'lazy schema validation', 'false'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'query timeout', '0'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'use remote collation', 'true'
EXEC master.dbo.sp_serveroption N'WHQJPlatformDBLink', 'remote proc transaction promotion', 'true'
GO

重新创建

创建成功

相关推荐
liulilittle12 分钟前
认识麻将 —— 流水及对账
算法·游戏·lua·对账·流水·资金·玩法
赤生云电竞3 小时前
云游戏边缘节点部署选型:机房选址与网络拓扑优化实践
游戏
manduic2 天前
游戏手柄摇杆检测用 TMR 传感器替代电位器
游戏
开开心心就好2 天前
电脑禁止自动休眠工具,还能按负载定时
算法·智能手机·pdf·电脑·word·音视频·lua
钱栈up2 天前
微软商店把《我的世界》国区从 89 涨到 110.99:一个「小调价」里的平台定价权博弈
游戏·microsoft·raft
apcipot_rain3 天前
某游戏公司C++游开实习 机试复盘
c++·游戏
一只大鸽子4 天前
游戏开发笔记11-Godot RPG游戏基础-优化-四方向攻击
笔记·游戏·godot
康同学游戏坊5 天前
独立游戏周报|装备和技能模块推进,一边测试一边修Bug
游戏·bug