[英]How to call sp_help [table] for SQL Server when using Oracle SQL Developer as my client
I am using Oracle SQL Developer in a linux environment to connect to an SQL Server 2005. 我在Linux环境中使用Oracle SQL Developer连接到SQL Server 2005。
I don't seem to be able to make a sp_help [table_name] call. 我似乎无法进行sp_help [table_name]调用。 Previously, I found it quite useful when I was on a Windows environment using SQL Server management, and could make that call.
以前,我发现在使用SQL Server管理的Windows环境中它非常有用,并且可以进行该调用。
Is there any way to do this? 有没有办法做到这一点?
[edit] error message returned is the following: [edit]返回的错误信息如下:
Error starting at line 1 in command:
sp_help city
Error report:
Unknown Command
Have you considered using the information_schema views instead. 您是否考虑过使用information_schema视图。 Eg
例如
Select *
from information_schema.columns
where table_name = 'City'
你试过exec sp_helptable [table_name]
吗?
这工作: exec sp_helptable 'table_name'
exec sp_help [db.schema.table]
有效
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.