Buenos dias,
Alguien tendra un ejemplo de como crear base de datos y tablas con la Tdatarow?
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
Buenos dias,
Alguien tendra un ejemplo de como crear base de datos y tablas con la Tdatarow?
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
Alguna sugerencia?
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
The purpose of TDataRow is not for creating database or tables.
The class is used to read one row from a table of any kind of database for editing and saving.
Thanks
Which class is used to create Database and tables using ADO?
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
Which database you want to use with ADO?
MySql ? Or MSSql?
MSSQl
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
oCn := FW_OpenAdoConnection( { "MSSQL", "PCNAME\SQLEXPRESS",,"SA","secret" }, .t. )
if oCn == nil
? "Connect Fail"
return nil
endif
// proceed using the connection.
// Create a database named FWH
oCn:Execute( "CREATE DATABASE FWH" )
oCn:Close()oCn := FW_OpenAdoConnection( { "MSSQL", "PCNAME\SQLEXPRESS","FWH","SA","secret" }, .t. )
if oCn == nil
? "Connect Fail"
return nil
endif
FW_AdoImportFromDBF( oCn, "c:\fwh\samples\customer.dbf" )
oRs := FW_OpenRecordSet( oCn, "customer" )
XBROWSER oRs FASTEDIT
oRs:Close()
oCn:Close()Thanks so much
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
Hello
It is possible to create a wrapper function instead to write Fw_OpenAdoConnection to call it ? Some sample?
Regards
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
This example is good but it just create Tables from DBF.
Another example to create it from code? The same for Database creation using CREATE DATABASE ?
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
Thanks a lot!
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
It is possible to create a wrapper function instead to write Fw_OpenAdoConnection to call it ?
FWAdoCreateTable( "sales", { { BILLNO, 'N', 5, 0 }, ;
{ "DETAIL", "C", 20, 0 }, ;
{ "QTY", "N", 5, 0 }, ;
{ "RATE", "N", 5, 2 }, ;
{ "AMOUNT", "N", 12,2 } }, oCn )Thanks
In order to work with Ado with MSSQL...should I install some specific driver?
FWH 25.12
Harbour/Hbmk2
Microsoft Visual C++
MySql 8.0
Antigravity
Not necessary