L
LoriK
I have access to a SQL server database via a gui w/ a user id and
password. However, when I was installing the system (so I could access
the tables directly) and setting up the ODBC connection I had to user a
'generic' long userid and password to connect to the database. My
personal id wouldn't work.
I have created an Access database and linked to these tables and worked
up some queries. However, the first time I come into the database and
try to access a linked table I get a SQL Server login screen telling me
that the connection failed. It then prompts me to login. I have to use
the (long) name & password that I originally used to install (my GUI
login doesn't work.)
Up until now, this has worked OK - I just have to retype in the login &
password when I first enter the database. But now I'm trying to figure
out if there is some way to store the password in the connection. (I'm
pretty good w/ access; used to know VBA really well; but a bit foggy
on SQL server connections).
My ultimate problem is I have a lovely little spreadsheet I built where
I can just plug in the database path & query and it will automatically
run the query and pull the results into the spreadsheet. (Very handy
for my database-frightened coworkers.) However, I am unable to connect
to this Access database b/c my ODBC connection always fails b/c I don't
get to a place to put in my password.
If I can't store the name & pass w/ the connection, I'm wondering if I
could put it into the Excel VBA. The only catch is I am not connecting
directly to the SQL Server - instead I'm connecting to the Access
Database which has a rather complex set of queries needed to transform
the data into something I can use.
Phew! Am I using completely the wrong approach here? Frankly, I'm
probably going to HAVE to do my work in Access & present it in Excel.
I suppose I could flip it around & write VBA in Access to automatically
populate my excel reports (ie a push instead of a pull so to speak).
Then I would just login to the Access dbase, run my code, and make the
excel pop up.
But I suspect there is some crucial tidbit of knowledge that I just
need to learn about ODBC & connections & SQL Server to make my original
solution work.
Thank you so much for your time in reading this!
Lori
password. However, when I was installing the system (so I could access
the tables directly) and setting up the ODBC connection I had to user a
'generic' long userid and password to connect to the database. My
personal id wouldn't work.
I have created an Access database and linked to these tables and worked
up some queries. However, the first time I come into the database and
try to access a linked table I get a SQL Server login screen telling me
that the connection failed. It then prompts me to login. I have to use
the (long) name & password that I originally used to install (my GUI
login doesn't work.)
Up until now, this has worked OK - I just have to retype in the login &
password when I first enter the database. But now I'm trying to figure
out if there is some way to store the password in the connection. (I'm
pretty good w/ access; used to know VBA really well; but a bit foggy
on SQL server connections).
My ultimate problem is I have a lovely little spreadsheet I built where
I can just plug in the database path & query and it will automatically
run the query and pull the results into the spreadsheet. (Very handy
for my database-frightened coworkers.) However, I am unable to connect
to this Access database b/c my ODBC connection always fails b/c I don't
get to a place to put in my password.
If I can't store the name & pass w/ the connection, I'm wondering if I
could put it into the Excel VBA. The only catch is I am not connecting
directly to the SQL Server - instead I'm connecting to the Access
Database which has a rather complex set of queries needed to transform
the data into something I can use.
Phew! Am I using completely the wrong approach here? Frankly, I'm
probably going to HAVE to do my work in Access & present it in Excel.
I suppose I could flip it around & write VBA in Access to automatically
populate my excel reports (ie a push instead of a pull so to speak).
Then I would just login to the Access dbase, run my code, and make the
excel pop up.
But I suspect there is some crucial tidbit of knowledge that I just
need to learn about ODBC & connections & SQL Server to make my original
solution work.
Thank you so much for your time in reading this!
Lori