Having problem with SQLConnection.ChangeDatabase() method.

K

Ken Varn

I have multiple databases in which I want to traverse. Each database is
secured using Applicaiton Roles. I use the SQLConnection object to connect
to the first database. I run the sp_setapprole procedure and I can access
the tables with no problem. However, when I try to call the ChangeDatabase
method on my connection object, I get an exception thrown stating that my
application role user is not a valid user in the database. If I connect to
the same database using Open, it works fine. I don't quite understand what
is going on here. Can anyone help?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top