I'd normally connect to the database (and view all of the different tables) using Excel > Data > Get External Data > From Other Sources > From SQL Server. I'd much rather write some Stata code to automate accessing this database and selecting tables and variables.
I've read the odbc help file, but I am stumped. The examples in the help file assume the database is on one's local machine. The database I'd like to access is located on a remote server that I access using a unique IP address, username, and password.
Any advice?
I've read the odbc help file, but I am stumped. The examples in the help file assume the database is on one's local machine. The database I'd like to access is located on a remote server that I access using a unique IP address, username, and password.
Any advice?
Comment