/Users/andrea/_magisterarbeit/korpus/clean/trainkorpus/32/file4.html NN ----------------------------------------- : Home NP List NP of IN Packages NNS java NP . SENT sql NN 73 CD examples NNS Connections NNS 10 CD examples NNS e SYM 237 CD . SENT Connecting VVG to TO a DT SQLServer NP Database NN This DT example NN connects VVZ to TO a DT SQLServer NP database NN using VVG the DT NetDirect NP JDBC NP driver NN . SENT For IN information NN about IN this DT driver NN , , see VV e NN 232 CD Getting VVG JDBC NP Drivers NP for IN a DT Database NN . SENT Connection NN connection NN null NN . SENT try VV String NP driverName NN com NN . SENT jnetdirect NN . SENT jsql NN . SENT JSQLDriver NP . SENT NetDirect NP JDBC NP driver NN String NP serverName NP 127 CD . SENT 0 CD . SENT 0 CD . SENT 1 CD . SENT String NN portNumber NN 1433 CD . SENT String NN mydatabase NN serverName NN . SENT portNumber NN . SENT String NN url NN jdbc NN . SENT JSQLConnect NP . SENT mydatabase NN . SENT a DT JDBC NP url NN String NP username NN username NN . SENT String NN password NN password NN . SENT Load VV the DT JDBC NP driver NN Class NN . SENT forName JJ driverName NN . SENT Create VV a DT connection NN to TO the DT database NN connection NN DriverManager NN . SENT getConnection NN url NN , , username NN , , password NN . SENT catch VV ClassNotFoundException NP e NN Could MD not RB find VV the DT database NN driver NN catch NN SQLException NN e NN Could MD not RB connect VV to TO the DT database NN