Computer Science, asked by Sanjanarajput, 1 year ago

explain working with database

Answers

Answered by gurjeet15
1

Let's start at the bottom and work our way up:

Data and applications are stored on a hard drive or a series of hard drives and other media.

All of this storage is managed by the operating system.

The operating system, Windows in this case, handles all of the low level tasks associated with running applications as well as managing storage.

SQL Server runs on top of Windows. SQL Server is actually dozens of modules (separate pieces of software). Each module is called when needed. The process is so seamless we are seldom aware of it.

I have simplified the diagram to show only the query processor and security. The query processor translates SQL into a form of code the other server modules can use.

All communications with the server go through the security layer. Good security for a server is too complex a subject for now. The security layer is a blending of operating system functions and functions specific to SQL Server.

Jump below the picture to continue with a discussion of SQL and the layers above it.

Simplified explanation of SQL Server.

SQL is the communications protocol between the SQL Server and the outside world. Most communications with SQL Server are in Standard Query Language (SQL).

Look to the top-right at SQL Server Management Studio. Management Studio is a development environment that is installed on the developer's machine. It comes with SQL Server, but doesn't need to be on the same machine. A free version of SQL Server and Management Studio is available on the microsoft Web site. You are probably safe downloading the third option "Database with Management Tools". If you have 64-bit Vista or 64-bit Windows 7 you can download and install the 64-bit version. You don't have to. The 32-bit version will work on either 32-bit or 64-bit Windows.

SQL Server Management Studio gives us a single location to manage our SQL Servers and develop and test our databases and SQL code.

Before we can manage servers or run SQL code we must set up a connection to each server we want to work with. The servers can be anywhere. The only requirements are a network connection and security clearance.

Look to the top-left at the Application Server. An application server runs an application. In this case, a Microsoft .NET application.

The Application Server could be a dedicated Web server supplying a Web interface to a database, or a client application on someone's personal computer.

The application could be bought "off the shelf", but we are more interested in custom applications we build ourselves.

The database, development environment, and server application could all be running on a single computer. More commonly, with SQL Server projects, this is only done on developer's machine to provide easy access to everything for the developer. In production, it would be normal for the database and application to be on separate machines. Sometimes the Web server and application server are also separated.

Similar questions