久久久999精品视频,成人77777,成人欧美一区二区三区在线观看http://www.aygfsteel.com/wangbbs2007/category/41822.htmlwww.kuangtao.netzh-cnWed, 21 Apr 2010 23:22:26 GMTWed, 21 Apr 2010 23:22:26 GMT60如何遠(yuǎn)程連接SQL Server數(shù)據(jù)庫http://www.aygfsteel.com/wangbbs2007/articles/318720.html狂淘購物網(wǎng)狂淘購物網(wǎng)Mon, 19 Apr 2010 04:32:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/318720.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/318720.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/318720.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/318720.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/318720.htmlSQL2000所使用的1433端口及MySQL使用的3306端口就會(huì)自動(dòng)被關(guān)閉。如果您需要在不同的服務(wù)器之間連接數(shù)據(jù)庫,您就需要在數(shù)據(jù)庫管理面板中設(shè)置你本機(jī)IP才能遠(yuǎn)程連接數(shù)據(jù)庫。 如下圖:

此圖在數(shù)據(jù)庫管理面板里的:設(shè)置遠(yuǎn)程連接


 1.右鍵點(diǎn)擊“SQLServer組”,點(diǎn)擊“新建SQL Server注冊”,如下圖:

 

2.輸入您的數(shù)據(jù)庫的IP地址,并點(diǎn)擊“添加”、“下一步”

3.點(diǎn)擊第二項(xiàng)“(SQL Server身份驗(yàn)證)”、“下一步”

4.輸入您的數(shù)據(jù)庫用戶名和密碼,點(diǎn)擊“下一步”

5.點(diǎn)擊“下一步”

6.點(diǎn)擊“完成”

7.數(shù)據(jù)庫連接成功

www.kuangtao.net 狂淘購物網(wǎng)

狂淘購物網(wǎng) 2010-04-19 12:32 發(fā)表評論
]]>
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write error http://www.aygfsteel.com/wangbbs2007/articles/307916.html狂淘購物網(wǎng)狂淘購物網(wǎng)Thu, 31 Dec 2009 07:14:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/307916.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/307916.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/307916.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/307916.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/307916.html   http://www.microsoft.com/downloads/details.aspx?FamilyId=90DCD52C-0488-4E46-AFBF-ACACE5369FA3&displaylang=zh-cn  
   
  2、下載SQL   Server   2000   Driver   for   JDBC   Service   Pack   3  
  http://www.microsoft.com/downloads/details.aspx?FamilyId=07287B11-0502-461A-B138-2AA54BFDC03A&displaylang=en  
   
  3、運(yùn)行時(shí)關(guān)閉防火墻
來源:狂淘購物網(wǎng)  www.kuangtao.net

狂淘購物網(wǎng) 2009-12-31 15:14 發(fā)表評論
]]>
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]ResultSet can not re-read row data for column 10.http://www.aygfsteel.com/wangbbs2007/articles/307912.html狂淘購物網(wǎng)狂淘購物網(wǎng)Thu, 31 Dec 2009 06:38:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/307912.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/307912.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/307912.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/307912.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/307912.html使用SQLServer 數(shù)據(jù)庫時(shí),可能發(fā)生此異常,原因是微軟自己的jdbc驅(qū)動(dòng)不支持同一個(gè)記錄的字段的重復(fù)讀取,因?yàn)槲④浖尤肓藅ext,image這種類型的支持,就限制了字段的回讀功能.

解決方法:按照順序(從左到右的順序)讀取字段,例如(getString(1),getString(2),getString(3)....);當(dāng)然這個(gè)是微軟jdbc驅(qū)動(dòng)的一個(gè)bug,我們也可以不用他的驅(qū)動(dòng),自己到網(wǎng)上下載jtds.jar驅(qū)動(dòng),使用這種驅(qū)動(dòng)就不會(huì)出現(xiàn)上面的異常了.


來源:狂淘網(wǎng) www.kuangtao.net


