计算机数据

from: Remote SQL server Using PWS in win 98I 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 'ww.Planet-Source-Code.com/xq/ASP/txtCode'Id.6518/lngWId.4/qx/vb/scripts/ShowCode.'htm'for details.'**************************************HTMLHEADTITLE ASP_PUBS/SQL Server In NT server/TITLE/HEADBODYCENTER%Dim objConn, objRS, strQ, strOut, ISet objConn = Server.CreateObject(ADODB.Connection)objConn.open Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=pubs;Data Source=/URServerNameSet 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=4Connected To the Database Pubsusing connect String Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=pubs;Data Source=/URServernameTH EmployeeID /THTH FirstName /THTH LastName /THTH job_id /TH% Do While Not objRS.EOF % TRTD % = objRS(emp_id) %TD % = objRS(fname) %TD % = objRS(lname) %/TRTD % = objRS(job_id) %/TR% objRS.MoveNext %% Loop %% objRS.Close %% Set objRS = Nothing %% Set objConn = Nothing %/TABLE/CENTER/BODY/HTML>

其他新闻
  • unit Unit1; interface uses   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, shellapi, //ADD shellapi     AppEvnts, ImgList, Menus; const      ghy_tray=wm_user+2;      type   TForm1 ...
    2020-02-26
  • 最近在公司写一个外壳程序,调用DLL插件把FORM嵌入到EXE中的一个PANEL中,其中遇到了不少的问题,大部分已经解决,还有几个至今没有找到解决方法,有待研究,也希望知道解决方法的富翁共享...
    2020-02-26
  •   unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,Forms, Dialogs, StdCtrls; type TForm1 = class(TForm)     Button1: TButton;     Button2: TButton;     procedure Button1Click(Sender: TO...
    2020-02-26
友情链接

公司名称巴黎人电玩
版权所有:Copyright © 2015-2019 http://www.zhongqiangjy.com. 巴黎人电玩有限公司 版权所有

友情链接

Copyright © 2015-2019 http://www.zhongqiangjy.com. 巴黎人电玩有限公司 版权所有
公司地址http://www.zhongqiangjy.com