... vez que testei, usei esta conexão
FUNCTION ADSConnection( cPath )
LOCAL oConexao := win_OleCreateObject( "ADODB.Connection" )
oConexao:ConnectionString := "Provider=Advantage OLE DB Provider;" + ;
"Mode=Share Deny None;" + ;
"Show Deleted Records in DBF Tables with Advantage=False ...
Pesquisa resultou em 153 ocorrências: +ConnectionString
Termo pesquisado: +connectionstring
- 14 Fev 2025 11:16
- Fórum: [x]Harbour
- Tópico: SQL no DBF em breve (promessa) Aleksander Czajczynski
- Respostas: 33
- Exibições: 22203
- 16 Set 2024 12:54
- Fórum: [x]Harbour
- Tópico: Usar postgres
- Respostas: 2
- Exibições: 1167
Usar postgres
... LOCAL cnConnection
Default( @cPort, '5432')
If InternetCheca()
cnConnection := CreateObject( "ADODB.Connection" )
cnConnection:ConnectionString := "Driver={PostgreSQL ODBC Driver(UNICODE)}"+;
";Server=" + cServer +;
";Port=" + cPort+;
";Database=" + cDatabase +;
";Uid=" + cUser ...
Default( @cPort, '5432')
If InternetCheca()
cnConnection := CreateObject( "ADODB.Connection" )
cnConnection:ConnectionString := "Driver={PostgreSQL ODBC Driver(UNICODE)}"+;
";Server=" + cServer +;
";Port=" + cPort+;
";Database=" + cDatabase +;
";Uid=" + cUser ...
- 17 Abr 2024 21:19
- Fórum: Contribuições, Dicas e Tutoriais
- Tópico: Minha classe intermediária pra ADO
- Respostas: 5
- Exibições: 2360
Minha classe intermediária pra ADO
... teste sem a classe, se funcionar sem a classe também funciona com a classe.
oConexao := win_OleCreateObject( "ADODB.Connection" )
oConexao:ConnectionString := "string" // conforme o odbc
oConexao:CursorLocation := 3
oConexao:Open()
oRs := oConexao:Execute( "SELECT 10 AS QTD" )
? oRs:Fields( "QTD ...
oConexao := win_OleCreateObject( "ADODB.Connection" )
oConexao:ConnectionString := "string" // conforme o odbc
oConexao:CursorLocation := 3
oConexao:Open()
oRs := oConexao:Execute( "SELECT 10 AS QTD" )
? oRs:Fields( "QTD ...
- 14 Mar 2024 00:41
- Fórum: HwGui
- Tópico: Abertura de outro programa console via hwgui
- Respostas: 32
- Exibições: 19174
Abertura de outro programa console via hwgui
... SQL Server"
if nProvedor=3
cServer:="mysql.xxx.com.br"
cPassword="xxx"
cPorta="3306"
cDriver="MariaDB ODBC 3.1 Driver"
endif
cnSQL:ConnectionString := "DRIVER=" + cDriver +";SERVER=" + cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT=" + cPorta
cnSQL ...
if nProvedor=3
cServer:="mysql.xxx.com.br"
cPassword="xxx"
cPorta="3306"
cDriver="MariaDB ODBC 3.1 Driver"
endif
cnSQL:ConnectionString := "DRIVER=" + cDriver +";SERVER=" + cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT=" + cPorta
cnSQL ...
- 13 Fev 2024 14:59
- Fórum: HwGui
- Tópico: Iniciante em HwGui com problema em exibição de imagem
- Respostas: 40
- Exibições: 11229
Iniciante em HwGui com problema em exibição de imagem
... xxx"
LOCAL cDatabase :="xxx"
LOCAL cUser :=""
LOCAL cPassword :="xxx"
Local cPorta :="1039"
Local cDriver :="SQL Server"
cnSQL:ConnectionString := "DRIVER=" + cDriver +";SERVER=" + cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT=" + cPorta
cnSQL ...
LOCAL cDatabase :="xxx"
LOCAL cUser :=""
LOCAL cPassword :="xxx"
Local cPorta :="1039"
Local cDriver :="SQL Server"
cnSQL:ConnectionString := "DRIVER=" + cDriver +";SERVER=" + cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT=" + cPorta
cnSQL ...
- 13 Fev 2024 13:47
- Fórum: HwGui
- Tópico: Iniciante em HwGui com problema em exibição de imagem
- Respostas: 40
- Exibições: 11229
Iniciante em HwGui com problema em exibição de imagem
... xxx"
LOCAL cDatabase :="xxx"
LOCAL cUser :=""
LOCAL cPassword :="xxx"
Local cPorta :="1039"
Local cDriver :="SQL Server"
cnSQL:ConnectionString := "DRIVER=" + cDriver +";SERVER=" + cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT=" + cPorta
cnSQL ...
LOCAL cDatabase :="xxx"
LOCAL cUser :=""
LOCAL cPassword :="xxx"
Local cPorta :="1039"
Local cDriver :="SQL Server"
cnSQL:ConnectionString := "DRIVER=" + cDriver +";SERVER=" + cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT=" + cPorta
cnSQL ...
- 13 Fev 2024 01:21
- Fórum: HwGui
- Tópico: Iniciante em HwGui com problema em exibição de imagem
- Respostas: 40
- Exibições: 11229
Iniciante em HwGui com problema em exibição de imagem
... xxx"
LOCAL cDatabase :="xxx"
LOCAL cUser :=""
LOCAL cPassword :="xxx"
Local cPorta :="1039"
Local cDriver :="SQL Server"
cnSQL:ConnectionString := "DRIVER=" + cDriver +";SERVER=" + cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT=" + cPorta
cnSQL ...
LOCAL cDatabase :="xxx"
LOCAL cUser :=""
LOCAL cPassword :="xxx"
Local cPorta :="1039"
Local cDriver :="SQL Server"
cnSQL:ConnectionString := "DRIVER=" + cDriver +";SERVER=" + cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT=" + cPorta
cnSQL ...
- 23 Jan 2024 09:48
- Fórum: [x]Harbour
- Tópico: Problema com conexão MySQL Windows 10
- Respostas: 2
- Exibições: 767
Problema com conexão MySQL Windows 10
Estou com um problema em uma única máquina com Windows 10.
x := win_OleCreateObject( "ADODB.Connection" )
x:ConnectionString := "xxxxx"
O objeto não está sendo criado.
Pelo HeidiSQL, que NÃO USA ADO, também não conecta.
Alguém já teve esse problema?
Tá parecendo antivírus, ou segurança, ou ...
x := win_OleCreateObject( "ADODB.Connection" )
x:ConnectionString := "xxxxx"
O objeto não está sendo criado.
Pelo HeidiSQL, que NÃO USA ADO, também não conecta.
Alguém já teve esse problema?
Tá parecendo antivírus, ou segurança, ou ...
- 23 Jan 2024 09:27
- Fórum: [x]Harbour
- Tópico: Problema com conexão MySQL Windows 10
- Respostas: 2
- Exibições: 767
Problema com conexão MySQL Windows 10
Estou com um problema em uma única máquina com Windows 10.
x := win_OleCreateObject( "ADODB.Connection" )
x:ConnectionString := "xxxxx"
O objeto não está sendo criado.
Pelo HeidiSQL, que NÃO USA ADO, também não conecta.
Alguém já teve esse problema?
Tá parecendo antivírus, ou segurança, ou ...
x := win_OleCreateObject( "ADODB.Connection" )
x:ConnectionString := "xxxxx"
O objeto não está sendo criado.
Pelo HeidiSQL, que NÃO USA ADO, também não conecta.
Alguém já teve esse problema?
Tá parecendo antivírus, ou segurança, ou ...
- 17 Out 2023 15:42
- Fórum: [x]Harbour
- Tópico: Como abrir um PDF com CreateObject()?
- Respostas: 6
- Exibições: 1038
Como abrir um PDF com CreateObject()?
Olá.
Com o CreateObject() é possível abrir qq banco de dados, usando Drives das Fontes ODBC do Windows, setando "ConnectionString" com o "Provider" da Fonte Driver.
Pergunto aos amigos de tem como fazer o mesmo processo para abrir um PDF, assim como por exemplo, abrimos um .DOC, .XLS também, sendo ...
Com o CreateObject() é possível abrir qq banco de dados, usando Drives das Fontes ODBC do Windows, setando "ConnectionString" com o "Provider" da Fonte Driver.
Pergunto aos amigos de tem como fazer o mesmo processo para abrir um PDF, assim como por exemplo, abrimos um .DOC, .XLS também, sendo ...
- 19 Ago 2023 11:13
- Fórum: Banco de Dados
- Tópico: ADO Connection Execute
- Respostas: 6
- Exibições: 4909
ADO Connection Execute
... www.postgresql.org/ftp/odbc/versions/msi/
//http://fivewin.com.br/index.php?/topic/21765-driver-odbc-para-dbf-xharbour/page/2/ - DBF
//http://connectionstrings.com/
#include "ADO.CH"
#define AD_USE_CLIENT 3
Function Main()
Local oCn, mExecute, oRs, msg, cString
Begin Sequence
oCN ...
//http://fivewin.com.br/index.php?/topic/21765-driver-odbc-para-dbf-xharbour/page/2/ - DBF
//http://connectionstrings.com/
#include "ADO.CH"
#define AD_USE_CLIENT 3
Function Main()
Local oCn, mExecute, oRs, msg, cString
Begin Sequence
oCN ...
- 12 Ago 2023 08:57
- Fórum: [x]Harbour
- Tópico: Array - AADD() vai ficando lento.
- Respostas: 26
- Exibições: 2247
Array - AADD() vai ficando lento.
... CRLF+;
cl_getError(oError),;
MB_OK|MB_ICONERROR )
//lOk:=.f.
Break
END
//Abrindo a PLanilha
If ".XLSX" $ Upper(mArq_)
oConexao:ConnectionString := ;
[Provider=Microsoft.ACE.OLEDB.12.0;Data Source=] + mArq_ +;
[;Extended Properties="Excel 12.0 Xml; HDR=Yes";] //IMEX=1";]
Else ...
cl_getError(oError),;
MB_OK|MB_ICONERROR )
//lOk:=.f.
Break
END
//Abrindo a PLanilha
If ".XLSX" $ Upper(mArq_)
oConexao:ConnectionString := ;
[Provider=Microsoft.ACE.OLEDB.12.0;Data Source=] + mArq_ +;
[;Extended Properties="Excel 12.0 Xml; HDR=Yes";] //IMEX=1";]
Else ...
- 09 Ago 2023 05:58
- Fórum: HwGui
- Tópico: erro em compilação
- Respostas: 38
- Exibições: 6035
erro em compilação
... ADODB.Connection")
LOCAL cServer :="mysql.xxx.com.br"
LOCAL cDatabase :="xxx"
LOCAL cUser :="xxx"
LOCAL cPassword :="xxx"
cnSQL:ConnectionString := "DRIVER={MariaDB ODBC 3.1 Driver};TCPIP=1;SERVER=" + ;
cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT ...
LOCAL cServer :="mysql.xxx.com.br"
LOCAL cDatabase :="xxx"
LOCAL cUser :="xxx"
LOCAL cPassword :="xxx"
cnSQL:ConnectionString := "DRIVER={MariaDB ODBC 3.1 Driver};TCPIP=1;SERVER=" + ;
cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT ...
- 09 Ago 2023 00:23
- Fórum: HwGui
- Tópico: erro em compilação
- Respostas: 38
- Exibições: 6035
erro em compilação
... ADODB.Connection")
Local cServer :="mysql.xxx.com.br"
Local cDatabase :="xxx"
Local cUser :="xxx"
Local cPassword :="xxx"
oCn:ConnectionString := "DRIVER={MariaDB ODBC 3.1 Driver};TCPIP=1;SERVER=" + ;
cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT ...
Local cServer :="mysql.xxx.com.br"
Local cDatabase :="xxx"
Local cUser :="xxx"
Local cPassword :="xxx"
oCn:ConnectionString := "DRIVER={MariaDB ODBC 3.1 Driver};TCPIP=1;SERVER=" + ;
cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT ...
- 06 Ago 2023 00:02
- Fórum: HwGui
- Tópico: erro em compilação
- Respostas: 38
- Exibições: 6035
erro em compilação
... ADODB.Connection")
Local cServer :="mysql.xxx.com.br"
Local cDatabase :="xxx"
Local cUser :="xxx"
Local cPassword :="xxx"
...
oCn:ConnectionString := "DRIVER={MariaDB ODBC 3.1 Driver};TCPIP=1;SERVER=" + ;
cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT ...
Local cServer :="mysql.xxx.com.br"
Local cDatabase :="xxx"
Local cUser :="xxx"
Local cPassword :="xxx"
...
oCn:ConnectionString := "DRIVER={MariaDB ODBC 3.1 Driver};TCPIP=1;SERVER=" + ;
cServer + ";Database=" + cDatabase + ";UID=" + cUser + ";PWD=" + cPassword + ";PORT ...