In my C# app client should send logs to server and the same logs must be save in SQL Server database. How should I do this:
which way is more correct?
EDIT
There's many clients in the LAN network
Have the client communicate only with the server. The server would analyze the information from the client. The server then writes the information to the database and/or takes action on the client. This way you get the ability to immediately act on the client and save the information in the database for possible use later. It also makes sense because then only one computer is able to write to SQL instead of your many clients all writing individually...