# Derby Network Server sample programs

Derby provides several sample programs for Network Server users.

- The NsSample sample program
  The NsSample demonstration program is a simple JDBC application that interacts with the Network Server.
- Network Server sample programs for embedded and client connections
  This Derby Network Server sample program demonstrates how to obtain an embedded connection and client connections to the same database by using the Network Server. This program shows how to use either the DriverManager or a DataSource to obtain client connections.

Parent topic: Part One: Derby Server Guide
Related concepts
Derby in a multi-user environment
Using the Network Server with preexisting Derby applications
Managing the Derby Network Server
Using Java Management Extensions (JMX) technology
Managing the Derby Network Server remotely by using the servlet interface
Derby Network Server advanced topics