win98+PWS环境下连接读取远程SQLServer

别扭啊真

别扭啊真

2016-01-29 16:13

win98+PWS环境下连接读取远程SQLServer,win98+PWS环境下连接读取远程SQLServer
  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
展开更多 50%)
分享

猜你喜欢

win98+PWS环境下连接读取远程SQLServer

SQLServer
win98+PWS环境下连接读取远程SQLServer

Windows 98下安装Apache(PWS) PHP4MySQLphpMyAdmin的方法

PHP
Windows 98下安装Apache(PWS) PHP4MySQLphpMyAdmin的方法

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

配置 SQLServer2005 以允许远程连接

编程语言 网络编程
配置 SQLServer2005 以允许远程连接

在win98下安装JSP环境(jswdk或tomcat在Jdk1.3下)

Java JAVA基础
在win98下安装JSP环境(jswdk或tomcat在Jdk1.3下)

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

98下安装JSP环境的俩常见问题

Java JAVA基础
98下安装JSP环境的俩常见问题

Linux环境下如何去远程登录Windows

Linux Linux命令 Linux安装 Linux编程 Linux桌面 Linux软件 Linux内核 Linux管理
Linux环境下如何去远程登录Windows

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

巧设置 轻松用酷我音乐盒来听歌

巧设置 轻松用酷我音乐盒来听歌

用QQ听网络收音机的六种方法

用QQ听网络收音机的六种方法
下拉加载更多内容 ↓