win98+PWS环境下连接读取远程SQLServer
来源:互联网 发布:附加数据库错误9003 编辑:程序博客网 时间:2024/06/06 03:19
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
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>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
from: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=4&txtCodeId=6518Connect/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>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- win98+PWS环境下连接读取远程SQLServer
- 关于WIN98+PWS的系统漏洞和防范措施
- Netbeans的环境下连接SQLSERVER数据库
- sqlserver 远程连接数据源
- SQLServer远程连接配置
- SqlServer无法远程连接
- 远程连接SqlServer数据库
- sqlserver连接远程数据库
- sqlserver 远程连接
- SqlServer远程连接
- SqlServer远程连接配置
- linux环境下远程连接windows
- Win7下连接远程SqlServer慢的问题解决办法
- windows server2008 r2 下启用 sqlserver 2008的远程连接
- win98下配置jsp的运行环境实践
- Win98下安装JSP环境的俩常见问题
- win98下配置jsp的运行环境实践
- 无法远程连接SQLSERVER服务器
- CSS中关于绝对定位和相对定位
- 用SQLServer2000索引视图提高性能(上)
- TSpinEdit的漏洞
- 实例详解CSS的继承性及其应用
- 当前闲
- win98+PWS环境下连接读取远程SQLServer
- 使用Kylix必看:您为Kylix做好准备了么?-BY CKER
- 10个你未必知道的CSS技巧
- 在SQLServer中怎么样恢复数据的存储?
- ACM学习网站
- 号外:Delphi6 新特性 !!!!
- 高分辨率下界面布局的解决方案
- 如何将图片存到数据库中?
- Delphi代码优化(二) 整数篇