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

2016-01-29 16:13 2 1 收藏

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

【 tulaoshi.com - 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

来源:https://www.tulaoshi.com/n/20160129/1497918.html

延伸阅读
标签: 电脑入门
第一种:找到win8自带的远程桌面 1、首先受用使用Win8组合快捷键 Win+Q 打开应用搜索界面,如下图: 打开Win8应用搜索界面 2、我们在应用搜索里边输入远程桌面连接,之后在左边我们就可以找到Win8远程桌面了,如下图: 搜索远程桌面连接 3、如上图点击远程桌面连接直接打开即可,另外我们还可以点击右键把它固定到开始屏幕,方便以...
有这样一个需求,需要将原本存储在数据库中的文档转存至文件系统中,于是写了一个简单的程序完成此功能,代码如下: Java代码 代码如下: import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; imp...
标签: windows系统
Win8.1远程桌面连接在哪?   一、Win8.1远程桌面连接在哪? 找到Win8.1远程桌面其实有多种方法,以下我们分别介绍下: 方法一: 在Win8.1桌面界面下,使用 Windows + R组合快捷键,打开运行对话框,如下图所示: 打开开始运行对话框后,我们再键入 mstsc 远程桌面命令,完成后,点击底部的确定即可打开Win8...
标签: Java JAVA基础
  第一步:我们来做一些前期的准备工作—软件的下载及安装:   jdk是1.4下载:http://java.sun.com/j2se/1.4/index.html 全部是默认的安装方式(窍门最好把jdk的目录设置成简单的形势如d:\jdk1.4) 然后测试以下是否安装成功:运行cmd---〉键入javac命令—〉看到java的帮助行证明安装成功。   MySQL的安装:如果你用的是...
win7系统开启远程桌面实现远程连接图文教程 远程连接可以帮助我们事先很多的电脑操作,举个最简单的例子,若是有的东西咱们自己不会操作,只需要别人在远程操作中来控制我们的电脑便可以让我们像看视频一样学习一次了,功能有些类似于QQ程序上的远程桌面控制吧,不过相对来说,使用win7 中自带的远程连接会更加流畅一些,很多用户都应该...

经验教程

802

收藏

77
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部