Database Reference
In-Depth Information
6. Build the project, and run the program by pressing Ctrl+F5. You should see
output similar to that in Figure 17-2. It shows the information for loading an
image into the database that you have on your computer at the specified
location, and it shows the size of each image.
Figure 17-2. Loading image data
7. To see the image you have inserted into the database, open SQL Server
Management Studio and run a SELECT query on the image table you have
created in the SQL2012Db database, which was created in Chapter 3 (see
Figure 17-3).
Figure 17-3. Viewing image data
How It Works
In LoadImages.cs , you do three major things other than creating and opening a connection.
You connect to SQL2012Db , the database that you created in Chapter 3.
 
Search WWH ::




Custom Search