Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

I don't seem to be able to make a sp_help [table_name] call. Previously, I found it quite useful when I was on a Windows environment using SQL Server management, and could make that call.

Is there any way to do this?

[edit] error message returned is the following:

Error starting at line 1 in command:
sp_help city
Error report:
Unknown Command
like image 847
tim_wonil Avatar asked Jul 04 '26 17:07

tim_wonil


1 Answers

Have you considered using the information_schema views instead. E.g.

Select *
from information_schema.columns
where table_name = 'City'
like image 83
Conrad Frix Avatar answered Jul 06 '26 06:07

Conrad Frix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!