Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: operate in a disconnected environment using ‘CachedRowSet’

Java: operate in a disconnected environment using  'CachedRowSet'

import java.sql.*;
import javax.sql.rowset.CachedRowSet;
import com.sun.rowset.CachedRowSetImpl; 
public class CachedRS
  public static void main(String[] args) throws Exception
        // set CachedRowSet properties
       CachedRowSet rowSet = new CachedRowSetImpl();
        // Connect to Microsoft SQL Server
        rowSet.setUrl( "jdbc:sqlserver://localhost; databasaname=cours" );
        rowSet.setUsername( "user" );                            // Set username
        rowSet.setPassword( "passdemo" );                        // Set password
        rowSet.setCommand("SELECT * FROM Test");

Users who found this page were searching for:

  • cachedrowset to file
  • java disconnected resultset 2013
  • disconnected environment java
  • get disconnected with cachedrowset
  • how to test the disconnected resultset cachedrowset in java
  • cachedresultset java is disconnected
  • Cache row set program
  • operate in a disconnected environment cached java mesexemples.com
  • jdbc cachedrowset example
  • disconnected+environment+in+jdbc

No comments yet.

Leave a Comment