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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5: <strong>FILESTREAM</strong> with ASP.NET and Silverlight<strong>The</strong> code we wrote in the Click event <strong>of</strong> the Save button will insert a row into theItems table along with the <strong>FILESTREAM</strong> data. Verify that the information is correctlysaved in the database by running SELECT * FROM Items in SSMS. If everything is set upcorrectly, you will see that the data you entered in the web page shows up in the SSMSresult window.Lab 5: Deploying and Configuring a <strong>FILESTREAM</strong>Web Application on IISIn Lab 4, we created, ran, and tested a web application, all within Visual Studio. Bydefault, when you run a web application from Visual Studio it runs on a built-in webserver, which is designed for debugging and testing web applications in a developmentenvironment.In a production environment, we usually configure our web application on more robustweb servers, such as Micros<strong>of</strong>t IIS. Configuring and running a web application that dealswith <strong>FILESTREAM</strong> data on IIS needs some careful attention.In this lab, we will see how to deploy the web application we created in Lab 4 on IIS 7.0.<strong>The</strong>re are different ways <strong>of</strong> deploying a web application on a web server; we will use theinbuilt functionality provided by Visual Studio to keep the process simple.To do this, we will:• run Visual Studio under an administrator account• publish the web application to a new virtual directory on local IIS• configure security for <strong>FILESTREAM</strong> access• run and test the application.176

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

Saved successfully!

Ooh no, something went wrong!