SQL Server

SQL Server with Access Articles, tips and tricks

Inserting a record in SQL Server and retrieving key ID

There are many ways to insert records and retrieve that record key value, this approach will probably be among the quickest since all the processing occurs on the server, not in Access. The technique uses ADODB recordsets to fetch records from SQL Server. CODE: Private Function CreateDatabaseRecord( [...]

2021-03-03T12:51:17-06:00August 3rd, 2010|

Tips for designing SQL Server tables for Microsoft Access

We LOVE using SQL Server with Access! I frequently mention that SQL Server Express was the best thing to happen for Access, the two combined have the best 1-2 punch in the industry. I encourage you to explore using both technologies, or better yet, hire us to do the legwork. Here are some table desi [...]

2016-12-22T03:39:18-06:00July 24th, 2010|

Part 3: Why I grew to love Microsoft Access Data Projects

Note: This is part three of a series of articles on Access Data Projects, Click to see Part 1 Click to see Part 2  Why I learned to love Microsoft Access Data Projects As a seasoned Access programmer, it seams all I do lately is Access with SQL Server, in part because of the great combination of SQL [...]

2010-06-21T16:45:45-05:00June 21st, 2010|

Part 2 Access ADP Tip : Get rid of the login box on startup

Note: This is part two of a series of articles on Access Data Projects, Click to see Part 1 Click to see Part 3  Access ADPs can provide you with the flexibility and power only a direct connection to SQL Server can provide, but a major drawback to a developer is the login box that will always show u [...]

2010-06-06T16:40:44-05:00June 6th, 2010|

Part 1 Access ADP Tip: Using ADP ServerFilter property

Note: This is part one of a series of articles on Access ADP projects. Click to see Part 2 Click to see Part 3  Where and Filter Clause do not work when using DoCmd.OpenForm Statement One of the issues you will find when working with an Access Data Project, (ADP), is the lack of functionality in the [...]

2022-03-22T09:26:22-05:00June 3rd, 2010|

Using a SQL Server stored procedure with an insert query in Access

If you're using a SQL Server database with an Access frontend, then this article is for you. Leveraging the power of Stored Procedures from Access has numerous benefits: your server can perform transactions that would take far longer in Access. Recently I came across the following issue when working [...]

2021-03-03T14:31:59-06:00April 19th, 2010|

Using SQL Server Views with Access: Index needed for editing data.

SQL Server views are one of the best tools a Microsoft Access programmer can use to limit exposure to data and improve Access performance. Unfortunately, you can't modify data in a view unless it has an unique index, read on if that is the case for you. (You can create indexed views in SQL Server, t [...]

2021-03-03T12:46:14-06:00March 3rd, 2010|

SQL Server: Easily Grant Select to All Tables and/or Views in a Database

(Note: I loved the code I found on the original posting, but it would not work without a simple change. I'm copying the post here and highlighting my changes, talk about a time saver!) Granting Select to all tables for a login can be an extremely painful and lengthy process. Utilizing the SQL Server [...]

2010-02-25T16:34:20-06:00February 25th, 2010|

Create Deleted Records Audit Tables in SQL Server

This is a modification to an earlier tip I wrote, whereas this code will only record delete changes, my earlier article will record delete and update changes to the data. I found code online by Brett Kaiser and I modified it for my purposes, with a mind to other Access developers I made some changes [...]

2009-11-27T16:32:06-06:00November 27th, 2009|
Go to Top