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

Developer technologies Transact-SQL
SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. YufeiShao-msft 7,146 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

    4 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.