Togamas Bookstore Database Management System
Togamas Bookstore Database Management System
BAB 1
PENDAHULUAN
1.1 Background
Book store represent requirement of very supporter is necessary for the continuity
of study especially among student, because in the book store we can get the book to add
their science and knowledge.
This book store consisted of a central book store as place of management of data
and two branch book stores. All data about the library still be kept in form MS Access, so
management the library requires for transformed the data to SQL database server
database.
We know that a book store of difficulty in handling management of data
and depositor of data and also delivery of data can run better and accurate hence
the book store have to have data repository, its on file data better. One of the
solutions is using SQL Server 2000 database.
1.3 Purpose
The purpose of this project is:
1. To know how to install SQL Server 2000.
2. To know how to make the database design and table in SQL Server 2000.
3. To know how to make and give a login, user role and permission to each
database.
4. To know how to backup and restore database in SQL Server 2000
1
Togamas Bookstore Database Management System
1.4 Benefit
The benefits of this project are:
1. Give knowledge to the readers about a configuration in SQL Server 2000.
2. Give knowledge about advantages using a Database SQL Server 2000.
2
Togamas Bookstore Database Management System
3
Togamas Bookstore Database Management System
CHAPTER 2
REQUIREMENT ANALYSIS
4
Togamas Bookstore Database Management System
CHAPTER 3
DESIGN AND SCHEME
Head Office
DTS
DTS
Branch
Branch
5
Togamas Bookstore Database Management System
6
Togamas Bookstore Database Management System
CHAPTER IV
IMPLEMENTATION
APA YANG MAU DIIMPLEMENTASIKAN
7
Togamas Bookstore Database Management System
10. The User Information screen displays a message Enter your name below
along with two text boxes. Enter the department name in the first textbox,
labeled as Name. In the second textbox, labeled as department name,
enter the department name again. However, this entry is optional. Click the
Next button to move to the Software Licensing Agreement screen of the
installation wizard.
11. Click Yes to accept the License Agreement. The Installation Definition
screen is displayed.
12. The Installation Definition screen displays the following three options:
a. Client Tools
b. Server and Client Tools
c. Connectivity
13. The setup of Libraries requires booth the client and the server tools for its
centralized database management system. Therefore, select the second
option Server and Client Tools.
14. Click the Next button to move to the Instance Name screen of the
installation wizard.
15. Select Default option for a default installation.
16. Click Next to move to the Setup Type Screen.
17. The Setup Type screen displays of the following three setup options:
a. Typical
b. Minimum
c. Custom
18. The administrator requires the most commonly used components of SQL
Server 2000, therefore, select the Typical option.
19. Click the Browse button to specify different destination folders to
Program Files and Data Files.
20. Click the Next button to move to the Service Accounts screen. Select the
Use the same account for each service option. You also need to select the
Use a Domain Settings option, from the Services Setting section of the
8
Togamas Bookstore Database Management System
9
Togamas Bookstore Database Management System
10
Togamas Bookstore Database Management System
)
Create Table Transaction
Create Table transactions
(
TransactionID char (20) constraint pkcTransactionID PRIMARY KEY Not
Null,
MemberID char (20) constraint pkMemberID foreign key (MemberID)
references Member (MemberID),
BookID char (20)constraint pkBookID foreign key (BookID)
references Book (BookID),
Tgl_Pinjam datetime Not Null,
Tgl_Pengembalian datetime Not Null,
Tgl_Dikembalikan datetime Not Null
)
4.3 Transfer Old data from MS Excel to SQL Server 2000 using Data
Transformation Services (DTS)
1. Click start, all programs, Microsoft SQL Server, Enterprise Manager
2. In the SQL Server Enterprise Manager Console Root, Expand the SQL
Server.
3. Expand the registered SQL Server Instance displayed under the SQL Server
Group
4. Right-click the Data Transformation Services and click the New Package
option, to open DTS Designer windows.
5. From the Connection panel of the DTS Designer windows, click the
Microsoft Excel icon . And the connection dialog box appears, as shown.
6. In the new connection text box, type Microsoft Excel 97-2000.
7. In the file name text box, type D:\DATA.xls.
8. Click OK button to close the connection properties dialog box and return to
the DTS Designer windows.
11
Togamas Bookstore Database Management System
12
Togamas Bookstore Database Management System
5. Verify that the Windows Authentication option is selected from the Select
Authentication Mode for this Login screen.
6. Select Grant access to the server option from the security access section of
the Authentication with Windows screen.
7. Example, specify WALNER \ Admin in the Windows Account text box to
authenticate user by Windows operating system. In the case the domain
name of the machine is WALNER.
8. To grant privileges to users for creating new database, select the Database
Creators option from the Server role section of Grant Access to Security
Roles screen.
9. Click the Next button to continue.
10. Select the Library option from the Permit in database section of Grant
Access to Database screen, which allows accessing to the Library
database.
11. Click the Next button to continue with the wizard.
12. The Completing the Create Login Wizard screen is displayed. Click the
finish button to create the SQL Server 2000 login with the specified
information.
13. A Wizard Complete! Message box appears.
14. Click the OK button to close the message box.
15. Expand the Security Containers from the console tree and select the
Logins option. Verify that the Admin appears as the login name in the
details pane.
13
Togamas Bookstore Database Management System
3. Expand the default instance, Select and expand the Management option,
to reach the SQL Server Agent.
4. Expand SQL Server Agent. Right-click Alerts and select New Alert
from the pop-up menu to open the New Alert Properties dialog box.
5. In the Name text box, enter Backup Database, as shown.
6. In the even alert definition section, select the 010-Information option from
the Severity drop-down list.
7. Specify the name of the database in which the error message must occur.
In this case, specify Library as the database name.
8. Click OK to close the New Alert Properties dialog box.
14
Togamas Bookstore Database Management System
15
Togamas Bookstore Database Management System
7. In the Transact SQL statement text area, write the following Transact-
SQL statement:
8. Click the Next, then in the Specify job schedule screen, select on a
recurring basis option, as shown.
9. Click the Schedule button to open the Edit Recurring Job Schedule dialog
box.
10. Verify that Weekly option is selected from the Occurs section.
11. Select Mon option from the Weekly section. Deselect Sun from the
Weekly section.
12. Select Occurs once at from the Daily frequency section and set the time as
8:30:00 PM in the drop-down list.
13. Set Start date as 11/07/2008 in the Start date drop-down list of Duration
section, as shown.
14. Click the OK button to close the Edit Recurring Job Schedule dialog box
15. Click the Next button to continue with the Create a Job Wizard.
16
Togamas Bookstore Database Management System
17
Togamas Bookstore Database Management System
18
Togamas Bookstore Database Management System
4. Select the databases that you want to shrink and right-click on the selected
database. A popup menu is displayed.
5. Select All Task → Shrink Database from the pop-up menu to open the
Shrink Database dialog box as shown.
6. The Schedule check list the Shrink the database based on the this
schedule, write Occurs every 1 week(s) on Sunday, at 1:22:00 PM.
7. Click the Ok button to close the Shrink database dialog box.
LINKED SERVER
USER RIGHT
REPLIKASI?
19
Togamas Bookstore Database Management System
CHAPTER 5
CLOSING
5.1 Conclusion
1. By Using SQL Server 2000 as database, hence can improve the
performance and easily in managing of data.
2. By Using DTS, stripper data kept in file like MS Excel can in keeping and
in transformation to SQL Server 2000.
3. With making Login, Role and Permission at SQL Server can limit user in
doing actions in the database.
4. SQL Server also give task Alerts to provide notification for events such as
user-define error and describing the performance condition, and also to
execute jobs in response to specific events.
5. SQL Server give Backup operation as a precautionary to prevent data lost
that stored at other location.
5.2 Suggestion
For next project, writer suggests if using two different databases, for
example MS Access and SQL Server 2000, so better apply replication process to
synchronize the data.
20
Togamas Bookstore Database Management System
BIBLIOGRAPHY
[3] NIIT, Project and Reference Reading Guide, printed at Sona Printers
Pvt. Ltd, New Delhi, 2008.
21