Invalid Urn filter on server level SQL Server error

SQLLover21 201 Reputation points
2021-08-02T15:40:50.453+00:00

I am trying to alter permissions to some of my users using GUI. When I press Script Out or OK, I am receiving this error attached. Has anyone experienced this error and what did you to resolve this issue?

119899-error1.png

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,945 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,566 questions
0 comments No comments
{count} votes

Accepted answer
  1. YufeiShao-msft 7,066 Reputation points
    2021-08-03T07:21:13.993+00:00

    Hi @SQLLover21 ,

    According to my test, this error occurs when the computer name is inconsistent with the server name stored in the SQL server instance.

    SQL Server Setup sets the server name to the computer name during the installation, it seems the Hostname of the computer has been changed in your environment.

    To check this, you can use the following script:

    select host_name()  
    select @@servername  
    

    If the result is different, you can use the following script to change it:

    EXEC sp_dropserver '<old_name>';    
    GO    
    EXEC sp_addserver '<new_name>', local;    
    GO  
    

    After executing the above command, please restart the instance of SQL Server.

    See below for more information:
    https://learn.microsoft.com/en-us/sql/database-engine/install-windows/rename-a-computer-that-hosts-a-stand-alone-instance-of-sql-server?view=sql-server-ver15

    3 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful