作者regionbbs (小朱)
看板C_Sharp
标题Re: [问题] 请较各位大大这段程式码有什麽问题
时间Wed May 21 12:53:43 2008
有一种东西叫做 try/cacth:
try
{
// your code
}
catch (Exception ex)
{
// show your error message from ex.Message
// or, handle this error if you want.
}
用这个来抓错误是什麽。
光看你的说明,很难知道问题在哪里。
只能初步推断是 SQL 的例外,有可能是指令不对,或是其他的 SQL Server 问题。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.70.255.10