<script language=javascript runat=server>
//用 JavaScript 写服务器端连接数据库的代码示例
var conn = new ActiveXObject(ADODBConnection);
connOpen(Provider=SQLOLEDB; Data Source=localhost; User ID=sa;
+Password=password; Initial Catalog=meizz);
var rs = new ActiveXObject(ADODBRecordset);
var sql=select user_kind from tbRightSet where user_id=+ Account +;
rsopen(sql conn);
if (!rsEOF)
{
sysUserKind = (rs(user_kind)+)replace(/^\s+|\s+$/ );
}
rsclose(); rs = null; connclose(); conn = null;
</script>