Hi.
I want to wite a applcation that work on a LAN.this a server/client app, that client send a task for server and server access to database and run it on database(for example a sql statement). then I want to send the result of execution of that on database to client that may be a boolean or datareader or int or ...but client don't know that reciving info is bool or int or ...(in other words,all of cases send by a same way).
plz help me. Can I use Socket namespace for this and how
Thanks.

Socket programming
svallarian
Jan Limpens
Take a look at some of these articles, this should cover a lot:
Paul Domag
rf7_15
hi,
using sockets all the data go in the same way (i.e. just byte array) the difference in parsing it , you can convert it to string or to bool or to what ever you want
to send sql statment that mean you know the fields you gonna ask for it, like for example "select name, age from person where name...etc" you know the fields so you know the datatypes, the only problem that you will face is the datalength, you can use delimiters between fields and another one between records
if this program will deal with just databases i guess its better to use the sqlserver , its allready server you don't need to write server program
hope this helps