Cannot add Network Service as User/Login












1















I want to setup ProGet on a 2016 server with SQL Express and IIS.



Both the service and IIS web runs under the Network Service user. None seem to be able to access the Database on a local SQL Express instance.



The IIS website tells me that the login WORKGROUPPACKAGE$ (where PACKAGE is the servers name) cannot access the database:



Cannot open database "ProGet" requested by the login. The login failed. Login failed for user 'WORKGROUPPACKAGE$'.



I understand that I need to add the Network Service (which IIS uses to actually authenticate with SQL Express) as a login/user to the database.



Existing Logins/Users



When I tried adding the NT-AuthorityNetwork Service as a login/user to the database, I get an error that tells me that Windows cannot find any authentication for the Network Service.



Cannot find user or group PACKAGENetzwerkdienst



How can this be? Why can't SQL Express find the Network Service?










share|improve this question
















bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1















    I want to setup ProGet on a 2016 server with SQL Express and IIS.



    Both the service and IIS web runs under the Network Service user. None seem to be able to access the Database on a local SQL Express instance.



    The IIS website tells me that the login WORKGROUPPACKAGE$ (where PACKAGE is the servers name) cannot access the database:



    Cannot open database "ProGet" requested by the login. The login failed. Login failed for user 'WORKGROUPPACKAGE$'.



    I understand that I need to add the Network Service (which IIS uses to actually authenticate with SQL Express) as a login/user to the database.



    Existing Logins/Users



    When I tried adding the NT-AuthorityNetwork Service as a login/user to the database, I get an error that tells me that Windows cannot find any authentication for the Network Service.



    Cannot find user or group PACKAGENetzwerkdienst



    How can this be? Why can't SQL Express find the Network Service?










    share|improve this question
















    bumped to the homepage by Community 8 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I want to setup ProGet on a 2016 server with SQL Express and IIS.



      Both the service and IIS web runs under the Network Service user. None seem to be able to access the Database on a local SQL Express instance.



      The IIS website tells me that the login WORKGROUPPACKAGE$ (where PACKAGE is the servers name) cannot access the database:



      Cannot open database "ProGet" requested by the login. The login failed. Login failed for user 'WORKGROUPPACKAGE$'.



      I understand that I need to add the Network Service (which IIS uses to actually authenticate with SQL Express) as a login/user to the database.



      Existing Logins/Users



      When I tried adding the NT-AuthorityNetwork Service as a login/user to the database, I get an error that tells me that Windows cannot find any authentication for the Network Service.



      Cannot find user or group PACKAGENetzwerkdienst



      How can this be? Why can't SQL Express find the Network Service?










      share|improve this question
















      I want to setup ProGet on a 2016 server with SQL Express and IIS.



      Both the service and IIS web runs under the Network Service user. None seem to be able to access the Database on a local SQL Express instance.



      The IIS website tells me that the login WORKGROUPPACKAGE$ (where PACKAGE is the servers name) cannot access the database:



      Cannot open database "ProGet" requested by the login. The login failed. Login failed for user 'WORKGROUPPACKAGE$'.



      I understand that I need to add the Network Service (which IIS uses to actually authenticate with SQL Express) as a login/user to the database.



      Existing Logins/Users



      When I tried adding the NT-AuthorityNetwork Service as a login/user to the database, I get an error that tells me that Windows cannot find any authentication for the Network Service.



      Cannot find user or group PACKAGENetzwerkdienst



      How can this be? Why can't SQL Express find the Network Service?







      sql-server-2016 authentication logins windows-server-2016






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 4 '18 at 5:58







      Florian Peschka

















      asked Sep 3 '18 at 18:34









      Florian PeschkaFlorian Peschka

      150110




      150110





      bumped to the homepage by Community 8 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 8 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          It can be a bit misleading, when working with the German version of SQL Server and/or a Windows Client/Server OS.



          When you select the <HOSTNAME>Network Service from the Active Directory pop-up in the SQL Server Login dialog, then SQL Server automatically displays the login (when closing all the dialogues with OK) as:



           <HOSTNAME>Network Service


          This is actually wrong.



          German Solution



          If you enter the following German string then it will resolve correctly:



          NT-AutoritätNetzwerkdienst


          English Solution



          If you were to use an English Windows / SQL Serer installation then you would have to enter:



          NT-AuthorityNetworkService


          If you click on OK, then the SQL Server Login will be created.



          SQL Server Logins displaying NT-AutoritätNetzwerkdienst Account






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "182"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f216599%2fcannot-add-network-service-as-user-login%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            It can be a bit misleading, when working with the German version of SQL Server and/or a Windows Client/Server OS.



            When you select the <HOSTNAME>Network Service from the Active Directory pop-up in the SQL Server Login dialog, then SQL Server automatically displays the login (when closing all the dialogues with OK) as:



             <HOSTNAME>Network Service


            This is actually wrong.



            German Solution



            If you enter the following German string then it will resolve correctly:



            NT-AutoritätNetzwerkdienst


            English Solution



            If you were to use an English Windows / SQL Serer installation then you would have to enter:



            NT-AuthorityNetworkService


            If you click on OK, then the SQL Server Login will be created.



            SQL Server Logins displaying NT-AutoritätNetzwerkdienst Account






            share|improve this answer




























              0














              It can be a bit misleading, when working with the German version of SQL Server and/or a Windows Client/Server OS.



              When you select the <HOSTNAME>Network Service from the Active Directory pop-up in the SQL Server Login dialog, then SQL Server automatically displays the login (when closing all the dialogues with OK) as:



               <HOSTNAME>Network Service


              This is actually wrong.



              German Solution



              If you enter the following German string then it will resolve correctly:



              NT-AutoritätNetzwerkdienst


              English Solution



              If you were to use an English Windows / SQL Serer installation then you would have to enter:



              NT-AuthorityNetworkService


              If you click on OK, then the SQL Server Login will be created.



              SQL Server Logins displaying NT-AutoritätNetzwerkdienst Account






              share|improve this answer


























                0












                0








                0







                It can be a bit misleading, when working with the German version of SQL Server and/or a Windows Client/Server OS.



                When you select the <HOSTNAME>Network Service from the Active Directory pop-up in the SQL Server Login dialog, then SQL Server automatically displays the login (when closing all the dialogues with OK) as:



                 <HOSTNAME>Network Service


                This is actually wrong.



                German Solution



                If you enter the following German string then it will resolve correctly:



                NT-AutoritätNetzwerkdienst


                English Solution



                If you were to use an English Windows / SQL Serer installation then you would have to enter:



                NT-AuthorityNetworkService


                If you click on OK, then the SQL Server Login will be created.



                SQL Server Logins displaying NT-AutoritätNetzwerkdienst Account






                share|improve this answer













                It can be a bit misleading, when working with the German version of SQL Server and/or a Windows Client/Server OS.



                When you select the <HOSTNAME>Network Service from the Active Directory pop-up in the SQL Server Login dialog, then SQL Server automatically displays the login (when closing all the dialogues with OK) as:



                 <HOSTNAME>Network Service


                This is actually wrong.



                German Solution



                If you enter the following German string then it will resolve correctly:



                NT-AutoritätNetzwerkdienst


                English Solution



                If you were to use an English Windows / SQL Serer installation then you would have to enter:



                NT-AuthorityNetworkService


                If you click on OK, then the SQL Server Login will be created.



                SQL Server Logins displaying NT-AutoritätNetzwerkdienst Account







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 11 '18 at 12:08









                hot2usehot2use

                8,37652056




                8,37652056






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Database Administrators Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f216599%2fcannot-add-network-service-as-user-login%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    ف. موراي أبراهام

                    صرب

                    كأس إنترتوتو