I am just a new programmer., can someone please give me a step by step procedure on how to connect my eclipse program to sqlite?
from http://wiki.eclipse.org/Connecting_to_SQLite
1) Download the SQLite drivers from: [1]. The actual zip file with the driver is at [2]. Expand the zip somewhere locally and note the location.
2) Put the sqlite_jni.dll from the zip into your JRE's bin directory. The driver requires this file to be in the java library path.
3) In Eclipse with DTP 1.0 installed (preferably the final build or a nightly build dated 110806 or later), go to the Preferences (Window->Preferences) and select the Connectivity->Driver Definitions page.
4) Select the "Generic JDBC" category in the Available Driver Definitions tree and click "Add...".
5) Select "Generic JDBC Driver->Generic JDBC Driver" in the Available Driver Templates tree. Give the new generic JDBC driver a name like "javasqlite JDBC driver". Click OK.
6) Click "Add Jar/Zip" and select the sqlite.jar from the driver zip you expanded in step 1. Click Open.
7) In the Properties table, select the Driver Class property and click the "..." button. If the jar is accessible, you will see a dialog appear with at lease one class in the list. Select "SQLite.JDBCDriver". Click OK.
8) Also in the Properties table, select the Driver URL property and type the following: jdbc:sqlite:/DRIVE:/dirA/dirB/dbfile
9) Click OK on the Edit Driver Definition dialog. You should see your new driver appear in the driver list on the Driver Definitions preference page.
10) Click OK to close the Preferences dialog.
11) If the Data Source Explorer is not open, open the Connectivity->Data Source Explorer view from the Window->Show View menu or open the Database Development perspective from the Window->Open Perspective.
12) In the Data Source Explorer, right-click on the Databases category and select New...
13) In the New Connection Profile wizard's Wizard Selection Page, choose the SQL Model-JDBC Connection entry in the list and click Next.
14) Give your new profile a name like "SQLiteTestDB". Click Next.
15) In the "Select a driver from the drop-down" combo box, select your new SQLite driver definition. Modify the file path in the sample URL to match the path to your local SQLite database.
16) Click "Test Connection" to verify you can connect to your database.
17) Click Finish to create the profile.
18) In the Data Source Explorer, right-click on the new profile and select Connect. You should see content appear in the tree beneath the profile. Browse through your database to view available tables and their columns.
Related
I'm running Access 2016 (64 bit) on Windows 10 and only recently noticed this problem. I have several functioning databases that already have a number of working links to tables on two or more External Machine Data Sources. When attempting to add a new link I go through the usual procedure of clicking on "External Data", "ODBC Database" select "Link to the data source by creating a linked table" then go on to select the desired Machine Data Source; at this point the list of available tables comes up and everything seems fine. The problem arises when I select a new table (one I do not already have a link to), click the "Save password" box then proceed: I ultimately end up with an "ODBC--call failed" error that specifies "Error while executing the query (#1)". The first thing I would normally suspect would be a problem with the ODBC driver configuration but all my pre-existing external links continue to function just fine; I only encounter problems when attempting to add new links. How can I find out more about the query mentioned in the error message? Is this "query #1" a universal thing or could it be specific to the way my particular ODBC driver config is set up?
For Teradata Studio Express 16.2, How do
I filter out all schemas I do not have access to?
My user account only has access to 2 database schemas but it is showing way more than that as you can see from the image below (Even shows all the user's db):
A couple options:
From the menu bar at the top of the screen...
Window -> Preferences -> Teradata Datatools Preferences -> Data Source Explorer Load Preferences. Then there are option buttons that let you pick.
Another easy way is to right click on the "Databases" folder in the Data Source Explorer and select "filter". You can then define your own filter rule for which databases should be displayed.
Note: I am using version 16.10.1.201708101349 but I think yours should be the same
I tried to establish one connection between BIRT and Oracle but it's not working.
I received this error message :
First download an oracle JDBC driver from http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
take the .jar e.g. called ojdbc8.jar.
Then use use Manage Divers... menu and add the just downloaded .jar. This will add new entries to the driver dropdown menu. Now select the Oracle driver entry from the menu e.g. oracle.jdbc.driver.OracleDriver (v12.2)
I am unable to create a table in Valentina Studio in my sqlite database.
Using another application called Datum, I am able to open the sqlite database 'data.db' and run the query 'CREATE TABLE a(b INT, c INT)' successfully.
When I open Valentina Studio and click on the database in the first window and then click on the green plus sign with 'Create' listed to the right, a dialog box pops up. The title bar of the dialog box says 'Create Table' and in the table tab when I type 'table1' beside 'Name' and add a field named 'dog' under the Fields tab and press the 'Create' button then I get an error. The error says 'Sqlite db "/[path-to-file]/data.db": Error : "unable to open database file"' (It doesn't really say [path-to-file], this is just an alias for the path on my filesystem).
I am the primary user of this computer and write/read permissions are enabled for me on 'data.db' and on the folder that contains 'data.db' for me. I am using a Mac Book Pro.
Maybe you are using MAS edition of Valentina Studio?
According to MAS/Apple rules, such app works in sandbox mode,
to work with db files located e.g. on the desktop or other folders,
you need at first once Allow Access. You can do this in
Preferences Dialog - Allowed Locations Help
Normal (not MAS) edition of Valentina Studio for Mac do not require this step.
I created my data model using Entity Framework, when I try to generate the database from the model, it generates the script but when I execute it I have the following error:
Msg 911, Level 16, State 1, Line 1
Database 'MyOp' does not exist. Make sure that the name is entered correctly.
I don't know where is the error, I don't think that is a problem of permissions.
Thank you for your help
Ok I found it, sorry to ask such a question.
The problem was that my database was not created in my server, so I created it that way:
In SQL connecxion in visual studio, right click and add new database,
in the dialog box of the server name type ".\SQLEXPRESS" (without quotes).
Type the name of your db in the database name.
Now when executing your script, choose your database name instead of "master" in the dropdown list next the the excexution button.
WARNING: when changing laptop I did'nt find my created database, so you have to copy/paste it in the appdata folder in your application, to copy your database, you will find it in this path: C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA
you must click disconnect button and then connect button .vs2012 select sqlExpress by defult when you want connect again to your server you must select server name correctly.