简体   繁体   English

如何将Mendix连接到SQL Server?

[英]How to connect Mendix to SQL Server?

I'm just learning how to use Mendix and I'm running into a problem. 我正在学习如何使用Mendix,但遇到了问题。 I have a database that holds things such as Landing Zones, County, and Helicopter information. 我有一个数据库,其中包含着陆区,县和直升机信息。 I can't seem to figure out how to connect my SQL Server database to the application. 我似乎无法弄清楚如何将SQL Server数据库连接到应用程序。 Any ideas? 有任何想法吗?

If you want to get data from another database, you will have to use appservices or webservices. 如果要从另一个数据库获取数据,则必须使用appservices或webservices。

Alternatively, you can connect your application to your MSSQL Database Settings -> Profile 或者,您可以将应用程序连接到MSSQL数据库设置->配置文件

在此处输入图片说明 在此处输入图片说明

Create entities in your domainmodel for the data, and import your data into the table using the sql tool of your preference ( SQL Express ) 在您的domainmodel中为数据创建实体,然后使用您偏好的sql工具( SQL Express )将数据导入表中

This will work for static data. 这将适用于静态数据。 If the data is dynamic, you will need webservices 如果数据是动态的,则将需要Web服务

Read more on how to import or publish a webservice 阅读有关如何导入发布 Web服务的更多信息

And here on consuming one 在这里消耗一个

If the data are in another mendix application, you might need to consume a published appservice to do it. 如果数据在另一个mendix应用程序中,则可能需要使用发布的 appservice来进行处理。

Finally, you might get more feedback on the Mendix forum 最后,您可能会在Mendix论坛上获得更多反馈

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

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