简体   繁体   English

Delphi XE和SQL Server 2008表达连接

[英]Delphi XE and SQL Server 2008 express connection

How can I connect Delphi and SQL Server 2008? 如何连接Delphi和SQL Server 2008?

I found on the internet a tutorial teaching how to use SQLConnection. 我在网上找到了一个教程如何使用SQLConnection的教程。

The problem is that Delphi doesn't give me an option to select MSSQL, only Interbase/Firebird and MySql. 问题是Delphi没有给我一个选择MSSQL的选项,只有Interbase / Firebird和MySql。

Is there any driver missing? 有没有司机失踪?

I know we can use a component like Devart but I just want to use what Delphi XE offers. 我知道我们可以使用像Devart这样的组件,但我只想使用Delphi XE提供的功能。

If you have Delphi XE Architect or Enterprise, you should be able to connect with TSQLConnection . 如果您有Delphi XE Architect或Enterprise,您应该能够与TSQLConnection连接。 Since you don't see that, I'm guessing you have the Professional SKU. 既然你没有看到,我猜你有专业的SKU。

You can use ADO via TADOConnection , TADOCommand and TADOQuery to work with SQL Server in XE Pro. 您可以通过TADOConnectionTADOCommandTADOQuery使用ADO在XE Pro中使用SQL Server。 You'll find them on the dbGo tab in the component palette. 您可以在组件面板的dbGo选项卡上找到它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM