Click here to Skip to main content
16,007,111 members
Home / Discussions / Database
   

Database

 
GeneralRe: Concept behind SQL Server Pin
Mazdak13-Feb-02 2:11
Mazdak13-Feb-02 2:11 
GeneralRe: Concept behind SQL Server Pin
alex.barylski13-Feb-02 2:24
alex.barylski13-Feb-02 2:24 
GeneralRe: Concept behind SQL Server Pin
Mazdak13-Feb-02 2:45
Mazdak13-Feb-02 2:45 
GeneralRe: Concept behind SQL Server Pin
WPooh13-Feb-02 16:15
WPooh13-Feb-02 16:15 
GeneralRe: Concept behind SQL Server Pin
Nick Parker14-Feb-02 6:39
protectorNick Parker14-Feb-02 6:39 
GeneralRe: Concept behind SQL Server Pin
alex.barylski14-Feb-02 11:41
alex.barylski14-Feb-02 11:41 
GeneralRe: Concept behind SQL Server Pin
Mazdak17-Feb-02 0:35
Mazdak17-Feb-02 0:35 
GeneralRe: Concept behind SQL Server Pin
22-Feb-02 13:37
suss22-Feb-02 13:37 
Most database types will have an 'SQL Engine' some where as this is what takes the SQL statement and sarches through the database for the results you want.

The most important difference between MS Access DB and a SQL Sever DB as far as I am concerended is this.

Assume that you had a 1 million row database, and you want to run a query that returns only 100 of those rows. Also assume the the database and the client app are on different machines

Access is a file based database, so to do the above, the _client_ machine must open the database file and read through all 1 million rows looking for the ones that match. This means that 1 millions rows are returned over the network to the client and 999,900 rows are thrown away not to be used. This wastes a lot of network traffic and is slow!

SQL Server (be it MS-SQL or mySQL) databases have an service running on the machine where the database file resides. The client appliction talks to this service rather than the database file. This allows the client to tell the service what data it wants (via an SQL statement) and that service will sort it locally making full use of the servers fast disks and lots of memory, and will only return the 100 rows of intreast. A lot faster as all the work is done where the data is and only the small results set is returned over the network to the client.

Also because all request to the database come through this single service, it allows much more efficent caching of the database. Because this service knows about every change to the database, it knows that if there have been no changes and some else asks for the same 100 rows, there is no need to re run the query, it can just return the same 100 rows it did to the last client.





stephen.
GeneralRe: Concept behind SQL Server Pin
Bill Wilson5-Mar-02 8:59
Bill Wilson5-Mar-02 8:59 
GeneralRe: Concept behind SQL Server Pin
Giles5-Mar-02 9:19
Giles5-Mar-02 9:19 
GeneralRe: Concept behind SQL Server Pin
James T. Johnson5-Mar-02 10:10
James T. Johnson5-Mar-02 10:10 
GeneralRe: Concept behind SQL Server Pin
Giles5-Mar-02 10:33
Giles5-Mar-02 10:33 
GeneralRe: Concept behind SQL Server Pin
James T. Johnson5-Mar-02 11:19
James T. Johnson5-Mar-02 11:19 
GeneralRe: Concept behind SQL Server Pin
Michael A. Barnhart12-Mar-02 2:35
Michael A. Barnhart12-Mar-02 2:35 
QuestionExecuteSQL -> ? Pin
Sander12-Feb-02 8:39
Sander12-Feb-02 8:39 
AnswerRe: ExecuteSQL -> ? Pin
Carlos Antollini12-Feb-02 9:00
Carlos Antollini12-Feb-02 9:00 
AnswerRe: ExecuteSQL -> ? Pin
Mazdak12-Feb-02 10:08
Mazdak12-Feb-02 10:08 
GeneralRe: ExecuteSQL -> ? Pin
Carlos Antollini12-Feb-02 10:17
Carlos Antollini12-Feb-02 10:17 
GeneralXA Transactions Pin
Mauricio Ritter12-Feb-02 1:41
Mauricio Ritter12-Feb-02 1:41 
Generalwhat's the Max length of words in _bstr_t Pin
Zell10-Feb-02 20:59
Zell10-Feb-02 20:59 
GeneralRe: what's the Max length of words in _bstr_t Pin
Bill Wilson5-Mar-02 8:49
Bill Wilson5-Mar-02 8:49 
Generalimport a text file sorting a list of values Pin
chris foote10-Feb-02 18:02
chris foote10-Feb-02 18:02 
GeneralRe: import a text file sorting a list of values Pin
Mazdak10-Feb-02 20:44
Mazdak10-Feb-02 20:44 
GeneralRe: import a text file sorting a list of values Pin
chris foote11-Feb-02 3:24
chris foote11-Feb-02 3:24 
GeneralRe: import a text file sorting a list of values Pin
Mazdak11-Feb-02 3:48
Mazdak11-Feb-02 3:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.