国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > 綜合 > 正文

win98+PWS環(huán)境下連接讀取遠程SQLServer

2024-07-21 02:30:44
字體:
供稿:網(wǎng)友
from: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=4&txtCodeId=6518
Connect/Read Remote SQL server Using PWS in win 98


     I had to test Microsoft's Personal Webserver (PWS) in win 98 to access Remote SQL server 7.0
installed in a NT server. The clients to win 98 had LAN connections. Easy one , don't vote, have fun with
PWS. In fact I tested my connection with this script, before I created an out of PRocess server demo with
VB.



  
  

code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!


Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in
compiled format for langauges that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the
original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame.
4) You will abide by any additional copyright restrictions which the author may have placed in the code or
code's description.  


    '**************************************
    ' Name: Connect/Read Remote SQL server U
    '     sing PWS in win 98
    ' Description:I had to test Microsoft's
    '     Personal Webserver (PWS) in win 98 to ac
    '     cess Remote SQL server 7.0 installed in
    '     a NT server. The clients to win 98 had L
    '     AN connections. Easy one , don't vote, h
    '     ave fun with PWS. In fact I tested my co
    '     nnection with this script, before I crea
    '     ted an out of process server demo with V
    '     B.
    ' By: Manas Mukherjee
    '
    ' Assumes:Knowing Little bit of LAN woul
    '     d help , VPN, HTML, Creating Virtual dir
    '     ectory with PWS
    '
    'This code is copyrighted and has    ' limited warranties.Please see http://w
    '     ww.Planet-Source-Code.com/xq/ASP/txtCode
    '     Id.6518/lngWId.4/qx/vb/scripts/ShowCode.
    '     htm    'for details.    '**************************************
    
    <HTML><HEAD>
    <TITLE> ASP_PUBS/SQL Server In NT server</TITLE>
    </HEAD>
    <BODY><CENTER>
    <%
    Dim objConn, objRS, strQ, strOut, I
    Set objConn = Server.CreateObject("ADODB.Connection")
    objConn.open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial
Catalog=pubs;Data Source=//URServerName"
    Set objRS = Server.CreateObject("ADODB.Recordset")
    strQ = "SELECT emp_id, fname, lname,job_id "
    strQ = strQ & "FROM Employee "
    objRS.Open strQ, objConn, , , adCmdText
    %>
    <TABLE BORDER=1 CELLPADDING=4>
    Connected To the Database Pubs
    using connect String "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial
Catalog=pubs;Data Source=//URServername"
    <TH> "EmployeeID" </TH>
    <TH> "FirstName" </TH>
    <TH> "LastName" </TH>
    <TH> "job_id" </TH>
    <% Do While Not objRS.EOF %> <TR>
    <TD> <% = objRS("emp_id") %>
    <TD> <% = objRS("fname") %>
    <TD> <% = objRS("lname") %></TR>
    <TD> <% = objRS("job_id") %></TR>
    <% objRS.MoveNext %>
    <% Loop %>
    <% objRS.Close %>
    <% Set objRS = Nothing %>
    <% Set objConn = Nothing %>
    </TABLE>
    </CENTER>
    </BODY>
    </HTML>



發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 鞍山市| 长葛市| 林甸县| 银川市| 新邵县| 丰都县| 岫岩| 旅游| 永州市| 句容市| 安阳县| 蒙阴县| 东海县| 新疆| 舞钢市| 将乐县| 资阳市| 泰宁县| 个旧市| 南岸区| 讷河市| 普定县| 普洱| 呼玛县| 桐庐县| 营口市| 嘉义市| 甘泉县| 普格县| 哈尔滨市| 广丰县| 柳林县| 深水埗区| 金沙县| 四子王旗| 甘德县| 勃利县| 凌云县| 三穗县| 永顺县| 阿坝县|