我下载了setup factory6的odbc Configuration组件,看帮助说只要修改InstallODBC.ini文件,再运行InstallODBC.exe就可以建odbc了;
以下是默认得InstallODBC.ini内容(里面的example是for access的)
---------------------------------
; ConfigODBC.INI; Do not modify the following section!
[IndigoRose]
ID=IRINSTODBC
Desc=Indigo Rose ODBC Configuration Utility
Copyright=Copyright (c) 1999 Indigo Rose Corporation
License=Please contact Indigo Rose Corporation for licensing info
Info=http://www.indigorose.com; The following sections can be edited[Settings]
; The title bar message
Title=Configuring ODBC
; The dialog window message
LoadMessage=Installing ODBC Drivers...[InstallManager]
; 0 = FALSE, 1 = TRUE
; Install=1[Drivers]
; Specify a setup string. See SQLInstallDriverEx in the ODBC documentation for help.
; Use "\0" to represent null bytes - put two at the end
; Use Driver1=, Driver2= ... Driverx
; Example...
; Driver1=Microsoft Access Driver (*.mdb)\0Driver=odbcjt32.dll\0Setup=odbcjt32.dll\0FileUsage=1\0FileExtns=*.mdb\0APILevel=1\0ConnectFunctions=YYN\0DriverODBCVer=02.50\0s=YYN\0SQLLevel=0\0\0[Data Sources]
; Specify a setup string. See SQLConfigDataSource in the ODBC documentation for help.
; Use "\0" to represent null bytes - put two at the end of DSAttribX
; DSRequestX = ODBC_ADD_DSN,ODBC_CONFIG_DSN,ODBC_REMOVE_DSN,ODBC_ADD_SYS_DSN,ODBC_CONFIG_SYS_DSN,ODBC_REMOVE_SYS_DSN
; Use DSDriver1=, DSAttrib1=, DSRequest1=, DSDriver2=, DSAttrib2=, DSRequest2= ... DSDriverx=, DSAttribx=, DSRequestX=
; Example:
; DSDriver1=Microsoft Access Driver (*.mdb)
; DSAttrib1=DSN=QandA\0DBQ=J:\DATABASE\QandA.mdb\0FIL=MS Access;\0DESCRIPTION=Questions and Answers Database\0DRIVERID=25\0UID=\0\0
; DSRequest1=ODBC_ADD_DSN
---------------------------------
怎么修改成建sql server的odbc???
以下是默认得InstallODBC.ini内容(里面的example是for access的)
---------------------------------
; ConfigODBC.INI; Do not modify the following section!
[IndigoRose]
ID=IRINSTODBC
Desc=Indigo Rose ODBC Configuration Utility
Copyright=Copyright (c) 1999 Indigo Rose Corporation
License=Please contact Indigo Rose Corporation for licensing info
Info=http://www.indigorose.com; The following sections can be edited[Settings]
; The title bar message
Title=Configuring ODBC
; The dialog window message
LoadMessage=Installing ODBC Drivers...[InstallManager]
; 0 = FALSE, 1 = TRUE
; Install=1[Drivers]
; Specify a setup string. See SQLInstallDriverEx in the ODBC documentation for help.
; Use "\0" to represent null bytes - put two at the end
; Use Driver1=, Driver2= ... Driverx
; Example...
; Driver1=Microsoft Access Driver (*.mdb)\0Driver=odbcjt32.dll\0Setup=odbcjt32.dll\0FileUsage=1\0FileExtns=*.mdb\0APILevel=1\0ConnectFunctions=YYN\0DriverODBCVer=02.50\0s=YYN\0SQLLevel=0\0\0[Data Sources]
; Specify a setup string. See SQLConfigDataSource in the ODBC documentation for help.
; Use "\0" to represent null bytes - put two at the end of DSAttribX
; DSRequestX = ODBC_ADD_DSN,ODBC_CONFIG_DSN,ODBC_REMOVE_DSN,ODBC_ADD_SYS_DSN,ODBC_CONFIG_SYS_DSN,ODBC_REMOVE_SYS_DSN
; Use DSDriver1=, DSAttrib1=, DSRequest1=, DSDriver2=, DSAttrib2=, DSRequest2= ... DSDriverx=, DSAttribx=, DSRequestX=
; Example:
; DSDriver1=Microsoft Access Driver (*.mdb)
; DSAttrib1=DSN=QandA\0DBQ=J:\DATABASE\QandA.mdb\0FIL=MS Access;\0DESCRIPTION=Questions and Answers Database\0DRIVERID=25\0UID=\0\0
; DSRequest1=ODBC_ADD_DSN
---------------------------------
怎么修改成建sql server的odbc???
解决方案 »
- RegisterClass注册窗口类不能在代码中动态注册?
- 关于窗体擦除的问题
- 关于D3D的两个简单问题,帮忙来看看吧。
- 怎么能让server 和client在一个vc下运行?
- 广达集团招聘IT精英(台资)
- 各位大哥, 如何在CFormView视图中画线?
- ★★★★★★★★★ 如何才能使vc编译链接成的程序体积小于24k?
- 求教,在View中加入Calender控件,如何将其关闭?
- 有关冰河的问题?
- 从PC端给Android手机截图,并显示在对话框上?走过路过,不要错过,大家来探讨下吧!!!!!
- 哪有可包含控件的列表控件或其它控件
- LPARAM 和 WPARAM 都是32位消息参数有什么区别呢?
[IndigoRose]
ID=IRINSTODBC
Desc=Indigo Rose ODBC Configuration Utility
Copyright=Copyright (c) 1999 Indigo Rose Corporation
License=Please contact Indigo Rose Corporation for licensing info
Info=http://www.indigorose.com; The following sections can be edited[Settings]
; The title bar message
Title=Configuring ODBC
; The dialog window message
LoadMessage=Installing ODBC Drivers...[InstallManager]
; 0 = FALSE, 1 = TRUE
; Install=1[Drivers]
; Specify a setup string. See SQLInstallDriverEx in the ODBC documentation for help.
; Use "\0" to represent null bytes - put two at the end
; Use Driver1=, Driver2= ... Driverx
; Example...
; Driver1=Microsoft Access Driver (*.mdb)\0Driver=odbcjt32.dll\0Setup=odbcjt32.dll\0FileUsage=1\0FileExtns=*.mdb\0APILevel=1\0ConnectFunctions=YYN\0DriverODBCVer=02.50\0s=YYN\0SQLLevel=0\0\0[Data Sources]
; Specify a setup string. See SQLConfigDataSource in the ODBC documentation for help.
; Use "\0" to represent null bytes - put two at the end of DSAttribX
; DSRequestX = ODBC_ADD_DSN,ODBC_CONFIG_DSN,ODBC_REMOVE_DSN,ODBC_ADD_SYS_DSN,ODBC_CONFIG_SYS_DSN,ODBC_REMOVE_SYS_DSN
; Use DSDriver1=, DSAttrib1=, DSRequest1=, DSDriver2=, DSAttrib2=, DSRequest2= ... DSDriverx=, DSAttribx=, DSRequestX=
; Example:
; DSDriver1=Microsoft Access Driver (*.mdb)
; DSAttrib1=DSN=QandA\0DBQ=J:\DATABASE\QandA.mdb\0FIL=MS Access;\0DESCRIPTION=Questions and Answers Database\0DRIVERID=25\0UID=\0\0
; DSRequest1=ODBC_ADD_DSN
---------------------------------
怎么修改成建sql server的odbc???
换变量,重新命名.
ODBC没作过。给你UP一下。
============================
@* .☆ / */ . / * . ☆/ *。
◢◣。 ◢◣。
◢★◣。 ◢★◣。
◢■■◣。 ◢■■◣。
◢■■■◣。 ◢■■■◣。
︸︸||︸︸ !!︸︸||︸︸
愿您有快乐的每一天 ^_^!!
[Drivers]
; Example...
Driver1=SQL Server\0Driver=sqlsrv32.dll\0Setup=sqlsrv32.dll\0FileUsage=0\0APILevel=2\0ConnectFunctions=YYY\0DriverODBCVer=02.50\0SQLLevel=1\0\0[Data Sources]
; Example:
DSDriver1=SQL Server
DSAttrib1=DSN=msris\0Database=\0Driver=sqlsrv32.dll\0LastUser=sa\0Server=(local)\0\0
DSRequest1=ODBC_ADD_DSN为什么还是老是通不过,报错:failed to config ODBC
DSAttrib1=DSN=msris\0Database=\0Driver=sqlsrv32.dll\0LastUser=sa\0Server=(local)\0\0
你数据库还没指定阿