Manipulate Advertisements - DML Operations on Dataset For LOB Columns Through Oracle Provider for OLEDB
text and image already exists for the selected product then advertisement text and image is displayed as shown in figure 1.2
To insert/update an advertisement for a product selected from the list,
the user can enter the value of Advertisement text.
Figure 1.3 Screen Shot displaying File Dialog Box For Image The selected image appears in the 'New Ad Image' picture box as shown
in figure 1.4 . The user can commit
Figure 1.4 Screen Shot After Selecting Image From File Dialog Box The user can click on 'Close' button to exit from the application.
2. Oracle8i Database or later running SQL*Net TCP/IP listener (can be downloaded here ) 3. Oracle Provider for OLE DB
(can be downloaded here)
in the creation of 'DSwithLOB' directory. Refer Description of Sample Files section for more details.
SQL prompt SQL> @<your directory structure>\DSwithLOB\setup\DatabaseSetup.sql This creates a user "OraNet"
with password "OraNet". All the database objects required by the application
Following is the list of database objects that get created by running DatabaseSetup.sql file.
2. Open DSwithLOB.sln using Visual Studio .NET from <your-directory-structure>\DSwithLOB\src folder. 3. Edit ConnectionParams.cs file to change the database connection parameters
i.e. TNSName for database 4. Ensure that the following .NET Component References have been added
to DSwithLOB project:
To add the above .NET Components
5. Build and run the sample.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Please enter your comments about this sample in the OTN Sample Code Discussion Forum. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||