Вы находитесь на странице: 1из 17

Main Steps

• Restore the Database


• Change the Web.Config file for Connection String Settings
• Go To IIS
• Create a virtual directory
• Browse the application

1. Restore the data base


a. Copy the JobsOnline.Bak file from the the folder “Database” present in
the folder “CodeForInstallation” to a folder “JobsOnlineDatabase” in
the Hard Drive.
b. Go To SQL Server from Start->Programs->Microsoft SQL Server ->
Enterprise Manager
c. Right Click on Databases, Go To AllTasks->Restore Database
d. Write the name of the Database as JobsOnline in the textbox “Restore
as Database”
Click the FromDevice radio button and press Select Devices
e. A “Choose Restore Devices” window will appear. Click Add Button in
that window
f. It will open the Window “Choose Restore Destination”. Press the …
button in this window as shown in the screen shot.

g. This will open the following window in which you have to browse and
select the “JobsOnline.Bak” from the path where you saved it in the
Hard Drive

h. Click OK in the screenshot mentioned above, wait when you reach the
first window (Restore Database) which was opened.
i. Go to the Options Tab mentioned in the screen shot below:
j. After Clicking on the Options Tab the following window will appear,
please change the path before \JobsOnline.mdf to the path where
“JobsOnline.bak” file is present. Do the same for the second path also
in the window. See the screen shot for details.
k. Go back to General Tab as mentioned in the screen shot below.

l. The following Dialog Box will appear if the Database is Restored


successfully.

m. Press Ok on the Dialog Box mentioned above and Go To Databases


and check JobsOnline database should be there.
n. After the Database is restored and checked we need to Create a new User
“JobsOnlineLogin” in the SQL 2000 server as our Application uses
this user to connect to the JobsOnline Database.

Open SQL Server 2000-> Enterprise Manager and drill down to


Security->Logins as mentioned in the screen shot.
Right Click on Logins and select NewLogin…
o. The following screen will appear
• Enter the Name as JobsOnlineLogin
• Select the SQL Server Authentication and enter the password
as Jobsonlinelogin
• Select the Database as JobsOnline
p. Go To the DataAccess Tab in the same dialog box and
• Select the Permit check box for JobsOnline database
• Select public and db_owner checkbox in the Database roles
section
• Press OK

q. The Confirm Password Dialog box will appear please enter the password
as Jobsonlinelogin
r. Press Ok

Note: If you are not allowed to create a new User in SQL server and are
asked to use a existing user then please go the the Section “Using Existing
user in SQL Server” at the end of the document follow those steps and
then go to Step 2 of the Installation document.
2. Change the Web.Confing file for the User Details mentioned in the Database
Since the Data Source (SQL Server name will be different where the
Application is deployed, we have to change the
• Open the Web.Config file from the JobsOnline folder(where
you have copied the code)
• Replace the value of Data Source from Sharp to the SQL
Server name, please see the screen shots attached for details.
• If you are not allowed to create a User and are asked to use a
existing user then make sure you change the User ID and
Password values.
• Save and close the file.

The name of the SQL Server can be found out by going to Start->Programs->SQL
Server 2000->Enterprise Manager
3. Copy the folder “JobsOnline” present in the folder CodeForInstallation in the
CD to the Hard disk drive
4. Go To IIS for creating virtual Directory
a. Go To Start->Run
b. Type inetmgr
c. IIS should Open, if it doesn’t open then it means IIS is not installed
properly, without IIS we cannot deploy our Project
d. Go To Default Web Site, Right Click on it select New->Virtual
Directory

e. Click Next
f. Type the name “JobsOnline” in the TextBox and Click Next
g. Click the Browse button and go to the Folder where you have copied
the JobsOnLine folder from the CD.
h. Select JobsOnline folder, press OK
i. Click Next
j. Click Next
k. Click Finish. The virtual directory should have been created, pointing
to the Code
l. For testing, Go to the Search Folder in the Virtual Directory
JobsOnline created by you, select a aspx page for eg Search.aspx,
right click and select browse
5. lkdjfdsk
Using Existing user in SQL Server (Not to be done if a New SQL server user is
created

• Go To Databases->JobsOnline->Users and Right Click on it and select


• The following Dialog Box will open
o Select one of the existing user in Login Name
o Check the check box for db_owner and public
o Click OK

• Go back to Step 2 of document.


URLs of the Main Sections of the Site
URL of the Search Section
http://localhost/JobsOnline/search/search.aspx

URL of the Resume Section


http://localhost/JobsOnline/user/login.aspx
UserName=jmd
Password=jmd

Username=Puneet
Password=Puneet

URL of the JobProvider section


http://localhost/JobsOnline/jobprovider/login.aspx
UserName=pshmara
Password=psharma

Вам также может понравиться