Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:23:32+00:00 2026-06-09T22:23:32+00:00

I use the OBJECT_NAME’ function in conjunction with systems tables to return the names

  • 0

I use the “OBJECT_NAME’ function in conjunction with systems tables to return the names of objects given their object_id. Up until yesterday, this worked fine. When I use the same function now, I get a null value in the column that is supposed to return the object name. I tried reconnecting to the server and trying the function on different DBs, but I am getting the same results. Does anyone know why this would occur?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:23:33+00:00Added an answer on June 9, 2026 at 10:23 pm

    One possible problem is that you are in the wrong database. The “id” is database specific, so the real key is “, “.

    This is more obvious if you do OBJECT_ID(). If you pass in a three-part name, then it will resolve in any database you are in. If you pass in a one-part name, then it tries to resolve it in the current database. If not found, you get NULL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use this Tsql to select locked object in my database: select object_name(P.object_id) as
I use my_classalias = pyamf.register_class(mymodel, mymodel._meta.object_name) to make my django model into AMF serialized
I have an array called $results, when I use function: print_r($results); I get the
var Person = function(name, age){ return Object.create(Object.prototype, { name: { value: name | ,
I am trying to use the aspnet___regsql utility to install all the membership tables
i know there is a variable, function, or stored procedure that you can use
I want to list all the Stored Procedures which use overloading in a given
I have to use scanf() for accepting name of user in NSString object. If
I use object buffering to buffer the output of my php pages using ob_start('ob_gzhandler');
I tried to use object expression to extend the IDelegateEvent, but in fsi there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.