I thought I needed the SQL-username i Access so that I could filter the records for that specific user. I understand now that I can do that in SQL-server instead with CURRENT_USER as a filterparameter from the ODBC login.
My next problem i how to manage passwords if it's needed to let the user set the password themselves after a temporary password.
You can use the SUSER_SNAME function to retrieve the current SQL username in queries - this means that you can do them server side and cut down on network traffic between PC's and database server.
eg
Code:
SELECT f1, f2, f3, f4
from t1
WHERE t1.loginid = SUSER_SNAME()
ORDER BY f1
If you're storing a password for your application in the database, why not just use SQL password checking instead. I realise that in SQL 2000 its not great - no "force change at next login" and enforcement of complexity rules has to be done manually, but in 2005 its a lot better.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.