HFSQL connect to initial catalog - windev

I have already running a project in production.
And .wdd is missing. I can't use server/client, for it.
Can I create .wdd file? Or connect to catalog without it?
I using pypyodbc and python3 for it

Only way to find wdd file is in the WinDev project directory.
But also if you don't have the project, you could connect to DB via ODBC using ODBC driver for HFSQL. With that you only have to connect to ODBC and the HFSQL driver do the rest.
https://help.windev.com/en-US/?3044179

Related

Connect to Navision Database

I need to connect to a .fdb file (Navision database file 2009) through C#. Can anyone explain how can I connect to this file using ODBC/NODBC?
I have tried these links but found nothing useful.
https://dynamicsuser.net/nav/f/users/21774/nodbc-connection-with-net
https://dynamicsuser.net/nav/f/developers/19641/please-help-sample-c-code-to-access-navision-4-0-using-nodbc
https://dynamicsuser.net/nav/f/developers/72463/how-to-make-a-fdb-file
https://community.dynamics.com/nav/f/microsoft-dynamics-nav-forum/33767/can-you-read-fdb-and-fbk-file-without-using-nav?pifragment-101115=1#responses
https://dynamicsuser.net/nav/f/users/61737/connect-to-fdb
I haven't done it for C#, but Python. It all boils down to the following steps:
Install Navision ODBC Driver which is part of the Navision 2009 installation package.
Set up an ODBC connection to your Navision server. (The ODBC Driver also has a connection test included)
Use any ODBC library to connect to the ODBC DSN created in step 2.
Use regular SQL syntax to communicate with the database
edit/p.s.: Reading your question again. I think it's possible you are lacking the server part. As far as I know, you will need a running Navision server to interact with the fdb file.

Teradata sample database

I have installed vmware player and added the disk file to it. Teradata studio is already installed in it. Now, I want create a database of good size to perform bulk load types in Teradata.
Where can I get the sample database?
I assume that you are asking about the software part to create an instance of Teradata database. If you have VMware downloaded from Teradata for evaluation purpose, it is already installed and configured. You just have to connect with your Studio.
If you are trying to create a virtual environment on your own, then you need to download the Teradata software and install in machine which will create a database. After installing the software you can configure and connect with Studio.
Teradata Express comes with toy data (Samples database) but only up to version 14. From version 15 it is (oddly) removed.
Your VM-Ware is fully configured. Sart your TD-Studio and connect to it.
From VM-Ware's TD-Studio it is TDPID: localhost od 127.0.0.1 User dbc pass dbc
There are no more sample databases in Teradata Express, but I published several data sets on GitHub, see the blog on Teradata Community

How to connect to a Filemaker Database with ODBC?

