ADORDD no Site

Post Reply
User avatar
ronaldo
Posts: 137
Joined: Fri Nov 25, 2005 4:38 pm
Location: brasil
Contact:

ADORDD no Site

Post by ronaldo »

Como posso fazer para usar o adordd para buscar a tabela em meu site: onde estou errando?

cFROM := "www.bazevani.com.br/dados/"
cUSER := "bazevani"
cPSW := "karol139700"
cDBF := "oferta"
cTABLE := "ofertas"


SELECT 1
USE (AllTrim(cDbf)) VIA "ADORDD" TABLE AllTrim(cTable) ;
FROM AllTrim(cFrom) USER AllTrim(cUser) PASSWORD AllTrim(cPsw) SQL
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Que error da ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
ronaldo
Posts: 137
Joined: Fri Nov 25, 2005 4:38 pm
Location: brasil
Contact:

Post by ronaldo »

o servidor é access
User avatar
ronaldo
Posts: 137
Joined: Fri Nov 25, 2005 4:38 pm
Location: brasil
Contact:

Post by ronaldo »

Path and name: C:\FWH29\rddado\access1.exe (32 bits)
Size: 1,562,112 bytes
Time from start: 0 hours 1 mins 35 secs
Error occurred at: 06/04/07, 10:04:19
Error description: Error ADODB.Recordset/16389 E_FAIL: OPEN
Args:
[ 1] = C SELECT * FROM ofertas
[ 2] = C Provider=SQLOLEDB;server=www.bazevani.com.br;database=oferta;uid=bazevani;pwd=karol139700
[ 3] = N 1
[ 4] = N 3
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Post by Baxajaun »

Hola Ronaldo,

asegurate que el nombre de la base de datos es correcta. Yo he probado lo siguiente y me ha funcionado:

USE Nomina VIA "ADORDD" TABLE "PROFESION" SQL FROM "MyServer" USER "myuser" PASSWORD "mypass" ALIAS NominaTables

siendo

Nomina - nombre de la base de datos
PROFESION - tabla de la base de datos
MyServer - mi servidor
myuser - mi usuario
mypass - mi password

Probado contra SQL Server 2000

Saludos,

Felix
Post Reply