|Problem||I'm doing a SQL Server CREATE ENDPOINT lab. I have stopped the IIS Admin service, as recommended in the documentation. I am connected to SQL Server as a Local Admin user (with full SA rights). But still the CREATE ENDPOINT statement was failing:|
CREATE ENDPOINT GetEngineeringList
STATE = STARTED
AS HTTP (
SITE = 'localhost' ,
PATH = '/sql/employees' ,
FOR SOAP (
name = 'AdventureWorks.dbo.GetEngineeringEmployees' ,
WSDL= DEFAULT ,
DATABASE = 'AdventureWorks' ,
|Explanation||Contrary to logic, the CREATE ENDPOINT statement does not run with the rights of the issuing user. It runs with the rights of the SQL Server service account. That account doesn't have rights to the PATH I specified.|
|Solution||Reserve the PATH using this command:|
EXECUTE sp_reserve_http_namespace N 'http://localhost:80/sql/employees'
Other related posts:
Geek Post Monthly Newsletter Volume 2 Issue 6
Exam 70-300 Objective 3
COALESCE T-SQL Function
Add a comment
Please note: comments that are inappropriate or promotional in nature will be deleted.
E-mail addresses are not displayed, but you must enter a valid e-mail address to confirm your comments.
Are you a registered Geekzone user? Login to have the fields below automatically filled in for you and to enable links in comments. If you have (or qualify to have) a Geekzone Blog then your comment will be automatically confirmed and shown in this blog post.