首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

安装了JDBC之后,要如何用它?小弟我用的是pb

2012-04-11 
安装了JDBC之后,要怎么用它???我用的是pb安装了JDBC之后,要怎么用它???我在用pb 开发,想要用jdbc接口.....

安装了JDBC之后,要怎么用它???我用的是pb
安装了JDBC之后,要怎么用它???

我在用pb 开发,想要用jdbc接口.......不会用!

我是个新手!

[解决办法]
安装jdbc驱动后,带得帮助中有详细的说明!


在系统环境中定义CLASSPATH,那几个jar文件加入在那下面!


就可以用了
[解决办法]
http://blog.csdn.net/gxhzippo/archive/2008/05/14/2443409.aspx
[解决办法]
这都不知道!......

我的电脑 ->属性->高级 环境变量!
[解决办法]
我还没有搞通过,等我再试试啊.
[解决办法]
看到工具条上一堆按钮了吧,有一个叫DB PROFILE,点一下。
都连好了,记得到PRIVIEW把脚本考下来,粘程序里修改该下密码就能用了。
[解决办法]
那帮助上都有的,
就是不看!

One way of connecting to a database is through the JDBC driver manager using the method DriverManager.getConnection. This method uses a string containing a URL. The following is an example of using the JDBC driver manager to connect to Microsoft SQL Server 2000 while passing the user name and password: 

Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); 
Connection conn = DriverManager.getConnection 
("jdbc:microsoft:sqlserver://server1:1433;User=test;Password=secret"); 

URL Examples 
The complete connection URL format used with the driver manager is: 

jdbc:microsoft:sqlserver://hostname:port[;property=value...]

where: 

 hostname is the TCP/IP address or TCP/IP host name of the server to which you are connecting.
NOTE: Untrusted applets cannot open a socket to a machine other than the originating host.
port is the number of the TCP/IP port.
property=value specifies connection properties. See "Connection String Properties" for a list of connection properties and their values. 


driver name
"com.microsoft.jdbc.sqlserver.SQLServerDriver"
URL
"jdbc:microsoft:sqlserver://server1:1433,DatabaseName=xxx"

[解决办法]
数据源在控制面板中可以看到呀,随便找本PB基础的书看一下都有,不行上网搜一下

热点排行