You can segment traffic according to information in the SQL query, based on database names, user names, character sets, and packet size.
You can configure content switching policies with Advanced policy expressions to switch content based on connection properties. For example, user name and database name, command parameters, and the SQL query to select the server.
The Advanced policy expressions evaluate traffic associated with MYSQL and MS SQL database servers. Use request-based expressions in Advanced policy policies to make request switching decisions at the content switching virtual server bind point. Use response-based expressions (expressions that begin with MYSQL.RES) to evaluate server responses to user-configured health monitors.
For databases, the load balancing can only occur on homogenous database servers (database servers that contain the exact same databases). For a configuration that contains unique databases on different servers, you must use content switching. If some of your database servers host identical content, you can use load balancing on those servers only. You can then use content switching policies to send requests to the load balancing virtual server that manages load balancing for those databases.
The NetScaler appliance currently stores the database name and login information during the database session. When a query is made to the database, it uses that information to connect to the specific database server.