ADORDD no Site

ADORDD no Site

Postby ronaldo » Fri Jun 01, 2007 6:48 pm

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
ronaldo
 
Posts: 139
Joined: Fri Nov 25, 2005 4:38 pm
Location: brasil

Postby Antonio Linares » Fri Jun 01, 2007 9:08 pm

Que error da ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42151
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby ronaldo » Sat Jun 02, 2007 2:32 pm

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

Postby ronaldo » Mon Jun 04, 2007 1:06 pm

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
ronaldo
 
Posts: 139
Joined: Fri Nov 25, 2005 4:38 pm
Location: brasil

Postby Baxajaun » Mon Jun 04, 2007 1:41 pm

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
User avatar
Baxajaun
 
Posts: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests