Adding Objects to a SQL Server Database
The nicest thing about the SQL Server support in Access is that it lets you work inside the familiar Access window, even though youâre dealing with a very different database engine. However, you pay a price for this convenience. As youâll see in the following sections, creating database objects for SQL Server isnât quite as intuitive as creating them for Access.
Creating a Table
You can create a table in any Access project (.adp file), whether itâs a new database you created from scratch or an existing one that youâre working with. Either way, the process is the same.
First, choose CreateâTablesâTable Design. You canât create a SQL Server table in Datasheet view. Instead, you always need to start in Design view. You can also edit an existing table in Design view in the normal way. Just right-click it, and then choose Design View.
When the Design view appears, youâll notice that it looks a bit different from the Design view for ordinary Access tables. Fortunately, it still works essentially the same way. You add a list of fields from top to bottom, and configure the name, data type, and size of each one. (SQL Server calls them columns instead of fields, but thereâs really no difference.)
Each field has five columns of information (Figure 21-15) for you to fill out:
Column Name. This column identifies the field (just as it does in a normal Access table). To avoid headaches, donât use spaces or special characters.
Data Type. This ...
Get Access 2010: The Missing Manual now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.