狂淘購物網(wǎng) 2009-12-31 14:38 發(fā)表評論
]]>
sqlserver 2008 安裝提示 重新啟動(dòng)計(jì)算機(jī) sqlserver 2000以前的某個(gè)程序安裝已在安裝計(jì)算計(jì)上創(chuàng)建掛起的文件操作。運(yùn)行安裝程序之前必須重新啟動(dòng)計(jì)算機(jī)http://www.aygfsteel.com/wangbbs2007/articles/306642.html狂淘購物網(wǎng)狂淘購物網(wǎng)Sat, 19 Dec 2009 03:47:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/306642.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/306642.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/306642.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/306642.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/306642.html  中找到 PendingFileRenameOperations 項(xiàng)目,并刪除它。這樣就可以清除安裝暫掛項(xiàng)目。

  注意:不用重起電腦,繼續(xù)安裝即可!
   來源:狂淘網(wǎng)    www.kuangtao.net



狂淘購物網(wǎng) 2009-12-19 11:47 發(fā)表評論
]]>
sql server 分頁 sql語句http://www.aygfsteel.com/wangbbs2007/articles/298274.html狂淘購物網(wǎng)狂淘購物網(wǎng)Wed, 14 Oct 2009 10:11:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/298274.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/298274.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/298274.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/298274.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/298274.htmlSQL Server 2000/2005 分頁SQL — 單條SQL語句
SELECT TOP 頁大小 *
FROM table1
WHERE id NOT IN
          (
          
SELECT TOP 頁大小*(數(shù)-1) id FROM table1 ORDER BY id
          )
ORDER BY id


狂淘購物網(wǎng) 2009-10-14 18:11 發(fā)表評論
]]>
sqlServer 2008 jdbc 連接池http://www.aygfsteel.com/wangbbs2007/articles/297581.html狂淘購物網(wǎng)狂淘購物網(wǎng)Fri, 09 Oct 2009 09:11:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/297581.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/297581.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/297581.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/297581.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/297581.htmljava+jsp+ tomcat6+ mysql 連接池大多數(shù)是tomcat5 的,很多都說得不詳細(xì)

1. 將sqlserver2008.jar添加到   D:\apache-tomcat-6.0.10\apache-tomcat-6.0.10\lib

2.配置tomcat下的conf下的context.xml文件,在<context></context>之間添加連接池如下:

   <Resource name="jdbc/TestDB"

              auth="Container"

              type="javax.sql.DataSource"

              maxActive="100"

              maxIdle="30"  

              maxWait="10000" 

               username="sa"     

              password="111"

              driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" 

              url="jdbc:sqlserver://localhost:1433;DatabaseName=CuLeg" />

3.配置你的應(yīng)用下的web.xml中的<web-app></web-app>之間加入:  xml 代碼

<resource-ref>

  <description>DB Connection</description>

  <res-ref-name>jdbc/TestDB</res-ref-name>

  <res-type>javax.sql.DataSource</res-type>

  <res-auth>Container</res-auth>

 </resource-ref>

4.大功告成,不用在原來的server.xml里面配置了,下面就可以編寫測試程序了,這個(gè)網(wǎng)上就很多了,主要的就上面,當(dāng)然要把連接驅(qū)動(dòng)程序都放到tomcat6下的lib下面.測試代碼如下:

<%@ page language="java" contentType="text/html; charset=UTF-8"
 pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>

<%@ page import="javax.sql.*"%>

<%@ page import="javax.naming.*"%>

<%@ page session="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Insert title here</title>
  

 </head>
 <body>
     <%out.println("<h1>Hello,test JNDI ! </h1>");%>

       <%
        DataSource ds=null;
          InitialContext ctx = new InitialContext();  

       // Context envctx = (Context) ctx.lookup("java:comp/env");  

       // DataSource ds = (DataSource) envctx.lookup("jdbc/TestDB");  
        ds=(DataSource)ctx.lookup("java:comp/env/jdbc/TestDB");
        Connection conn=ds.getConnection();  
        Statement st=conn.createStatement();    
        String   sql="select   *   from   account";  
        ResultSet   rs=st.executeQuery(sql);  
        while(rs.next())   {%>  
           您的第一個(gè)字段內(nèi)容為:<%=rs.getString(1)%>  
           您的第二個(gè)字段內(nèi)容為:<%=rs.getString(2)%>  
             <br>
        <%}%>  
         <%out.print("使用jdbc驅(qū)動(dòng)操作數(shù)據(jù)庫操作成功,恭喜你");%>  
        <%rs.close();  
        st.close();  
        conn.close();  
        %> 
  


 </body>
