选择显示字体大小

win98+pws环境下连接读取远程sqlserver


  from: http://www.pl.net-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.pl.net-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>
    <&#37;
    dim objconn, objrs, strq, strout, i
    set objconn = server.createobject(&quot;adodb.connection&quot;)
    objconn.open &quot;provider=sqloledb.1;integrated security=sspi;persist security info=false;initial
catalog=pubs;data source=\\urservername&quot;
    set objrs = server.createobject(&quot;adodb.recordset&quot;)
    strq = &quot;select emp_id, fname, lname,job_id &quot;
    strq = strq & &quot;from employee &quot;
    objrs.open strq, objconn, , , adcmdtext
    &#37;>
    <table border=1 cellpadding=4>
    connected to the database pubs
    using connect string &quot;provider=sqloledb.1;integrated security=sspi;persist security info=false;initial
catalog=pubs;data source=\\urservername&quot;
    <th> &quot;employeeid&quot; </th>
    <th> &quot;firstname&quot; </th>
    <th> &quot;lastname&quot; </th>
    <th> &quot;job_id&quot; </th>
    <&#37; do while not objrs.eof &#37;> <tr>
    <td> <&#37; = objrs(&quot;emp_id&quot;) &#37;>
    <td> <&#37; = objrs(&quot;fname&quot;) &#37;>
    <td> <&#37; = objrs(&quot;lname&quot;) &#37;></tr>
    <td> <&#37; = objrs(&quot;job_id&quot;) &#37;></tr>
    <&#37; objrs.movenext &#37;>
    <&#37; loop &#37;>
    <&#37; objrs.close &#37;>
    <&#37; set objrs = nothing &#37;>
    <&#37; set objconn = nothing &#37;>
    </table>
    </center>
    </body>
    </html>


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons