Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OSQL problem

Status
Not open for further replies.

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\
 
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)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top