</html>




]]>
sqlserver 驅(qū)動(dòng) 2000與2005或2008區(qū)別 http://www.aygfsteel.com/wangbbs2007/articles/297570.html狂淘購物網(wǎng)狂淘購物網(wǎng)Fri, 09 Oct 2009 08:22:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/297570.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/297570.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/297570.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/297570.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/297570.html="com.microsoft.jdbc.sqlserver.SQLServerDriver"
                                            url
="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=JiLv"
     sqlServer2005/2008:      

                                           driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" 

                                          url="jdbc:sqlserver://localhost:1433;DatabaseName=CuLeg"



狂淘購物網(wǎng) 2009-10-09 16:22 發(fā)表評論
]]>
SQL Server 2008 阻止保存要求重新創(chuàng)建表的更改http://www.aygfsteel.com/wangbbs2007/articles/296966.html狂淘購物網(wǎng)狂淘購物網(wǎng)Wed, 30 Sep 2009 00:45:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/296966.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/296966.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/296966.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/296966.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/296966.html微軟新出了SQL Server 2008 數(shù)據(jù)庫系統(tǒng)。在建完表后,如果要插入任意列,則提示,‘阻止保存要求重新創(chuàng)建表的更改’。

查了資料才明白如何解決這個(gè)問題。

當(dāng)用戶在在SQL Server 2008企業(yè)管理器中更改表結(jié)構(gòu)時(shí),必須要先刪除原來的表,然后重新創(chuàng)建新表,才能完成表的更改,如果強(qiáng)行更改會(huì)出現(xiàn)以下提示: 不允許保存更改。您所做的更改要求刪除并重新創(chuàng)建以下表。您對無法重新創(chuàng)建的標(biāo)進(jìn)行了更改或者啟用了“阻止保存要求重新創(chuàng)建表的更改”選項(xiàng)。


如果要去掉此提示,打開SQL 2008 在最上面
工具-〉選項(xiàng)-〉左側(cè)有個(gè) 設(shè)計(jì)器-〉表設(shè)計(jì)器和數(shù)據(jù)庫設(shè)計(jì)器 -> 阻止保存要求重新創(chuàng)建表的更改(右側(cè)) 把鉤去重新啟動(dòng)2008即可

狂淘購物網(wǎng) 2009-09-30 08:45 發(fā)表評論
]]>
sql server 2008 express 安裝的時(shí)提示“重啟計(jì)算機(jī)失敗http://www.aygfsteel.com/wangbbs2007/articles/296835.html狂淘購物網(wǎng)狂淘購物網(wǎng)Mon, 28 Sep 2009 12:30:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/296835.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/296835.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/296835.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/296835.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/296835.html

狂淘購物網(wǎng) 2009-09-28 20:30 發(fā)表評論
]]>
附加.mdf和.ldf,數(shù)據(jù)庫成了只讀的的解決方法http://www.aygfsteel.com/wangbbs2007/articles/296432.html狂淘購物網(wǎng)狂淘購物網(wǎng)Fri, 25 Sep 2009 07:40:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/296432.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/296432.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/296432.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/296432.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/296432.html SQL Server 2005中,附加.mdf和.ldf文件后,數(shù)據(jù)庫成了只讀的的解決方法.

如下:

1.打開 SQL Server Configuration Manager, 打開SQL Server SQLEXPRESS 的屬性

2.打開SQL2005服務(wù),打開右邊的SQL Server (SQLEXPRESS)的屬性,在彈出的窗口的登錄現(xiàn)象卡,登錄身份,內(nèi)置帳戶處,把“網(wǎng)絡(luò)服務(wù)”改成“本地系統(tǒng)”,重新啟動(dòng)SQL Server 2005 Express 后,再附加(Attach)數(shù)據(jù)庫一切正常。

