简体   繁体   English

当使用Oracle SQL Developer作为我的客户端时,如何为SQL Server调用sp_help [table]

[英]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'

Sorry to say this, but SQL Server won't care about the string it's sent in the batch so it's problem with the client or the driver. 很抱歉这样说,但SQL Server不关心它在批处理中发送的字符串,因此它与客户端或驱动程序有关。

If you have to use Linux, try SQuirreL instead which is a vey nice tool 如果你必须使用Linux,那么试试SQuirreL ,这是一个很好的工具

exec sp_help [db.schema.table]有效

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM