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

  • Home
  • SEARCH
  • 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 9212445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:31:37+00:00 2026-06-18T01:31:37+00:00

When ever I try to execute the following I get Msg 195, Level 15,

  • 0

When ever I try to execute the following I get

Msg 195, Level 15, State 10, Line 1
‘dbname’ is not a recognized built-in function name.

USE Personnel
GO
SELECT has_perms_by_name(dbname(), 'OBJECT', 'SELECT') as Have_Select,
* from sys.tables;
GO

I’m not sure if dbname() should be got replaced or if its a syntax error.

  • 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-18T01:31:38+00:00Added an answer on June 18, 2026 at 1:31 am

    You probably want the following which I’ve confirmed works:

    USE Personnel
    GO
    SELECT has_perms_by_name(DB_NAME(), 'OBJECT', 'SELECT') as Have_Select, 
    * from sys.tables;
    GO
    

    And as per a comment it’s not case-sensitive, the problem was the missing underscore.

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

Sidebar

Related Questions

So when i try to run the following code i can never ever get
When ever I try to launch my eclipse I am getting the following exception
When ever I try to access the RecordCount property, I always get a return
When ever I try to execute a command to the shell via php's exec/passthru/system
when i try to start the rails server this error ever appears C:\Arthur\Ruby\Aplicações em
My first question ever, so I'll try to be as descriptive as possible. I
Ok this might get confusing cos I have not totally worked out how to
Did anyone ever try to create a jQuery LightBox-Like Popup (WPF UserControl) for displaying
I am getting the ever famous The _imaging C module is not installed error
I have the following function: private static function getFixedFare($FixedFareId) { $pdo = new SQL();

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.