Click to See Complete Forum and Search --> : Guidence for making a Project Client Server


uahmed
October 25th, 2009, 06:14 AM
hi

i am making one project for a company , i am new to c Sharp language , but have clear Knowledge about C++ , i have to take the hardwrae information of all the PC in the Company and send it to the Server where the data will be store in a database.

i have made a code of taking data and now i am having problem in Sending them to the Server . should i use a buffer to send the data or send it through file and little guidance about client Server

dannystommen
October 25th, 2009, 11:35 AM
There's no need to use or buffer of server application or whatever.

You can send the data directly to the database. Just make sure the database allows remote connections.

Shuja Ali
October 25th, 2009, 11:47 AM
You will have to learn ADO.NET. Grab your copy of MSDN and start reading about ADO.NET. ADO.NET will let you connect to a database server and then you can do anything from your application. Read data from the database, update/modify existing data, create new data, etc.

uahmed
October 26th, 2009, 10:47 AM
thank you for ur guidance :) i guess my this reply will make u more clear about my project

this is the whole project , i am interested to do

1) Client End Program Coding in C# at will be placed in start up , collect all the required data of hardware.

2) Data Transfer through XML file or Buffer.

3) Server side application take data from XML File

4) Connectivity with the database

5) Data Comparison for any hardware change

6) Database updated


we have make the structure but having problem in connectivity of client to Server , we are new in Client Server application and client application will run as a Client PC restart .

HanneSThEGreaT
October 26th, 2009, 11:11 AM
If you make use of a database, you do not need points 2 and 3. That is what is being said by everyone, and now I'm saying it too...

uahmed
October 26th, 2009, 01:41 PM
ahaan can u guide me a little bit or just tell me the path to go.. because i am a new one in database connectivity. ur reply will make my work easy :)

Shuja Ali
October 26th, 2009, 02:12 PM
Check out ADO.NET Tutorial (http://www.csharp-station.com/Tutorials/ADODotNet/Lesson01.aspx).

uahmed
October 26th, 2009, 02:58 PM
nice to read that Shuja just one more thing i have to make that software on .netframwork is ado.net work there , i mean i just have to give them executable file at the Server end that will do connectivity with Sql Server and manage all that data with GUI interface to user.

vcdebugger
October 27th, 2009, 04:47 AM
, we are new in Client Server application and client application will run as a Client PC restart .

for this to happen you need to create you client application as a web service and put it in start up so that it start atutomatically each time your pc restarts

Shuja Ali
October 27th, 2009, 12:31 PM
ADO.NET is part of .NET Framework.

uahmed
November 1st, 2009, 09:44 AM
remote connectivity is not allowed :(
so still i use XML file to transfer data or use any other way to transfer

Shuja Ali
November 1st, 2009, 12:24 PM
Remote connectivity is not allowed???
What does that mean?? What are you trying to do?
Are you trying to send data to a database server or some other kind of server?

uahmed
November 3rd, 2009, 07:58 AM
ahaan , i explain again

one application at client end send data to the Server PC , that data will then be putt in a sql server database for reviewing and viewing it , thorough GUI .

main objective of this project is to make a software which can show the hardware description of all the pc connected in a network and notify the administrator when any changes occur.

Shuja Ali
November 4th, 2009, 01:04 PM
Ok. So your architecture is like this, a client app sends data to a server. On the server there is another app which reads the data and then puts that data into database. If my assumption is right, then you can use XML as your way of communicating. You can send XML from Client to Server. The server app then processes the XML and loads the data into a database server using ADO.NET.

A work around would be to directly access the database server from the Client app and input data into DB directly.

uahmed
November 8th, 2009, 07:15 AM
thank you so much so the project become like this

Client end application in on Csharp
server end application is on Ado.net

is there any connectivity issue while making client server?
because at Server end application we are generating threads to listen the client request to update data .

and can we take data on real time , like if i want to know all the hardware configuration right now then is this work ? like making a code at server side application which send command to execute that client end program and send data back to server ?

you are really making my work easy thanks for your guidance shuja ali :)

uahmed
November 16th, 2009, 07:21 AM
is anybody else can help me ?