May 15, 2013 at 10:48 am
Hello - What's the easiest way to identify the last modified datetime of a stored procedure through SSMS?
May 15, 2013 at 10:54 am
select *
from sys.objects
where object_id = object_id('YourProcNameHere')
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
May 15, 2013 at 11:42 am
SSCrazy - Any reason why you wouldn't query sys.objects on object name instead of object id? Seems like a simpler approach?
I originally queried sys.objects for the info but I think the info was not returned because I don't have sa permissions for the database.
Based on some googling, it appears that when non-sa's execute this query they may get a subset of data which can be misleading....
May 15, 2013 at 12:24 pm
sqlguy-736318 (5/15/2013)
SSCrazy - Any reason why you wouldn't query sys.objects on object name instead of object id? Seems like a simpler approach?I originally queried sys.objects for the info but I think the info was not returned because I don't have sa permissions for the database.
Based on some googling, it appears that when non-sa's execute this query they may get a subset of data which can be misleading....
Good point about using the object name. 😉 Just habit from querying many of the dmvs.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply