Nov 25, 2005 #1 angiem MIS Sep 29, 2000 116 CA I am adding a user to my database and grant them access using OSQL, no problem with adding user but this statement doesn't work, what am I doing wrong -E -d database -Q \EXEC sp_grantdbaccess \username,\userpwd\
I am adding a user to my database and grant them access using OSQL, no problem with adding user but this statement doesn't work, what am I doing wrong -E -d database -Q \EXEC sp_grantdbaccess \username,\userpwd\
Nov 27, 2005 #2 mrdenny Programmer May 27, 2002 11,595 You don't need to specify a password when using sp_grantdbaccess. Look up sp_grantdbaccess in BOL for all the paramaters. Denny MCSA (2003) / MCDBA (SQL 2000) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com Upvote 0 Downvote
You don't need to specify a password when using sp_grantdbaccess. Look up sp_grantdbaccess in BOL for all the paramaters. Denny MCSA (2003) / MCDBA (SQL 2000) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com