New answers tagged sql
0
Finally found the answer on how to connect MM to Actian vectorwise via SQL :)
Needs["JLink"]
AddToClassPath["C:\\Users\\Desktop\\iijdbc.jar"];
Needs["DatabaseLink"];
OpenSQLConnection[
JDBC["com.ingres.jdbc.IngresDriver",
"jdbc:ingres://HOST:VW7/DATABASE;user=xxx;password=yyy"]]
Feeling good!
Pat
1
This is more a workaround than an answer. Schema information for all tables is also available in a table. In the case of vertica, a query like the following would get all schemas:
columns={"table_schema","table_name","column_name","data_type","data_type_length","is_nullable","column_default"};
SQLExecute[conn,"SELECT "<>StringJoin[Riffle[columns, ", ...
5
I would rule out option #1 as it would be like working inside a spreadsheet but using only cell A1.
For inserting large amounts of data I recommend you to just use DatabaseLink's SQLExecute.
As your dataset is large, and you want to insert this as fast as possible please take into account that there are very large differences in performance depending on ...
6
For me, the best way to learn how to do it was in Wolfram DatabaseLink User Guide. You can download the PDF for free.
Here is some Mathematica code example for insert and select from Microsoft SQL Server.
(*Function for Connection String*)
openConn[]:=
OpenSQLConnection[
JDBC["Microsoft SQL Server(jTDS)", "myIpNumber"],
"Username" -> ...
0
Empirically, it is not possible to directly connect Linux (and therefore also not MMA under Linux) to a MS Access data source in an acceptable amount of time.
An alternative solution is to migrate the .accdb -> MySQL DB, which then can be queried platform independently. How to connect to this DB is described in the MMA documentation (works out of the box). ...
0
This is not really an answer yet, but definitely too long for a comment.
Access databases are designed for single user access and store data, forms and code in a single file. It is possible to access such a file from a remote computer via e.g. a network drive. As there is no real database server involved, concurrent usage of the same database file with ...
Top 50 recent answers are included
