首 页 网络编程
网页制作 图形图象 操作系统 冲浪宝典
软件教学 认证考试

网络安全 网络办公 行业资讯 评测对比
您当前位置:站长天空 -> 网络编程-> 数据库教程
win98+pws环境下连接读取远程sqlserver
作者:网友供稿 点击:25
推荐
西部数码-全国虚拟主机10强!20余项虚拟主机管理功能,全国领先!第6代双线路虚拟主机,南北访问畅通无阻!可在线rar解压,自动数据恢复设置虚拟目录等.免费赠送访问统计,企业邮局.Cn域名注册10元/年,自助建站480元起,免费试用7天,满意再付款!P4主机租用799元/月.月付免压金
站内搜索
文章页数:[1] 
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 Microsofts 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 , dont 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:
Cant 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
codes description.  


    **************************************
     Name: Connect/Read Remote SQL server U
         sing PWS in win 98
     Description:I had to test Microsofts
         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 , dont 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>



文章整理:站长天空 网址:http://www.z6688.com/
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

文章页数:[1] 


放大字体显示 缩小字体显示 打印文章 推荐给朋友
热门文章
·jsp留言板源代码4-JSP教程,数据库相关
·“脱衣秀”泛滥 四川打击淫秽色情视频聊天室
·c#中使用 crystal reports (水晶报表)的打包和部署问题-.NET教程,报表/图形/Office
·MDAC2.8 下载!-ASP教程,数据库相关
·数据库安装包的制作(参考MSDN)-.NET教程,安装和部署
·asp讲座之七:asp与数据库(二)
·深度和广度优先分油问题(C#实现)-.NET教程,C#语言
·C#在状态栏中,自绘进度条,-.NET教程,C#语言
·怎么清除sql server日志
·C#中的接口-.NET教程,C#语言
最新文章
·sql server 2005 ce基础概要_数据库教程
·用flash as代码制作按钮弹出窗口_flash教程
·alexa:戏曲性地调整_alexa排名
·google也推出域名注册_google推广
·技巧总结:div中class与id的区别及应用_css教程
·windows vista命令runas.exe全解析_windows vista
·photoshop将美女照片处理成仿古斑驳油画_photoshop教程
·百度主题推广代码的完全解析-知己知彼_网赚技巧
·你的google adsense帐号是否被人盗用?_网赚技巧
·如何挑出google adsense中单价极低的广告商_网赚技巧
相关主题
  • WIN98/2000下的Tomcat服务器-JSP教程,Jsp/Servlet
  • Win98搭建调试ASP,PERL,PHP三种环境-PHP教程,PHP应用
  • Win98搭建调试ASP,PERL,PHP三种环境-ASP教程,系统相关
  • win98和winxp双系统启动菜单的恢复
  • win98/2000下的jsp服务器
  • 西部数码虚拟主机

    友情链接
    CNNIC 西部数码
    万网 自助建站
    虚拟主机 asp空间
    域名注册 域名
    域名申请 主页空间
    论坛空间 网站空间
    国际域名 虚拟空间
    空间租用 DDOS防火墙
    成都主机托管 四川主机托管
    主机租用 服务器租用
    网站目录 自助建站
    虚拟主机 网址大全
    软件下载
    自助链接
    虚拟主机资讯 特价虚拟主机
    版权申明:本站文章均来自网络,如有侵权,请联系我们,我们收到后立即删除,谢谢!
    关于我们:站长天空:专业提供最新的站长资讯、在线教程、虚拟主机权威评测、虚拟主机性能对比、网站制作教程,开发教程,站长工具。包括网页制作教程、冲浪宝典、编程参考、操作系统、软件教学、行业动态等。
    特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有。
    发表评论 打印  刷新     关闭