Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

**My Problem**

The stored procedure [sys].[sp_MShelpcolumns] is missing in Azure SQL server.


**My Query**

1. Should we be creating this SP on the Azure SQL Server?
2. Or is it existing in another name or another location?
3. Or do we have am equivalent SP in Azure SQL Server?

Please give suggestion on this.

Thanks
Antoni

What I have tried:

Tried to execute the SP [sys].[sp_MShelpcolumns] in Azure sql server . I get below error message

g 2760, Level 16, State 1, Procedure sp_MShelpcolumns, Line 8
The specified schema name "sys" either does not exist or you do not have permission to use it.
Posted
Updated 13-Jun-18 11:57am
v2

1 solution

The equivalent in Azure is; sp_columns (Transact-SQL) | Microsoft Docs[^] OR sp_help (Transact-SQL) | Microsoft Docs[^] - the latter returns multiple result sets depending on what the object identified.
BUT the error you are receiving suggests that you do not have access to the sys schema - this can be confirmed by querying the schema directly using;
SQL
SELECT * FROM sys.tables
for instance.
NOTE: The stored procedure sp_MSHelpColumns is considered an undocumented stored procedure and should not be used to query the catalogs

Kind Regards
 
Share this answer
 
Comments
Maciej Los 14-Jun-18 5:46am    
5ed!
an0ther1 14-Jun-18 17:20pm    
Thanks Maciej!
P.Gnanaraj 15-Jun-18 1:13am    
Thanks . It helps a lot.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900