[英]Using SPROCs to insert records in SQL Server backend from MS Access frontend
I recently ran into major problems inserting records into a SQL Server backend from an MS Access frontend because I was using bound forms to do the inserts. 最近,我遇到了从MS Access前端将记录插入SQL Server后端的主要问题,因为我使用绑定表单进行插入。 Multiple commenters suggested using SQL Server stored procedures to do the inserts instead.
多个注释者建议使用SQL Server存储过程来代替插入。 How is this normally done?
通常如何做? Is there general agreement that using SPROCs is a better approach than using bound forms in this scenario?
是否普遍同意在这种情况下使用SPROC比使用绑定形式更好?
I have a few specific concerns about using SPROCs: 对于使用SPROC,我有一些特别的担忧:
Stored procedures in the database give you the benefit of reusing them outside of your Access application. 数据库中的存储过程使您可以在Access应用程序外部重用它们。
Version Control: how are you providing version control on the rest of the sql database objects? 版本控制:如何为其余sql数据库对象提供版本控制? If you can put a table under version control, you can put a proc unless all of your table create and update code is in Access.
如果可以将表置于版本控制之下,则可以放置proc,除非所有表创建和更新代码都在Access中。
I wouldn't prioritize retrofitting your forms unless there are data integrity or possibly performance concerns. 除非存在数据完整性或可能的性能问题,否则我不会优先考虑对表单进行改装。 You can do this over time or when changes/updates are taking place.
您可以随着时间的流逝或在进行更改/更新时执行此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.