この記事は Eli M. による Secrets Of FireDac: Last Inserted Auto Generated Id And Enterprise Connectors の抄訳です。
自動インクリメントフィールドがあるテーブルにデータを挿入するとき、一般的にはSQLクエリを使用して新しく作成されたレコードの最後に挿入されたIDを取得します。TFDQueryを使用してINSERTクエリを実行し、続いて、SELECTクエリを実行すれば、新しく挿入された自動インクリメントIDを取得できます。
異なるデータベースには、これを実現するために異なるSQLクエリがあります。 たとえば、MySQLには、LAST_INSERT_ID(例:SELECT LAST_INSERT_ID))という名前で実行できるSELECTクエリ関数があります。 このSELECT文を直接実行するか、FireDAC内蔵の機能を使用することができます。
FireDACには、GetLastAutoGenValueというTFDConnectionコンポーネントから呼び出すことのでき...
A common pattern when inserting data into a database table which has an auto increment field set on it is to use an SQL query to select the last inserted ID of the newly created record. Once you use your TFDQuery to run your INSERT query you can run this second query to get the newly inserted auto increment ID. Different databases have different SQL queries to accomplish this. MySQL for example has a SELECT query function that you can run called LAST_INSERT_ID() (example: SELECT LAST_INSERT...
I am working on a project that utilizes the Embarcadero Enterprise Connectors powered by CData to access SalesForce through it's API. The Enterprise Connectors provide you a wide variety of connectors for quickly and easily accessing APIs like SalesForce, Google AdWords, Mailchimp, Facebook, Azure, YouTube, and many many more.
The Enterprise Connectors work through FireDAC and give you an SQL interface to the various APIs that are on offer. This means you don't have to learn new APIs you simply...
Enterprise Connectors allows you to connect from Delphi and C++ Builder to 80+ enterprise data sources: https://www.embarcadero.com/products/enterprise-connectors.
Between these data sources, we have SAP, one of the most used ERPs in the world.
To demonstrate how easy is to connect SAP using the Enterprise Connectors with FireDAC, I decided to build a native mobile client for Android and iOS, using Delphi and FMX on the client side, and RAD Server/FireDAC on the server side.
Solution overvi...
CodeRage is this week. It starts tomorrow, and ends on Thursday, November 9th.
There are multiple great sessions scheduled that are focused on the Enterprise Connectors. The Enterprise Connectors were developed in partnership with CData, and allow you to easily extend Delphi & C++ Builder Apps with SaaS, NoSQL, & Big Data Connectivity. These unparalleled components allow you to integrate 80+ Enterprise applications, simplifying connectivity into a standard model using SQL.
In today's blog post, I am providing a simple step-by-step tutorial for creating a VCL application that connects to Google Drive using the Google Drive Enterprise Connector component.
The CData FireDAC Component for Google Drive provides an easy-to-use database-like interface for Delphi & C++Builder Apps access to live Google Drive data (Files, Changes, Apps, and more).
When we think of Salesforce, we typically think of its main use case; pulling together relevant information for sales so they can track and close deals. However, Customer Relationship Management (CRM) systems hold a great value for other members of your company as well. CRM is a term that refers to practices, strategies, and technologies that companies use to manage and analyze customer interactions and data throughout the customer lifecycle, with the goal of improving business relationships wit...