473,466 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Remote database access layer

Dear Groups,

I am trying to develop a simple client <-> server application where (for
database security reasons) the server only has access to the centralised
database (and a file repository), and not the client.

I think the best way to do this is to expose data layer objects using
Remoting to the client.

This sounds almost like a design pattern to me, but I can't seem to find
anything on MSDN that will get me started with a client and server remoting
application which will allow me to execute SQL and return datasets and make
requests for other binary data (say, to return a file on the filesystem).

Does anyone know of a good place to start looking for some shell code which
I can examine to learn from?

All I would like to see at this stage, is a client application creating and
returning remote datasets and executing remote sql statements. This would be
wonderful!

Thanks!
--

Liddle Feesh
*fap fap fap fap*
<>< <>< <>< <>< ><>
<>< <>< <>< <>< <>< <><
Nov 21 '05 #1
2 1667

<Liddle Feesh> wrote in message
news:42***********************@ptn-nntp-reader02.plus.net...
Dear Groups,

I am trying to develop a simple client <-> server application where (for
database security reasons) the server only has access to the centralised
database (and a file repository), and not the client.

I think the best way to do this is to expose data layer objects using
Remoting to the client.

This sounds almost like a design pattern to me, but I can't seem to find
anything on MSDN that will get me started with a client and server
remoting application which will allow me to execute SQL and return
datasets and make requests for other binary data (say, to return a file on
the filesystem).

Does anyone know of a good place to start looking for some shell code
which I can examine to learn from?

All I would like to see at this stage, is a client application creating
and returning remote datasets and executing remote sql statements. This
would be wonderful!

Thanks!
--

Liddle Feesh
*fap fap fap fap*
<>< <>< <>< <>< ><>
<>< <>< <>< <>< <>< <><


Well, a much more common design pattern is to expose the exact application
server functionality to client, not a universal database or filesystem
access layer. Exposing full db / filesystem to clients isn't secure at all,
and this is the main reason why it didn't become a design pattern.
You should define the exact functions that clients will need from your
server (functions that perform ONLY the necessary tasks and cannot be
maliciously used to get unauthorized access to the server) and make them
accessible via Remoting or Web Services or whatever protocol you like.

Best regards,
Rafal Gwizdala
Nov 21 '05 #2
Passing ADO.NET datasets back and forth from client to server is not an
uncommon thing to do since datasets are serializable and easy to work with
as long as all the clients and servers are written in .NET. In particular,
Windows Forms clients work very well with remote objects returning datasets.
However, if you want to use secure .NET remoting I would make sure to read
up on IIS hosting remote objects. This uses the HTTP channel, but you can
use the binary formatter so that can cut down on the size of the
transmission. However in .NET 1.1, datasets don't actually serialize as
binary so you have to use a surrogate class. .NET 2.0 fixes this issue but
for now you can use this code:
http://www.gotdotnet.com/Community/U...8-2b80a4e30f49

Typically you would define a series of "Get" methods on your remote object
that would return datasets to the client. The remote object should inherit
from MarshalByRefObject and always return serializable classes/return
values. You can also achieve the best scalability by creating Single-call
server objects (they are also easy to web farm or turn into web services if
necessary). Here's a good article on different remoting options:
http://www.thinktecture.com/Resource...gUseCases.html

HTH,
-B
<Liddle Feesh> wrote in message
news:42***********************@ptn-nntp-reader02.plus.net...
Dear Groups,

I am trying to develop a simple client <-> server application where (for
database security reasons) the server only has access to the centralised
database (and a file repository), and not the client.

I think the best way to do this is to expose data layer objects using
Remoting to the client.

This sounds almost like a design pattern to me, but I can't seem to find
anything on MSDN that will get me started with a client and server
remoting application which will allow me to execute SQL and return
datasets and make requests for other binary data (say, to return a file on
the filesystem).

Does anyone know of a good place to start looking for some shell code
which I can examine to learn from?

All I would like to see at this stage, is a client application creating
and returning remote datasets and executing remote sql statements. This
would be wonderful!

Thanks!
--

Liddle Feesh
*fap fap fap fap*
<>< <>< <>< <>< ><>
<>< <>< <>< <>< <>< <><

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: kackson | last post by:
Hi. I would like to access my database outside of my company. I read many documents but they are all pertaining to accessing the database via ASP or some form of web application. Is there no...
9
by: Greg Gursky | last post by:
Hello: I'm doing some planning on a potential project with which I need some help. The database at the focus of this question is a MS Access database that is currently accessed by DAO from a...
2
by: James | last post by:
Dear Access Guru's, Hopefully you can help me (as Microsoft don't seem to be able to) We have an Access database on a Windows 2003 server with 5 CALS in our office. Access is loaded onto...
27
by: Brett | last post by:
If I want to easily swap the database I'm using, what is the best method for developing that tier in my application? I'll have basically a 4 tier app: 1. presentation 2. business logic 3. data...
4
by: Heliotic | last post by:
Hi everyone, Currently I am working on an application that will perform a remote scan of a specified server using the following code: Type t = Type.GetTypeFromProgID(...
5
by: Mitya Mitriev | last post by:
Hi I created ASP.NET 2.0 web application that uses SQL Server 2000 database and it works perfectly when website and Sql server were on local machine. Then I installed application on production...
1
by: Nemisis | last post by:
hi guys, Currently converting an old classic asp system to a OOP asp.net application. We are building the new application using a 3 tier arcitecture and i was wondering about the following. ...
0
by: Sergio Montero | last post by:
I'm on the design stage of a Winforms App using VB. The app should consume a SQL Server 2005 database which is hosted on a remote web server. I'm really having problems to decide the best way to...
5
by: Gav | last post by:
I'm writing a windows application (using C# VS 2005 Pro) to access a MS SQL database and although it is working fine (up to now) I'm not sure I'm going about it in the best way. Can anybody point...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.