syscomments equivalent in SQL Azure
Is there an equivalent table or view in SQL Azure for syscomments?  I use syscomments all the time to find references and dependencies to stored procedures and views, and I just realized there is no syscomments object
February 17th, 2011 7:49pm

Today, no. However, from a dependencies point of view, the SQL Server documentation actually states that sys.sql_dependencies will be removed from a future version. The recommended procedure is sys.sql_expression_dependencies which works both in SQL Server and SQL Azure.

Free Windows Admin Tool Kit Click here and download it now
February 17th, 2011 8:35pm

I know this was a 4 year old post, but I had to modify my stored procedure generator to work on Azure SQL and the item that worked for me is:

sys.all_sql_modules and there is also sys.sql_modules.

this is closer to SysComments as the only other change I had to make was querying of the field object_id instead of id.

Just thought I would add this in case anyone else finds this since this is the top search result now for SysComments on Azure SQL.



March 20th, 2015 2:49pm

I know this was a 4 year old post, but I had to modify my stored procedure generator to work on Azure SQL and the item that worked for me is:

sys.all_sql_modules and there is also sys.sql_modules.

this is closer to SysComments as the only other change I had to make was querying of the field object_id instead of id.

Just thought I would add this in case anyone else finds this since this is the top search result now for SysComments on Azure SQL.



Free Windows Admin Tool Kit Click here and download it now
March 20th, 2015 2:50pm

I know this was a 4 year old post, but I had to modify my stored procedure generator to work on Azure SQL and the item that worked for me is:

sys.all_sql_modules and there is also sys.sql_modules.

this is closer to SysComments as the only other change I had to make was querying of the field object_id instead of id.

Just thought I would add this in case anyone else finds this since this is the top search result now for SysComments on Azure SQL.



March 20th, 2015 6:48pm

I know this was a 4 year old post, but I had to modify my stored procedure generator to work on Azure SQL and the item that worked for me is:

sys.all_sql_modules and there is also sys.sql_modules.

this is closer to SysComments as the only other change I had to make was querying of the field object_id instead of id.

Just thought I would add this in case anyone else finds this since this is the top search result now for SysComments on Azure SQL.



Free Windows Admin Tool Kit Click here and download it now
March 20th, 2015 6:48pm

I know this was a 4 year old post, but I had to modify my stored procedure generator to work on Azure SQL and the item that worked for me is:

sys.all_sql_modules and there is also sys.sql_modules.

this is closer to SysComments as the only other change I had to make was querying of the field object_id instead of id.

Just thought I would add this in case anyone else finds this since this is the top search result now for SysComments on Azure SQL.



March 20th, 2015 6:48pm

I know this was a 4 year old post, but I had to modify my stored procedure generator to work on Azure SQL and the item that worked for me is:

sys.all_sql_modules and there is also sys.sql_modules.

this is closer to SysComments as the only other change I had to make was querying of the field object_id instead of id.

Just thought I would add this in case anyone else finds this since this is the top search result now for SysComments on Azure SQL.



Free Windows Admin Tool Kit Click here and download it now
March 20th, 2015 6:48pm

I am glad I commented on this, every time I needed now Google knows just where to find it.
May 27th, 2015 3:14pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics