使用SQL Server 2008在Visio中进行数据库图解的逆向工程
我需要对Microsoft SQL Server 2008进行反向工程,以便创建Microsoft Visio 2007数据库模型图。因此,我从"数据库"菜单中选择"反向工程师"以连接到数据库。
我配置了Microsoft SQL Server Visio驱动程序,以便使用SQL Server Native Client 10.0作为ODBC驱动程序。之后,我创建了一个用户DSN,该用户DSN连接到我的数据库。此DSN有效(至少提供的测试成功)。在"反向工程师向导"中单击"下一步"后,Visio会询问我正确提供的凭据,但是在单击"确定"后,我收到以下消息:
The currently selected Visio driver is not compatible with the data source.
我尝试通过重新配置Visio驱动程序来尝试使用旧的SQL Server ODBC驱动程序。它也不起作用。
解决方案
通过Microsoft论坛获得Microsoft支持:
Further investigation reveals that this is expected behavior for Visio 2007. When Visio opens a connection using the Visio SQL Server Driver it checks the server version and since SQL Server 2008 shipped after Visio 2007 it doesn't recognise SQL Server 2008 as a supported version and closes the connection. You can wait for a future version of Visio to ship which does recognise SQL Server 2008 or use the Visio Generic ODBC driver which can successfully open connections to SQL Server 2008. A third option is to use a copy of SQL Server 2005 for initial reverse engineering. The Visio team is aware of this issue.
我们可以在ODBC数据源管理员实用程序中创建一个用户DSN,然后通过选择ODBC通用驱动程序而不是Microsoft SQL Server驱动程序,通过Visio 2007连接到MSSQL 2008实例。
我们也可以尝试Office 2007的SQL Server 2008数据挖掘加载项。
在这里抓取它们:
http://www.microsoft.com/downloads/details.aspx?FamilyId=896A493A-2502-4795-94AE-E00632BA6DE7&displaylang=en
我希望这有帮助!
干杯
要将Visio 2007连接到SQL Server 2008数据库,请运行Visio 2007中的反向工程师向导(数据库/反向工程师...),从"已安装的Visio驱动程序"下拉菜单中选择" ODBC通用"驱动程序。然后,使用SQL Native Client(2005.90.4035,2005 SP3)创建一个新的数据源。我们将收到一条警告,指出检索到的某些信息可能不完整。单击确定,然后继续。这不是最直观的解决方案(但并不困难),但是至少这将使我们能够使用Visio 2007连接到SQL 2008.
芯片兰伯特,
激流回旋咨询
我最终使用Generic OLE Db Provider而不是ODBC Generic驱动程序来连接到SQL Server 2008数据类型,似乎一切正常。