I'm trying to find out how to connect to a FileMaker Pro 9 Database file (*.fp7) with ODBC. I followed the manual and installed the ODBC driver which now shows up as "DataDirect 32bit SequeLink 5.5".
However I can't find any instructions on how to connect to the Database File. I want to use LibreOffice Base (and maybe later on create my own app) to access Filemaker tables.
Any help would be appreciated! (Please note that I'm new to Filemaker as well as to ODBC)
You need the ActualTech software to connect to the database: http://www.actualtech.com/scenario_ess_setup.php
I don't know if it is down compatible with FileMaker 9 but you might want to upgrade to FileMaker 13 at this point.
They guys at ActualTech are also very helpful.
Once you installed it, you can set up a DSN in the ODBC manager.

Is there a way to connect to an ASA database with Powerbuilder without deploying the ODBC or OLEDB drivers?

What I want is a Powerbuilder application that runs on Windows that runs from a CD (or some other external disk) that can read from an ASA database whose file is located on the same disk. But I want to do so without deploying the ODBC or OLEDB drivers. That is, I do not want to have to copy the driver files to the client's hard disk or add any registry entries. Is this possible?
In the Powerbuilder and ASA documentation they mention something about "embedded database connections" and supposedly you can specify the executable for the database server in the connection string. But that was no help.
When you attempt to connect to a database and "ODBC" is specified for the DBMS property of the transaction object, PowerBuilder is going to want to start loading drivers and looking to an ODBC datasource for the driver's info.
The only thing I can think to try, is to create all the registry entries at run time and point them to the driver files and the .db file on the CD. You might be able to make things easier with a file based datasource on the CD already, but you'll still need to create registry entries to setup the driver details. Then you can remove all those entries when you disconnect/close the application. I don't think you can do this completely without registry entries.
You do have to deploy the ODBC driver, that's how PB talks to SQL Anywhere. You dont have to create a DNS entry though, you can usr a DNSless connection.
http://www.carlprothman.net/Default.aspx?tabid=90#ODBCDriverForSybaseSQLAnywhere
Since you aren't getting much feedback I thought I'd offer this. I've done this with MS Access, but MS Access is much easier to connect to and most Windows PC's are able to connect via File based DSN.
You definitely want to avoid ODBC if at all possible look for File based DSN in ASA, but because it is more of a full database engine I doubt it is possible without ODBC and setting up ODBC via Registry Entries is possible but no fun at all especially if your clients are running different versions of Windows.
Here is the connect string I used for something similar but MS Access. I choose Access for this exact reason, it was for a RPG program and I wanted a database but didn't want to mess with ODBC.
Sample:
"Connectstring='Driver={Microsoft Access Driver
(*.mdb)};UID=abc;PWD=123; Dbq=C:\Program Files\Mafia Manager\mm.mdb;
Exclusive=1;'"

How to make a database service in Netbeans 6.5 to connect to SQLite databases?

I use Netbeans IDE (6.5) and I have a SQLite 2.x database. I installed a JDBC SQLite driver from zentus.com and added a new driver in Nebeans services panel. Then tried to connect to my database file from Services > Databases using this URL for my database:
jdbc:sqlite:/home/farzad/netbeans/myproject/mydb.sqlite
but it fails to connect. I get this exception:
org.netbeans.modules.db.dataview.meta.DBException: Unable to Connect to database : DatabaseConnection[name='jdbc:sqlite://home/farzad/netbeans/myproject/mydb.sqlite [ on session]']
at org.netbeans.modules.db.dataview.output.SQLExecutionHelper.initialDataLoad(SQLExecutionHelper.java:103)
at org.netbeans.modules.db.dataview.output.DataView.create(DataView.java:101)
at org.netbeans.modules.db.dataview.api.DataView.create(DataView.java:71)
at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.execute(SQLExecuteHelper.java:105)
at org.netbeans.modules.db.sql.loader.SQLEditorSupport$SQLExecutor.run(SQLEditorSupport.java:480)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
What should I do? :(
The current version of Zentus SQLiteJDBC is v053, based on SQLite 3.6.1. It will not open a 2.x SQLite database. Perhaps you can use SQLite 2.x command line tool to .dump your database, and the Sqlite3 command line tool to .load it. The use Zentus SQLiteJDBC to access the new SQLite 3.x database.
Alternatively, use a JDBC driver that supports SQLite 2 such as this one.
It's againg me...
I have made two mistakes during my first attempt. After setting CLASSPATH as a system variable (hope I didn’t broke smth else :)), putting sqlite_jni.dll to the system32 folder and correcting JDBC url I have got a success :)
I also have downloaded their SQLite ODBC wrapper. Installed it and made a connection to my SQLite2 database via ordinary and UTF8 based ODBC driver. I also used built in NetBeans JDBC-ODBC Bridge driver to be able to set up this connection.
All three connections have been created but:
ordinary ODBC driver: I see text data in a wrong encoding. All other columns are displayed correctly
UTF8 ODBC driver: I don’t see text data at all. All other columns are displayed correctly
JDBC driver: I don’t see any column at all. "Select * from my_any_table" always returns an empty single column
I have Russian based data in my database.
So...currently I have returned to sqlite command line interface :))

Resources