﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / General / SQL Server 7,2000  / object_name(id) returning Null / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 20 May 2013 01:39:52 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: object_name(id) returning Null</title><link>http://www.sqlservercentral.com/Forums/Topic487988-9-1.aspx</link><description>Ah! The 'null' records are just the totals! It's all fine... :)</description><pubDate>Mon, 21 Apr 2008 10:16:03 GMT</pubDate><dc:creator>RyanRandall</dc:creator></item><item><title>RE: object_name(id) returning Null</title><link>http://www.sqlservercentral.com/Forums/Topic487988-9-1.aspx</link><description>OK, seems to be a side effect of using 'GROUP BY id with rollup'   When I drop the rollup all the objects are found. odd???SET NOCOUNT ONselect id, cast(object_name(id) as varchar(50)) AS name, sum(CASE WHEN indid&amp;lt;2 THEN rows END) AS rows,sum(reserved)*8 AS reserved, sum(dpages)*8 AS data, sum(used-dpages)*8 AS index_size, sum(reserved-used)*8 AS unusedfrom dbo.sysindexes with (nolock) where indid in(0,1,255) and id&amp;gt;100 GROUP BY id with rollupORDER BY sum(reserved)*8 desc</description><pubDate>Mon, 21 Apr 2008 09:52:41 GMT</pubDate><dc:creator>Mike-292078</dc:creator></item><item><title>RE: object_name(id) returning Null</title><link>http://www.sqlservercentral.com/Forums/Topic487988-9-1.aspx</link><description>That doesn't sound right, I'm logged as the Administrator.</description><pubDate>Mon, 21 Apr 2008 09:40:00 GMT</pubDate><dc:creator>Mike-292078</dc:creator></item><item><title>RE: object_name(id) returning Null</title><link>http://www.sqlservercentral.com/Forums/Topic487988-9-1.aspx</link><description>Could it all be permissions related?BOL ([url]http://technet.microsoft.com/en-us/library/ms186301.aspx[/url])..."built-in functions such as OBJECT_NAME may return NULL if the user does not have any permission on the object"</description><pubDate>Mon, 21 Apr 2008 09:00:49 GMT</pubDate><dc:creator>RyanRandall</dc:creator></item><item><title>object_name(id) returning Null</title><link>http://www.sqlservercentral.com/Forums/Topic487988-9-1.aspx</link><description>HI:I'm doing some analysis trying to figure out what's making my database so big.  I'm querying the sysindexes and I'm finding something very off.There are rows in the table where id is null and there are rows where object_name(id) is returning null.  There appears to be a lot of data in these.Any idea what these object are?Thanks-Mike</description><pubDate>Mon, 21 Apr 2008 08:08:53 GMT</pubDate><dc:creator>Mike-292078</dc:creator></item></channel></rss>