[에러] OdbcException: ERROR [IM002] [Microsoft][ODBC 드라이버 관리자] 데이터 원본 이름이 없고 기본 드라이버를 지정하지 않았습니다.
OS : Win7 x64
Version : Unity5 5.4.0
[에러메시지]
OdbcException: ERROR [IM002] [Microsoft][ODBC 드라이버 관리자] 데이터 원본 이름이 없고 기본 드라이버를 지정하지 않았습니다.
유니티4에서 잘 사용하던 odbc가 유니티5에서 실행하니 위와 같은 에러를 뱉어서 확인해보니 64bit용 재배포 패키지를 깔라고 한다.
[재배포 패키지 다운로드]
https://www.microsoft.com/ko-KR/download/details.aspx?id=13255
(링크에서 64bit용 재배포 패키지를 깔아 주면 된다.)
[참조]
I had the same issue and this Q&A was very helpful to narrow down my problem.
On a Windows 7 64 bit machine with Unity 64 bit, the Unity's Mono System.Data.Odbc class relies on the odbc32.dll that is located in Windows\System32 and not the one in Windows\SysWOW64. I found out the driver wasn't listed in the odbcad32.exe administration tool located in Windows\System32.
Installing the 64 bit version of Microsoft Access Database Engine 2010 Redistributable solved my issues as I now have the correct 64 bit driver listed in the odbcad32.exe application.
The drivers can be downloaded from here: https://www.microsoft.com/en-us/download/details.aspx?id=13255
The driver name in all the connection strings in the code must be updated with the new driver's name (that can be seen with the odbc administration tool).
I am now using Unity 5.3 64 bit and connecting successfully to the data source, in my case a dbf file.
I am sure this doesn't cover all the error IM002 cases but if you have this issue, this is one thing you want to exclude anyway.
[참조출처]
http://forum.unity3d.com/threads/odbc-connections-impossible-with-unity5.342846/