17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5: <strong>FILESTREAM</strong> with ASP.NET and SilverlightClick OK to return to the parent window, and click OK again to save the changes andreturn to the IIS Manager. After completing this step, our application is now configuredto run under the identity <strong>of</strong> NetworkService.<strong>The</strong> next step is to make sure that the Network Service account has permissions to accessour database. If it does not have access to the <strong>SQL</strong> <strong>Server</strong> instance, we need to create anew login with the required permissions. We can do this using SSMS, by right-clicking onLogins in the <strong>SQL</strong> <strong>Server</strong> instance tree and selecting New Login (Figure 5-19).Figure 5-17:Creating a new login for the Network Service account.<strong>The</strong> New Login dialog box is displayed. In Login name, select the fully qualified name<strong>of</strong> the Network Service account. <strong>The</strong> easiest way could be to use the Search button andselect the account from the search results (Figure 5-18). This assumes that the <strong>SQL</strong> <strong>Server</strong>is running on the same machine as the IIS app pool. If not, the web server's machineaccount needs to be given permissions.186

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!