Re: Database Server based on SQL database
- From: "JJ" <jjj@xxxxxxxxxx>
- Date: Fri, 17 Nov 2006 15:31:43 -0500
I'm not sure I understand the question - how can you base a "protocol on
SQL"? SQL is a language, not a protocol - they are two different things.
If you are asking if there is some protocol already defined for exchanging
SQL statements and data, you can look at http://www.freetds.org/, which is
an open source implementation of the Tabular Data Stream (TDS) protocol.
TDS originated with Sybase and is used by SQL Server (earlier versions were
based on Sybase).
It's not 100% of what you are looking for - it sounds like you want to write
both the client and the server side. TDS is an implementation of a client
side of a protocol that communicates with a SQL database, but you would need
to write the server side (since the server side is currently SQL Server or
Sybase). But it is a starting point.
A better way might be to just exchange XML. Have the client embed the SQL
in an XML string and send it to your server, execute it, then send the
results back as XML to the client. There's more overhead than a binary
format, so you may need to compress the data stream.
"Angus" <nospam@xxxxxxxxx> wrote in message
news:O89Ii7nCHHA.4772@xxxxxxxxxxxxxxxxxxxxxxx
Thanks but I am quite clear on my requirements. Confusion I think was
with
person who responded.
I have a contact management package which currently talks to a database on
a
LAN. But I want to enable the program to work over a WAN connection.
So I will write a server program which receives requests from clients via
a
socket connection. The requests (eg a request for some data in a row in a
table) will be passed on down to the database via whatever is best/fastest
access method.
So I need a protocol for communication between socket clients and socket
servers. Should I base this protocol on SQL or design my own protocol.
That is essentially the question.
Angus
"Alexander Nickolov" <agnickolov@xxxxxxxx> wrote in message
news:OS9eQznCHHA.4404@xxxxxxxxxxxxxxxxxxxxxxx
I expect you need to start from your requirements. Sinceserver
you didn't post them, I suspect you are not clear what
they are in the first place. Spend the time figuring out
your requirements and then the design should flow in
place with much less confusion...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Angus" <nospam@xxxxxxxxx> wrote in message
news:%23XioRInCHHA.4312@xxxxxxxxxxxxxxxxxxxxxxx
Maybe I do not understand. Or maybe my question was not clear. The
isis a socket server. ie you communicate with server via sockets. There
a
product from BMC software called Remedy which works in this way. Data
storage is a SQL server. But clients don't talk directly to database -
communication is via socket server.
ie the client doesn't have OLE DB, ADO, DAO or whatever installed -
they
communicate via sockets - and some sort of protocol. That is what I am
trying to design.
Angus
"Vadym Stetsyak" <vadym_s@xxxxxxx> wrote in message
news:O2R9a6lCHHA.4740@xxxxxxxxxxxxxxxxxxxxxxx
Hello, Angus!papers
What does it mean "based ib SQL database"?
Have you seen DB servers like mySQL?
Its open source, so you can investigate its design.
Have a look at it ( http://www.mysql.org/ )
Also there are a lot of technical papers on MS SQL Server. From these
you can obtain the picture of DB server parts and architecture...
A> I want to build a socket based database server. How should the
A> client
A> communicate with the server? Should I create SQL syntax at the
A> client and
A> let the server pass this onto the database? Does this work? Would
A> creating
A> a totally new custom protocol for the database communication be
A> better?
A> I intuitively feel that that re-inventing the wheel is probably not
A> very
A> clever. And if the client can create the SQL strings that should
A> work ok.
A> But would be interested to hear from anyone who has also written or
A> is
A> writing a database server.
A> Another issue I suppose is buffering. Should the server store the
A> retrieved
A> SQL searches in memory and just pass to client the record they are
A> viewing?
A> Suppose makes sense.
A> Any comments would be greatly appreciated.
A> Angus
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
.
- References:
- Database Server based on SQL database
- From: Angus
- Re: Database Server based on SQL database
- From: Angus
- Re: Database Server based on SQL database
- From: Alexander Nickolov
- Re: Database Server based on SQL database
- From: Angus
- Database Server based on SQL database
- Prev by Date: Re: client-server application question
- Next by Date: CFtpConnection: is object a folder? How to find it out?
- Previous by thread: Re: Database Server based on SQL database
- Next by thread: Re: Database Server based on SQL database
- Index(es):
Relevant Pages
|