Access en MySql Ynte Jan Kuindersma, BIRD Automation Nationale Officedag 2009 EDE, 14 Oktober 2009.

Verwante presentaties


Presentatie over: "Access en MySql Ynte Jan Kuindersma, BIRD Automation Nationale Officedag 2009 EDE, 14 Oktober 2009."— Transcript van de presentatie:

1 Access en MySql Ynte Jan Kuindersma, BIRD Automation Nationale Officedag 2009 EDE, 14 Oktober 2009

2 Hoe en wat Gegevens delen via internet zonder een webapplicatie te programmeren  Access als frontend via ODBC Je kunt er ook een webinterface omheen bouwen  PHP MySql is open source en daarmee erg betaalbaar ODBC is standaard technologie dus vrijwel alle programma’s kunnen er mee overweg Je moet wel internettoegang hebben

3 Webhoster – Gratis of Betalen?

4 Beheer via webinterface Tabellen/velden/indexen/sleutels Gegevens via sql-commando’s Export en import

5 Webinterface beheer I

6 Webinterface beheer II

7 Webinterface beheer III

8 Webinterface beheer IV

9 Client software MySql query explorer  Apart downloaden Acces / Word / Outlook / Excel

10 ODBC-connectie maken Download en installeer mysql-connector- odbc-5.1.5-win32.MSI  http://dev.mysql.com/downloads/#connector-odbc http://dev.mysql.com/downloads/#connector-odbc Start ODBC-beheer  Start -> Configuration -> Administrative tools -> Datasources… Koppel tabellen aan Access via Bestand -> Externe gegevens..

11 ODBC aanmaken

12 Access: Externe gegevens koppelen via ODBC I

13 Access: Externe gegevens koppelen via ODBC II

14 Access tabellen uploaden Vanuit Access kunnen tabellen ook worden geupload naar de server  Structuur en data worden getransporteerd!  Rechts klikken op Tabel en dan “Exporteren”  Nabewerking op mysql via webinterface: Sleutelveld Auto_increment

15 Exporteren tabel naar MySQL via ODBC

16 Access frontend maken Je kunt verder werken zoals je dat gewend bent in Access  Queries  Formulieren  Macros / VBA  Rapporten

17 Referentiële integriteit bij het maken van een tabel via SQL (webinterface) CREATE TABLE employees ( employeeID int(10) NOT NULL auto_increment, employeeName varchar(50) NOT NULL, isManager tinyint(1) NOT NULL DEFAULT 0, managerID int(10) NOT NULL, PRIMARY KEY (employeeID), FOREIGN KEY (managerID) REFERENCES employees (employeeID) ON DELETE RESTRICT ) ENGINE=InnoDB;

18 Referentiële integriteit bij het achteraf via SQL InnoDB allows you to add a new foreign key constraint to a table by using ALTER TABLE:ALTER TABLE ALTER TABLE tbl_name ADD [CONSTRAINT [symbol]] FOREIGN KEY [index_name] (index_col_name,...) REFERENCES tbl_name (index_col_name,...) [ON DELETE reference_option] [ON UPDATE reference_option]

19 Hyperlinks MySql homepage http://www.mysql.com http://www.mysql.com Programma voor op je eigen PC http://dev.mysql.com/downloads/ http://dev.mysql.com/downloads/ Online database bij een hoster? http://www.vevida.nl/NL/hosting_pakketten.asp http://www.vevida.nl/NL/hosting_pakketten.asp ODBC-driver voor koppeling met MS Office http://dev.mysql.com/downloads/#connector-odbc http://dev.mysql.com/downloads/#connector-odbc http://nl.wikipedia.org/wiki/MySQL


Download ppt "Access en MySql Ynte Jan Kuindersma, BIRD Automation Nationale Officedag 2009 EDE, 14 Oktober 2009."

Verwante presentaties


Ads door Google