querying database

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

SydneyGeek

MrExcel MVP
Joined
Aug 5, 2003
Messages
12,251
Check out this link -- tells you how to set up links to SQL Server.

http://is.coafes.umn.edu/Connect_SQL_Server_from_MS_Access.html

If you want to query SQL Server without having to enter a password, you have 2 main options that I know of:

1. Use code to connect to the database and pull down the queries that you are interested in

2. If you want read-only access to SQL Server, consider using pass-through queries. In this case you need to create the SQL by hand, but the connection string is part of the query so users don't need to enter passwords.

Denis
 

Forum statistics

Threads
1,141,624
Messages
5,707,466
Members
421,510
Latest member
haroonstr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top