gpt4 book ai didi

sql - 使用 sp_help 的表结构

转载 作者:行者123 更新时间:2023-12-02 23:36:06 25 4
gpt4 key购买 nike

当我尝试这个查询时:

sp_help '[OG_System].[dbo].[tbl_act]'

出现此消息:

Msg 15250, Level 16, State 1, Procedure sp_help, Line 48
The database name component of the object qualifier must be the name of the current database.

最佳答案

因为您的目标数据库与当前数据库不同。

使用;

EXEC [ServerName].[DatabaseName].dbo.sp_help 'tbl_act'

关于sql - 使用 sp_help 的表结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29466815/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com