[英]How to call sp_help [table] for SQL Server when using Oracle SQL Developer as my client
我在Linux環境中使用Oracle SQL Developer連接到SQL Server 2005。
我似乎無法進行sp_help [table_name]調用。 以前,我發現在使用SQL Server管理的Windows環境中它非常有用,並且可以進行該調用。
有沒有辦法做到這一點?
[edit]返回的錯誤信息如下:
Error starting at line 1 in command:
sp_help city
Error report:
Unknown Command
您是否考慮過使用information_schema視圖。 例如
Select *
from information_schema.columns
where table_name = 'City'
你試過exec sp_helptable [table_name]
嗎?
這工作: exec sp_helptable 'table_name'
很抱歉這樣說,但SQL Server不關心它在批處理中發送的字符串,因此它與客戶端或驅動程序有關。
如果你必須使用Linux,那么試試SQuirreL ,這是一個很好的工具
exec sp_help [db.schema.table]
有效
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.