Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on VFP vs VB Script syntax
Message
De
21/03/2001 01:03:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Question on VFP vs VB Script syntax
Divers
Thread ID:
00487126
Message ID:
00487126
Vues:
35
The road to learning ASP is a strange one...I have a simple SQL server database that I'm trying to read from...

The following code works perfectly in VFP:

*oConnection = CreateObject("ADODB.Connection")
*oConnection.Open("Driver=SQL Server;Server=SYNECTIC-DJ1HR3;Database=MSCDATA; * USERID = KEVIN; PASSWORD = 90125")
*oRecordSet = CREATEOBJECT("ADODB.Recordset")
*oRecordSet.Open('HierDtl',oConnection)

Once that code executes, I can successfully navigate through and display values from a field.

However, the following code in an ASP page using VB Script...


*DIM oConnection
*SET oConnection = Server.CreateObject("ADODB.Connection")
*oConnection.ConnectionString = "Driver=SQL Server;
* Server=SYNECTIC-DJ1HR3;Database=MSCDATA; USERID = KEVIN; PASSWORD = 90125"
*oConnection.Open


...generates all types of errors about invalid login, or not associated with a trusted SQL Server, etc.

Same machine, same user logon, same connection string...it works within VFP 6, but not from VBSCRIPT...any ideas? (And if I should be posting this under a different forum, please let me know)

These are the days that make me wish I could pay someone like a JVP or Griver to sit in my office and answer my stupid questions!

Kevin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform