all groups > sql server msde > september 2005 >
You're in the

sql server msde

group:

VBScript MSDE connectivity


Re: VBScript MSDE connectivity Norman Yuan
9/21/2005 8:13:52 AM
sql server msde: Not much difference from what you do in VB.

Assume you want to open a ADO RecordSet in ASP (written in VBScript) to in
your Windows user logon/off script:

Dim cn
Dim rs

Set cn=CreateObject("ADODB.Connection)
cn.Open connectionString

Set rs=CreateObject("ADODB.RecordSet")
rs.Open "SELECT * FROM theTable",cn
.....

rs.Close
cn.Close


[quoted text, click to view]

VBScript MSDE connectivity Aarthi via SQLMonster.com
9/21/2005 10:09:01 AM
What are the options to be given while coding in VBScript when connecting it
Re: VBScript MSDE connectivity Andrea Montanari
9/21/2005 12:28:15 PM
hi,
[quoted text, click to view]
I'm sorry but I do not understand your problem... what are you trying to
achieve?
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtm http://italy.mvps.org
DbaMgr2k ver 0.15.0 - DbaMgr ver 0.60.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
--------- remove DMO to reply

Re: VBScript MSDE connectivity Andrew D. Newbould
9/27/2005 12:17:17 AM
In message <u9ZX07rvFHA.708@TK2MSFTNGP10.phx.gbl>, Norman Yuan
<NotReal@NotReal.not> writes
[quoted text, click to view]

In ASP (using VBScript) change to:

Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.RecordSet")

The "CreateObject" method is only available under the Server object in
ASP. Everything else from then on; like accessing and updating the
database; is the same assuming you are using MSDE, SQL Server or other
server based database.

On some servers you may need to specify the Connection object by using
its Class-ID in order to specify the actual ADO version, but this is
rare.

If using an Access database you normally have to use the
"Server.MapPath" command to enable the connection string to get the
correct path to the database file (remember what you see from the server
/ ISP is not the REAL path to the database which the Access Driver MUST
have). For example:

strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &
Server.MapPath("./Data/MyAccessDBFile.mdb")

--
Andrew D. Newbould E-Mail: newsgroups@NOSPAMzadsoft.com

Re: VBScript MSDE connectivity ChrisR
12/16/2005 10:42:05 AM

[quoted text, click to view]

AddThis Social Bookmark Button