skip to main
|
skip to sidebar
豆腐鍋 :: Tofu Steamboat
Social Icons
Pages
首頁
2018年9月17日 星期一
Suppress Power Query's Native Database Query Warning at Excel
Go to "Query Options"
Uncheck "Require user approval for new database queries" at Security and OK to save
2018年8月24日 星期五
Create Link Server for MySQL at MSSQL
Download and install “Visual C++ Redistributable for Visual Studio 2015”
https://www.microsoft.com/en-us/download/details.aspx?id=48145
Download and install “Connector/ODBC”
https://dev.mysql.com/downloads/connector/odbc/
After install finished, MySQL ODBC Driver will list at "ODBC Data Source Administrator"
Setup "System DNS" at "ODBC Data Source Administrator".
Click "Add" button.
Select "MySQL ODBC 8.0 ANSI Driver
Fill in connection info
Create link server at Microsoft SQL Management Studio
General
Provider:
Microsoft OLE DB Provider for ODBC
Product:
MySQL
Data source:
same as "System DNS"
Security
Be made using the security context
Test script
SELECT * from OPENQUERY (Linked_Server, 'select * from test.table');
INSERT OPENQUERY (Linked_Server, 'select name,address from test.table') VALUES ('Jason','Malaysia');
UPDATE OPENQUERY (Linked_Server, 'select name from test.table WHERE user_id = 0001') SET name = 'Tom';
DELETE OPENQUERY (Linked_Server, 'select name from test.table WHERE user_id = 0002');
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
Popular Posts
技術提供:
Blogger
.
Labels
CentOS
cmd
Excel
JDE
Julian Date
MSSQL
MySQL
Power Query
Remote Desktop
SQL
SSL
SSLS
xrdp
Blog Archive
▼
2019
(1)
▼
1月
(1)
MSSQL Convert Month Number to Name
►
2018
(7)
►
11月
(1)
►
9月
(1)
►
8月
(3)
►
5月
(1)
►
3月
(1)
►
2017
(11)
►
12月
(1)
►
10月
(3)
►
9月
(2)
►
7月
(2)
►
6月
(3)