views:

152

answers:

3

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
+1  A: 

Have you tried 'exec sp_helptable [table_name]'?

appr
exec sp_help [table_name]? or exec sp_helptable [table_name]?Well, I tried both, and none worked...
tim_wonil
+1  A: 

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.

If you have to use Linux, try SQuirreL instead which is a vey nice tool

gbn
Maybe I should go with SQuirreL. I only recently moved to linux for my dev environment, and was just getting comfortable with Oracle SQL Develper.
tim_wonil
+3  A: 

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

Select * from information_schema.columns where table_name = 'City'

Conrad Frix
Oooh, that's pretty neat. Thanks for the tip.
tim_wonil