English 中文(简体)
How do I create a System DSN
原标题:

I need to create a System DSN called MondrianFoodMart that points to /MondrianFoodMart.mdb file. The instructions to do this are very confusing.

More specifically I am trying to do section 2.1 of this confusing website: http://mondrian.pentaho.com/documentation/installation.php

Any help appreciated,

Ted

问题回答
  1. Open the "ODBC Data Source Administrator" dialog by navigating Start -> Control Panel -> Administrative Tools -> Data Sources (ODBC)
  2. Select the "System DSN" tab and pass Add
  3. Select the Microsoft Access Driver and press Finish
  4. Enter the Data Source Name "MondrianFoodMart" (and a suitable description)
  5. Press "Select" and use the "Select Database" dialog to pick the .mdb
  6. Press Ok, keep your fingers crossed and test

While in docs they say about JDBC URL to Access db: jdbc:odbc:MondrianFoodMart it may be easier to use such URL in other form:

jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=MONDRIAN_HOME\demo\access\MondrianFoodMart.mdb

Of course replace MONDRIAN_HOME with real directory name. It may be useful if such URL is part of configuration file. Then creating DNS will not be necessary.





相关问题
Add 2 extra columns to an excel file

Since the Microsoft ODBC Excel Driver doesn t support ALTER TABLE/DELETE FROM(/UPDATE?) statements, I m using alternative ways of getting the right data in the right place. I still have one problem ...

Tracking SQL Calls From MS Access to MySQL

I m trying to see the SQL statements that are sent from MS Access 2003 to MySQL via ODBC. I ve tried ODBC Tracing, but it s painfully slow, producing very large log files which are very difficult ...

Update Array field in progress DB using ODBC

I access the progress DB using ODBC in my C# program, and I need to update some fields,which are array data type. so how can I write my sql statement to do such things? I read some progress ...

CakePHP and connecting to MS Access db using Unixodbc

I m trying to use an Acces (MDB) database from a CakePHP app. On a Windows machine this works fine. On a Linux machine using Unixodbc this doesn t work at all. The error is as follows: Warning (2): ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Filemaker GetAs...How to display Container Field on webpage?

I have an ASP.Net application that needs to display an image that is stored in a Filemaker Container field. My query statement looks like: SELECT GetAs(Image, JPG ) FROM UA_Item_Pictures WHERE "...

Informix ODBC Connection Help

I have a development project that requires us to be able to support informix data sources via ODBC. I ve downloaded the prebuilt Informix Virtual Appliance from the IBM website and am able see the ...

热门标签