stupid question...how do I do this
The current user must have permission to use Sql Server. Make sure you
- Show quoted text -
The quick answer is to install BCM yourself, with your login. That is
probably the case with 90% of users: one user per PC.
When that is not the case, then things get complicated and depend on
the details. Different versions of BCM have done things differently,
Vista handles permissions differently from Xp, the home versions of
Windows are different from the pro versions, PCs on domain networks
behave differently from standalone PCs, and so on. BCM is designed to
"just work" for the 90% case, and does the best it can with the
infinite possible other permutations.
I just checked the permissions in the BCM instance of Sql Server.
Everyone (the NT User group) has permission to logon to Sql, and
everyone has permission to create databases from Sql's master
database. That means that when a user runs BCM for the first time and
chooses to create a new database, BCM must connect to the master
database, create the database for that user, and then connect to and
use that database. There doesn't seem to be a permission for restoring
databases, so I suspect that all that's required to restore a database
is permission to create a new database. If that's the case with the
OSQL command, that it connects to the master database, from there
tries to create a database using an existing mdf file, and then fails
with a permission error, then the likely problem, in my experience, is
that Sql doesn't have permission to manipulate files in a folder it is
trying to use. I've seen that a lot recently on Vista. It didn't use
to be an issue because Sql used to run as administrator, but
permissions have been tightened up significatly with Sql Server 2005
and Vista. What's actually going wrong, causing the permission error,
in your case is going to depend on your particular circumstances, the
details. So, my advice, is to rerun the BCM Setup yourself.
If you already did that, then you could search this newsgroup for
"network service" (the login the sql service uses), and see what
worked for other users with similar issues.