informix连接数据库基础问题

来源:百度知道 编辑:UC知道 时间:2024/06/06 16:05:53
很简单,如下
class.forname("com.informix.jdbc.ifxdriver").newinstance();
string url="jdbc:informix-sqli://192.168.1.80:8765/mobilemgr:
informixserver=e4502;user=pos;password=pospos";
connection conn= drivermanager.getconnection(url);
里边的这句informixserver=e4502;我想清楚informixserver=“??”,这个“??”这块代表什么?因该添写什么?
拍卖黑名单 你说的和我问的不贴边,知道的写下,先谢谢了,不知道别瞎粘别人的东西

真叫人失望,换个论坛去

注意设定DSN的安全设置,应该给Everyone读的权利
范例
<%
UserName=trim(request("UserName"))
Password=trim(request("Password"))
set conn=server.createobject("adodb.connection")
conn.open"PROVIDER=MSDASQL;dsn=GipDb;uid=informix;pwd=informix;database=gipdb;"
sql="select * from informix.tjdeng where username='"&UserName&"' and password='"&Password&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
if rs.eof and rs.bof then
session("Enable")=0
response.redirect "loginnotok.asp"
else
session("UserName")=UserName
session("Enable")=1
response.redirect "main.asp"
end if
rs.close
set rs=nothing
conn.close