游戏客户端创建大联盟报错:[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

重新创建

创建成功

相关推荐
疯狂成瘾者2 小时前
海康 Artemis 接口对接
开发语言·lua
the3clipse7 小时前
视频编码技术如何赋能游戏性能优化:从硬件隔离到AI驱动的带宽革命
游戏·性能优化·音视频·视频编码·硬件加速·ai编码·自适应编码
一线灵9 小时前
跨平台游戏引擎 Axmol-2.11.5 发布
游戏引擎·lua
jeffsonfu11 小时前
生成对抗网络(GAN)原理:生成器与判别器的“猫鼠游戏”
人工智能·游戏·生成对抗网络
解决小子20 小时前
【游戏作品设计解析】类魂游戏设计解析
游戏·业界资讯·游戏策划·游戏设计
k4m7v2pz1 天前
用中文编程语言写游戏:玄铁语言生命游戏的 macOS 适配实录
游戏·macos·玄铁·生命游戏·中文编程语言·玄铁中文编程
JQweryuiop7 天前
中小型游戏陪练工作室数字化管理实践:基于七彩屋电竞护航小程序订单、履约与绩效系统的落地复盘
大数据·游戏·小程序·架构
乌萨达8 天前
低配电脑玩手游怎么设置?4GB、8GB内存与模拟器选择指南
游戏·电脑·安卓模拟器·雷电模拟器
liulilittle9 天前
麻将结算全链路语义(SETTLE_SEMANTICS)
ai·自动化·llm·mock·lua·测试
liulilittle9 天前
麻将服务器崩溃补偿与异常处理语义(CRASH_SEMANTICS)
ai·自动化·llm·mock·lua·测试·tools