Scope_Identity() in Microsoft Access

后端 未结 3 1956
执笔经年
执笔经年 2021-01-05 02:33

I\'m writing a database in Microsoft Access to save the client from having to buy SQL Server. How do you get the primary key of the row that I just inserted? In SQL Server,

3条回答
  •  悲&欢浪女
    2021-01-05 02:59

    Hmmm... there's a lot here that raises flags.

    • All Access tables should have an AutoNumber field as the primary key field
    • Data entry into tables should be done via a bound form
    • Access is not intended to have a WAN in between the front end and back end files, and may not function correctly.
    • SQL Server should be used if the file size is expected to be near or beyond 2G, a large quantity of simultaneous users, a large quantity of Long Text fields, or if there are other requirements for a back end database - such as providing data to a web server. Access is a front end database and thus the tables are nearly entirely passive.

提交回复
热议问题