| 发表于:2007-02-09 13:50:20 楼主 |
代码如下 在执行 db.EXECutenonquery(dbcommand);这行 就死机了 也没什么出错提示 问题是在别的电脑上有能执行 请大家帮我看下 database db = databasefactory.createdatabase(); string sqlcommand = "dbo.sp_check_userlogin "; dbcommand dbcommand = db.getstoredproccommand(sqlcommand); db.addinparameter(dbcommand, "@username ", dbtype.string, username); db.addinparameter(dbcommand, "@password ", dbtype.string, password); db.addoutparameter(dbcommand, "@result ", dbtype.string, 50); //get the result db.EXECutenonquery(dbcommand); result = db.getparametervalue(dbcommand, "@result ").tostring(); |
|
|
|
|