啟動(dòng)SQL Server 的默認(rèn)的啟動(dòng)帳號(hào)“網(wǎng)絡(luò)服務(wù)”對所附加的數(shù)據(jù)庫文件的權(quán)限不夠造成的。,所以才會(huì)附加(Attach)上的數(shù)據(jù)庫為“只讀”。


本文來自CSDN博客,轉(zhuǎn)載請標(biāo)明出處:http://blog.csdn.net/wjhgzx/archive/2009/03/27/4031225.aspx



狂淘購物網(wǎng) 2009-09-25 15:40 發(fā)表評論
]]>
SQL Server Express — 易于使用http://www.aygfsteel.com/wangbbs2007/articles/296242.html狂淘購物網(wǎng)狂淘購物網(wǎng)Thu, 24 Sep 2009 02:12:00 GMThttp://www.aygfsteel.com/wangbbs2007/articles/296242.htmlhttp://www.aygfsteel.com/wangbbs2007/comments/296242.htmlhttp://www.aygfsteel.com/wangbbs2007/articles/296242.html#Feedback0http://www.aygfsteel.com/wangbbs2007/comments/commentRss/296242.htmlhttp://www.aygfsteel.com/wangbbs2007/services/trackbacks/296242.htmlSQL Server 2005 Express Edition 是 MSDE 的下一個(gè)版本,它是免費(fèi)、易于使用、可嵌入的 SQL Server 2005 輕型版本。可免費(fèi)下載、重新發(fā)布、嵌入,便于新的開發(fā)人員立即使用。SQL Server Express 包含強(qiáng)大的功能(如 SQL Server Management Studio Express),可以輕松地管理數(shù)據(jù)庫。繼續(xù)閱讀以了解有關(guān) SQL Server Express Edition 的優(yōu)勢的更多信息和下載 SQL Server Management Studio。

 

 


查看大圖 >

快速下載和安裝

  • 壓縮包下載。
  • 在 20 分鐘內(nèi)即可安裝并運(yùn)行。
  • 注冊 SQL Server Express Edition。

 

 


查看大圖 >

簡化的管理

  • 自動(dòng)調(diào)整數(shù)據(jù)庫以達(dá)到最佳性能。
  • 使用 Microsoft Update 自動(dòng)接收最新的修補(bǔ)程序和更新,從而獲取高級(jí)別的安全性和最新的功能。

 

 


查看大圖 >

免費(fèi)管理工具:SQL Server Management Studio

  • 可以下載 SQL Server Management Studio Express(從下面單獨(dú)下載),它是一個(gè)簡單有效的 SQL Server Express 管理工具。
  • 使用 SQL Server Management Studio 可以享受對 SQL Server 2005 的所有版本一致的管理體驗(yàn)。


下載 SQL Server Management Studio Express

 

 


查看大圖 >

與 Visual Studio 速成版的無縫集成

  • 適用于構(gòu)建 Windows 應(yīng)用程序和網(wǎng)站的無縫集成數(shù)據(jù)體驗(yàn)。

 

 


查看大圖 >

易于部署

  • 使用 XCopy 和 ClickOnce 部署可輕松地將 SQL Server Express 數(shù)據(jù)庫移動(dòng)或復(fù)制到另一臺(tái)計(jì)算


狂淘購物網(wǎng) 2009-09-24 10:12 發(fā)表評論
]]>
主站蜘蛛池模板: 上栗县| 宝应县| 长乐市| 临汾市| 黄陵县| 井冈山市| 舒城县| 长顺县| 屏山县| 曲沃县| 南汇区| 新乡县| 延安市| 沐川县| 渝中区| 巴楚县| 卓尼县| 临洮县| 永川市| 彭州市| 新干县| 延庆县| 中卫市| 武宣县| 津市市| 彭泽县| 华池县| 汨罗市| 密云县| 黄梅县| 肃宁县| 绥德县| 武邑县| 赤壁市| 桑日县| 云南省| 府谷县| 奇台县| 盐城市| 芜湖市| 房产|