Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection string for CursorAdapter
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Connection string for CursorAdapter
Miscellaneous
Thread ID:
00904126
Message ID:
00904126
Views:
72
Hi All,

We are working on ASP.NET application that uses COM object written in Foxpro. Both ASP.NET application and COM object have to connect to SQL Server using 'NT AUTHORITY\NETWORK SERVICE' user that belongs to IIS_WPG. We are using CursorAdaptor to connect to SQL Server.

This connection string works for connecting ASP.NET and SQL Server:

"Persist Security Info=False;Integrated Security=true;server=MyProjects;database=MYDB;Connect Timeout=30;"


Do you know how this connection string will look in Foxpro?
The following code produse the connection error.

loCursor = createobject('CursorAdapter')
with loCursor
.Alias = 'ca_myTbl'
.DataSourceType = 'ODBC'
.DataSource = sqlstringconnect('driver=SQL Server;' + ;
'Persist Security Info=False;Integrated Security=true;' + ;
'server=MYPROJECTS;database=MyDB;Connect Timeout=30;')
.SelectCmd = "select * from mytbl"
.KeyFieldList = lcKey
.Tables = 'MyTbl'
.UpdatableFieldList = lcUpdFields
.UpdateNameList = lcUpdNames
if .CursorFill()
browse
else
aerror(laErrors)
messagebox(laErrors[2])
endif .CursorFill()
endwith


Thanks,
Galina
Next
Reply
Map
View

Click here to load this message in the networking platform