473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Serialize/Send a recordset content through network

Hi, the scenario should be like this:

I have a "Server" application, and a UserControl running on an asp.net page.
The UserControl sends a SQL Query string via UDP to the Server (after some
sort of authentication, etc etc)
The Server Application executes the query on his local SQL2k server
The Server Application gets the recordset returned by query execution
Then the server application sends to the UserControl the recordset returned
by the query execution

Could this be done? Like using a sort of Serialization of the SQLDataReader?
Or should i use another tecnique?

My target is to avoid opening the SQLServer directly to the public internet,
but to redirect all the queryes to my application, using some sort of
authentication and encryption.

I'm nearly new to .net framework so i'm discovering new things every day.

Thanx a lot for the help, and for any link that will be useful

Marco
Nov 21 '05 #1
3 2619
Marco:

The scenario you describe sounds very much like a case where you would use a
web service. Since web services already use XML and SOAP, you will have the
serialization in the format you require.
--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.
"M. Simioni" <m.*****************@TOCONTACTMEwooow.it> wrote in message
news:1R*****************@news.edisontel.com...
Hi, the scenario should be like this:

I have a "Server" application, and a UserControl running on an asp.net page. The UserControl sends a SQL Query string via UDP to the Server (after some
sort of authentication, etc etc)
The Server Application executes the query on his local SQL2k server
The Server Application gets the recordset returned by query execution
Then the server application sends to the UserControl the recordset returned by the query execution

Could this be done? Like using a sort of Serialization of the SQLDataReader? Or should i use another tecnique?

My target is to avoid opening the SQLServer directly to the public internet, but to redirect all the queryes to my application, using some sort of
authentication and encryption.

I'm nearly new to .net framework so i'm discovering new things every day.

Thanx a lot for the help, and for any link that will be useful

Marco

Nov 21 '05 #2
Well, i forgot to mention, but i also need to fire events from the server
application to the user control.
The goal of the server application isn't only to be a 'forwarder' of sql
query commands from clients to db, but also should fire events to client
when something happens (like packets received from the rs232 located on the
server).
I planned to use an exchange of UDP message between the 'server application'
and the user control to exchange events (from srvr -> client) and sql
queryes (from client->srvr). But i couldn't realize how to exchange sql
resulting recordsets.
Can i do this with web services too? or should i split the two tasks in
a) a server application that send udp messages to 'clients'
b) a web service that the 'clients' use to query the database

sorry for my bad english :)

Marco

"David Lloyd" <in**@LemingtonConsulting.com> ha scritto nel messaggio
news:ZN*****************@bignews3.bellsouth.net...
Marco:

The scenario you describe sounds very much like a case where you would use
a
web service. Since web services already use XML and SOAP, you will have
the
serialization in the format you require.
--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or
warranties.
"M. Simioni" <m.*****************@TOCONTACTMEwooow.it> wrote in message
news:1R*****************@news.edisontel.com...
Hi, the scenario should be like this:

I have a "Server" application, and a UserControl running on an asp.net

page.
The UserControl sends a SQL Query string via UDP to the Server (after
some
sort of authentication, etc etc)
The Server Application executes the query on his local SQL2k server
The Server Application gets the recordset returned by query execution
Then the server application sends to the UserControl the recordset

returned
by the query execution

Could this be done? Like using a sort of Serialization of the

SQLDataReader?
Or should i use another tecnique?

My target is to avoid opening the SQLServer directly to the public

internet,
but to redirect all the queryes to my application, using some sort of
authentication and encryption.

I'm nearly new to .net framework so i'm discovering new things every day.

Thanx a lot for the help, and for any link that will be useful

Marco


Nov 21 '05 #3
Marco,

You never can sent something to a client. Therefore is to much protected.
You can communicate with a client when he has on the other side a program
that accept what you sent.

I think as well that the suggestion from David can maybe be a good solution
for you. We can never see from this newsgroup if it real fits. Have a look
at this pages.

http://msdn.microsoft.com/library/de...alkthrough.asp

I expect however as well, that trying to reach your goall with a recordset
can be much harder than using the ADONET components.

I hope this helps,

Cor
Nov 21 '05 #4

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

Similar topics

3
by: Eric | last post by:
I need to send an object between nodes on a network. Each node currently communicates fine with sending strings around but I can't figure out how to deserialize objects using the same basic...
3
by: M. Simioni | last post by:
Hi, the scenario should be like this: I have a "Server" application, and a UserControl running on an asp.net page. The UserControl sends a SQL Query string via UDP to the Server (after some sort...
10
by: Rafi B. | last post by:
I'm running this on a Linux/CentOs/cPanel server, trying to add caching to my PHP5 code, using ADOdb. I have two Linux servers, one of them is running perfect, the second one, just crashes without...
8
by: cd~ | last post by:
I can provide a test app, the news server won't allow me to post the files because they are too large (93KB and 1.2KB) I downloaded the ESRI ArcXml schema and generated the classes from the...
0
by: ZWeng | last post by:
I have a webservice taking an object and serrializing it to an xml file. This webservice sits inside of corporate network. Is there a way to serialize the xml to a computer in DMZ? I am using...
6
by: Paez | last post by:
Hello there. My teacher asked me to do a job and I don't know how.. This is the scenario: I must create a client/server application. The server application is a c# web server and the client...
1
by: noel.tock | last post by:
Hi all, Thank you already for the amount of information that has collected in this group, very helpful indeed. I have a question in regards to setting up individual emails to be sent based on a...
1
by: chaitanya02 | last post by:
Hi All, Well- this question might have appeared several times on this forum- but would appreciate your reply on this: I have a asp page, where customers login with some username and the pwd,...
1
by: vermarajeev | last post by:
Hi guys, I have a plain text file. I want to encrypt and send this file via mail. I use SMTP to send the file over network. I'm able to send the file in plain text but if I encode and send it, I...
4
by: SV | last post by:
I am consuming Cold fusion web service in asp.net (VB) application. My problem is: I am not able parse the data. The web service returns: <wddxPacket...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.