Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on VFP vs VB Script syntax
Message
From
21/03/2001 01:03:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Question on VFP vs VB Script syntax
Miscellaneous
Thread ID:
00487126
Message ID:
00487126
Views:
36
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
Next
Reply
Map
View

Click here to load this message in the networking platform