Microsoft SQL Server 2000 Driver for JDBC HTML Help上的一篇文章,不知是不是相关的,我也看的不大明白,请高手们指教。 Using the SQL Server 2000 Driver for JDBC on a Java 2 Platform When using the SQL Server 2000 Driver for JDBC on a Java 2 Platform with the standard security manager enabled, you must give the driver some additional permissions. Refer to your Java 2 Platform documentation for more information about the Java 2 Platform security model and permissions. You can run an application on a Java 2 Platform with the standard security manager using:"java -Djava.security.manager application_class_name" where application_class_name is the class name of the application. Web browser applets running in the Java 2 plug-in are always running in a Java Virtual Machine with the standard security manager enabled. To enable the necessary permissions, you must add them to the security policy file of the Java 2 Platform. This security policy file can be found in the jre/lib/security subdirectory of the Java 2 Platform installation directory. To use JDBC data sources, all code bases must have the following permissions:// permissions granted to all domains
grant {
// DataSource access
permission java.util.PropertyPermission "java.naming.*", "read,write";
// Adjust the server host specification for your environment
permission java.net.SocketPermission "*.microsoft.com:0-65535", "connect";
}; To use insensitive scrollable cursors, and perform client-side sorting of some DatabaseMetaData ResultSets, all code bases must have access to temporary files. For JDK 1.1 environments, access to "current working directory" must be granted. For Java 2 environments, access to the temporary directory specified by the VM configuration must be granted. The following is an example of permissions being granted for the C:\TEMP directory:// permissions granted to all domains
grant {
// Permission to create and delete temporary files.
// Adjust the temporary directory for your environment.
permission java.io.FilePermission "C:\\TEMP\\-", "read,write,delete";
};
grant {
// DataSource access
permission java.util.PropertyPermission "java.naming.*", "read,write";
// Adjust the server host specification for your environment
permission java.net.SocketPermission "*.microsoft.com:0-65535", "connect";
}; To use insensitive scrollable cursors, and perform client-side sorting of some DatabaseMetaData ResultSets, all code bases must have access to temporary files. For JDK 1.1 environments, access to "current working directory" must be granted. For Java 2 environments, access to the temporary directory specified by the VM configuration must be granted. The following is an example of permissions being granted for the C:\TEMP directory:// permissions granted to all domains
grant {
// Permission to create and delete temporary files.
// Adjust the temporary directory for your environment.
permission java.io.FilePermission "C:\\TEMP\\-", "read,write,delete";
};
解决方案 »
- java io操作,file stream转换
- jquery 哪个版本解决ajax跨区域问题
- Hibernate的Session什么时候关闭最好?
- 新学框架,请问大哥大姐有什么建议吗
- my sql 下载
- Struts的<html:multibox>标签,如何在初始化时使多选框为选中状态?
- 新人提简单问题
- java写的服务器端用什么数据类型把数据库的记录传递给delphi写的客户端?
- 用POI生成excel文档,sheet名不能显示中文,请赐教
- XML的题目,请大家帮忙做做~~~!?多谢~!~
- SQLSERVER中DateTime型字段,怎么取出,取出后一般怎样转换成java的日期对象?
- 哪里有master EJB英文版以及它的源代码??
SQLServer不是sp3.
SQLServer是混合式登录.
哪里可以看出我的sqlserver是不是打了sp3的?
谢谢,打了SP3可以了.
但我现在用的是BEA的JDBC驱动,怎么装MS提供的驱动,能麻烦讲讲吗?