General information
Title:
Connection string for CursorAdapter
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only