Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP e ADO
Message
From
28/11/2003 12:30:09
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00853628
Message ID:
00854250
Views:
25
Caro Fabio,
Me desculpe pertubar-lo, mas não consigo fazer um select com esta conexão ADO...
Caso seja possivel dê uma olhada no exemplo abaixo:

oConn = CREATEOBJECT('adodb.connection')

oConn.Provider = "SQLOLEDB.1"
oConn.ConnectionString = "Persist Security Info=False;User ID=sa;Initial Catalog=Teste2;Data Source=Lua"

oConn.Open("lua","sa","enterprise")

oRecordSet = CreateObject("adodb.recordset")
oRecordSet.Open("Select * From teste2.dbo.process_n",oConn)

o que siginifica:
Persist Security Info=False
Initial Catalog=Teste2
Data Source=Lua

Obrigado mais uma vez!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform