Parent Directory | Revision Log | Patch
--- incubator/derby/docs/trunk/src/adminguide/radminapps810699.dita 2005/05/06 22:42:21 168975 +++ incubator/derby/docs/trunk/src/adminguide/radminapps810699.dita 2005/05/06 22:46:20 168976 @@ -1,5 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> - <!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN" "../dtd/reference.dtd"> <!-- @@ -19,24 +18,24 @@ limitations under the License. --> <reference id="radminapps810699" xml:lang="en-us"> <title>DB2 Universal Driver examples</title> -<refbody><?Pub Caret1?> -<section><title>Example 1</title> <p>The following example connects to the +<refbody> +<section><title>Example 1</title><p>The following example connects to the default server name <i>localhost</i> on the default port, <i>1527</i>, and to the database <i>sample</i>. It specifies the URL attributes <i>user, password,</i> and <i>retrieveMessagesFromServerOnGetMessage</i>. -You must set the Universal Driver Attributes user name and password.</p> <codeblock>jdbc:derby:net://localhost:1527/sample:user=judy;password=no12see; +You must set the Universal Driver Attributes user name and password.</p><codeblock>jdbc:derby:net://localhost:1527/sample:user=judy;password=no12see; retrieveMessagesFromServerOnGetMessage=true;</codeblock></section> -<section><title>Example 2</title> <p>The following example specifies both <ph +<section><title>Example 2</title><p>The following example specifies both <ph conref="adminconrefs.dita#prod/productshortname"></ph> and Universal Driver Attributes: <codeblock>jdbc:derby:net://localhost:1527/sample;create=true:user=judy; password=no12see;retrieveMessagesFromServerOnGetMessage=true;</codeblock></p></section> -<section><title>Example 3</title> <p>This example connects to the default -server name <i>localhost</i> on the default port, <i>1527</i>, and includes -the path in the database name portion of the URL. The database name must be -delimited by double quotes and you cannot specify <ph conref="adminconrefs.dita#prod/productshortname"></ph> attributes -on the URL.</p> <codeblock>jdbc:derby:net://localhost:1527/"c:/my-db-dir/my-db-name":user=judy; +<section><title>Example 3</title><p>This example connects to the default server +name <i>localhost</i> on the default port, <i>1527</i>, and includes the path +in the database name portion of the URL. The database name must be delimited +by double quotes and you cannot specify <ph conref="adminconrefs.dita#prod/productshortname"></ph> attributes +on the URL.</p><codeblock>jdbc:derby:net://localhost:1527/"c:/my-db-dir/my-db-name":user=judy; password=no12see;retrieveMessagesFromServerOnGetMessage=true;</codeblock></section> -<section><title>Example 4</title> <p>The following is a sample program fragment -that connects to the Network Server using the Universal Driver:</p> <codeblock>String databaseURL = "jdbc:derby:net://localhost:1527/sample"; +<section><title>Example 4</title><p>The following is a sample program fragment +that connects to the Network Server using the Universal Driver:</p><codeblock>String databaseURL = "jdbc:derby:net://localhost:1527/sample"; <b>// Load IBM JDBC Universal Driver class</b> Class.forName("com.ibm.db2.jcc.DB2Driver"); <b>// Set user and password properties</b> @@ -48,4 +47,4 @@ properties.put("retreiveMessagesFromServ Connection conn = DriverManager.getConnection(databaseURL, properties); </codeblock></section> </refbody> </reference> -<?Pub *0000002982?> +<?Pub *0000002974?>
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |