How to make an SQL query via Socket?

Asked

Viewed 103 times

0

How to get the client to pass a query to the server and then return what the client requested?

Example: Client passes the server to string: sql = "Select nome From Aluno"; and the server would have to return the name or names of the students registered in the bank.

How to do?

  • Why socket? this is a requirement or could be made via JDBC itself?

  • Yes, only by socket.

  • What’s the point of that? @Victorlauria

  • The intention is to complete an academic work, @jbueno.

  • And your work is specifically about sockets?

  • Not only sockets, I need to develop an application that uses sockets, wcf and xml persistence.

  • In this case you would have to create 2 applications, A client and a server, The server would communicate with the Database and the Client would request and receive the answer, The part of the connection with the Bank and everything else you already know how to do?

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.