var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20738293-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script')"/>
<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    jutleo
    歡迎走進有風的地方~~
    posts - 63,  comments - 279,  trackbacks - 0
    異常:

    Class.forName(DBDRIVER);
                conn 
    = DriverManager.getConnection(DBURL,DBUSERNAME,DBPASSWORD);
                stmt 
    = conn.createStatement();
                sql 
    = "SELECT name FROM userInformation WHERE id='"+username+"' and password='"+password+"'";
                rs 
    = stmt.executeQuery(sql);
                
    if(rs.next())
                {
                    flag 
    = true;
                }
                rs.
    close();
                stmt.
    close();
                conn.
    close();

    代碼出現類似”
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]對象名 'userInformation’無效。”異常
    解決方法:控制臺根目錄\Microsoft SQL Server\SQL Server 組\(local)(Windows NT)\安全性\登陸修改sa賬戶默認數據庫為你使用的數據庫.還可西新建數據庫,選擇默認數據庫為你使用的數據庫


    異常:
        SQLServer2000默認連接端口為1434端口,有時連接異常時可能是端口被占用的緣故,可以通過修改端口解決,
        解決方法:服務器網絡實用工具\常規\啟用協議,選擇TCP/IP屬性修改端口即可,服務器需要重啟.

    異常:

    jsp頁面中表單提交的中文數據編碼格式要轉換成gb2312后,再插入到數據庫。 String after=new String(before.getBytes("iso-8859-1"),"gb2312"); before為原始中文數據,after是經過轉換后要提交到數據庫里的數據。
    異常:
        SQLServer 2000中如何設置向Access一樣的ID自動編號
    出現異常:SQLServer 缺少列數,列數不匹配
    選中ID列,設置數據類項為(int/number)列屬性里設置標識為是,標識種子為1,表示增量為1

    異常:
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]將截斷字符串或二進制數據。
    多半是由于段長度大小的問題,你插入的內容的長度大于該字段定義的長度

    異常
    [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    檢查你的數據庫服務器有沒有開啟,端口是否占用,配置是否正確,其次看看下面的異常處理
    "Error establishing socket" exception while connecting to the database
    Symptom: while running a windows application that includes massive opening and closing of a connections to database server, "Error establishing socket" exception appears after a short time of execution. 
    Cause: This problem is caused by a lack of a reusable sockets on client machine, since each TCP/IP connection stays in the TIME_WAIT state when the connection is being closed. While a connection is in this state, the socket cannot be reused. 
    Resolution: do one of the following: 
    Increase the port range that is used for anonymous ports to approximately 20,000 ports (for example) by modifying the MaxUserPort registry key (this parameter controls the maximum port number that is used when an application requests any available user port from the system). Windows uses the conventional BSD range of 1024 to 5000 for its anonymous (ephemeral) port range. You can set only the upper bound of the ephemeral port range. To modify the MaxUserPort registry key, follow these steps: 
    Start Registry Editor (Regedt32.exe). Please note that you should backup your registry and any important files on your computer before editing the registry. 
    Locate the MaxUserPort key in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters 
    On the Edit menu, click Add Value, and then add the following registry value: 
    Value Name: MaxUserPort 
    Data Type: REG_DWORD 
    Value: 65534 (for example) 
    Valid Range: 5000-65534 (decimal) 
    Default: 0x1388 (5000 decimal) 
    Quit Registry Editor. 
    Change the timeout on the connections from 240 seconds (the default) to any length from 30 seconds to 300 seconds. Use the TcpTimedWaitDelay registry parameter to change this value. To do this, start Registry Editor (Regedt32.exe), locate the following key in the registry, and then modify the value HKEY_LOCAL_MACHINE\System\CurrectControlSet\services\Tcpip\Parameters (this parameter determines the length of time that a connection stays in the TIME_WAIT state when the connection is being closed. While a connection is in the TIME_WAIT state, the socket pair cannot be reused. For more information, see RFC 793): 
    Value Name:TcpTimedWaitDelay 
    Value Type: REG_DWORD-time in seconds 
    Valid Range: 30-300 (decimal) 
    Default: 0xF0 (240 decimal) 

    異常:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Invalid parameter binding(s).

    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]將截斷字符串或二進制數據。
    posted on 2007-11-28 18:26 凌晨風 閱讀(1757) 評論(0)  編輯  收藏 所屬分類: Java學習筆記

    <2007年11月>
    28293031123
    45678910
    11121314151617
    18192021222324
    2526272829301
    2345678

    常用鏈接

    留言簿(11)

    我參與的團隊

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    收藏夾

    圍脖

    最新隨筆

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲女人18毛片水真多| 亚洲国产精品无码成人片久久| 久久精品国产亚洲77777| 黄色视频在线免费观看| 精品国产人成亚洲区| 国产大片免费天天看| 亚洲黄黄黄网站在线观看| 女人裸身j部免费视频无遮挡| 免费日本黄色网址| 无人视频在线观看免费播放影院| 国产一卡二卡≡卡四卡免费乱码| 怡红院亚洲红怡院在线观看| 国产老女人精品免费视频| 免费观看又污又黄在线观看| 亚洲最大av无码网址| 大地资源在线资源免费观看| 亚洲国产精品VA在线看黑人| 99久久免费观看| 亚洲一级特黄特黄的大片| 色播在线永久免费视频| 免费人人潮人人爽一区二区| 国产国拍精品亚洲AV片| 一级毛片全部免费播放| 亚洲最大成人网色香蕉| 国产性生交xxxxx免费| 两个人看的www免费高清| 亚洲视频在线观看免费视频| 免费精品人在线二线三线区别| 蜜桃传媒一区二区亚洲AV| 久久乐国产精品亚洲综合| 蜜桃成人无码区免费视频网站| 亚洲一区中文字幕在线电影网| 日本一线a视频免费观看| a级毛片黄免费a级毛片| 亚洲国产亚洲片在线观看播放| 四虎成人免费观看在线网址| 又黄又大的激情视频在线观看免费视频社区在线 | 免费在线视频你懂的| 亚洲AV无码专区在线电影成人| 国产亚洲视频在线播放| 国产香蕉免费精品视频|