We have discovered something else that might be causing the problem and
would explain why I can connect to the database, view the tables, but
not access the records, getting the error message that the view
(vcolor) is an invalid object.
The dba has an unique schema set up for the views that I have access to.
These have a qualifer of "netapps". So to properly access the records
I should query netapps.vcolor. But for some reason I don't see the
schema within Visual Studio, in neither the server explorer nor the
datasource configure wizard. When I view the database in SSMS I DO see
the qualifing schema.
Does anyone have any idea why the schema is not visible in Visual Studio
and what I can do to fix it?
Any help is appreciated.
[quoted text, click to view] Geary wrote:
> Our DBA added the user "aspnet" to the user group. Unfortunately I am
> still unable to access the data in the views from within my asp.net
> pages. Apparently something else is going on. I reviewed everything I
> can get my hands on and I am confident that I have everything set right.
> I am sure the problem is at his end. Unfortunately I am also not real
> familiar with the security model of sqlsvr 2005 to help him. Plus his
> paranoia wouldn't allow me to examine the inner workings of his server
> anyway. Are all dba's so paranoid?
>
> Probably our best hope is to try to find a local consultant who is a wiz
> at sqlsvr 2005 and pay for a day of his time. Have him review the
> security settings and tell us where we are going wrong. Damn, I hate
> admitting defeat but it looks like the root of the problem is outside of
> my power to directly fix.
> Roger Wolter[MSFT] wrote:
>> Yes, that's exactly what would happen. You web pages connect as
>> ASPNET not you. This also happens sometimes when switching from
Views and schemas that you don't have access to will not be visible. If
you are not including the schema name in the view name myschema.myview it
won't be visible if you don't have the right default schema set.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm [quoted text, click to view] "Geary" <moondog05@comcast.net> wrote in message
news:up7BuR3IHHA.4928@TK2MSFTNGP06.phx.gbl...
> We have discovered something else that might be causing the problem and
> would explain why I can connect to the database, view the tables, but not
> access the records, getting the error message that the view (vcolor) is an
> invalid object.
>
> The dba has an unique schema set up for the views that I have access to.
> These have a qualifer of "netapps". So to properly access the records I
> should query netapps.vcolor. But for some reason I don't see the schema
> within Visual Studio, in neither the server explorer nor the datasource
> configure wizard. When I view the database in SSMS I DO see the qualifing
> schema.
>
> Does anyone have any idea why the schema is not visible in Visual Studio
> and what I can do to fix it?
>
> Any help is appreciated.
>
> Geary wrote:
>> Our DBA added the user "aspnet" to the user group. Unfortunately I am
>> still unable to access the data in the views from within my asp.net
>> pages. Apparently something else is going on. I reviewed everything I
>> can get my hands on and I am confident that I have everything set right.
>> I am sure the problem is at his end. Unfortunately I am also not real
>> familiar with the security model of sqlsvr 2005 to help him. Plus his
>> paranoia wouldn't allow me to examine the inner workings of his server
>> anyway. Are all dba's so paranoid?
>>
>> Probably our best hope is to try to find a local consultant who is a wiz
>> at sqlsvr 2005 and pay for a day of his time. Have him review the
>> security settings and tell us where we are going wrong. Damn, I hate
>> admitting defeat but it looks like the root of the problem is outside of
>> my power to directly fix.
>> Roger Wolter[MSFT] wrote:
>>> Yes, that's exactly what would happen. You web pages connect as ASPNET
>>> not you. This also happens sometimes when switching from debugging
>>> which runs as you to normal which runs as the web page.
Solved it.
The query will always fail in the datasource configuration wizard. Just
step thru the wizard. Go to source view of the datasource and
manually edit the select command to include the schema.
For example
SELECT * FROM [vColor]
becomes
SELECT * FROM [netapps].[vColor]
[quoted text, click to view] Geary wrote:
> We have discovered something else that might be causing the problem and
> would explain why I can connect to the database, view the tables, but
> not access the records, getting the error message that the view
> (vcolor) is an invalid object.
>
> The dba has an unique schema set up for the views that I have access to.
> These have a qualifer of "netapps". So to properly access the records
> I should query netapps.vcolor. But for some reason I don't see the
> schema within Visual Studio, in neither the server explorer nor the
> datasource configure wizard. When I view the database in SSMS I DO see
> the qualifing schema.
>
> Does anyone have any idea why the schema is not visible in Visual Studio
> and what I can do to fix it?
>
> Any help is appreciated.
>
> Geary wrote:
>> Our DBA added the user "aspnet" to the user group. Unfortunately I am
>> still unable to access the data in the views from within my asp.net
>> pages. Apparently something else is going on. I reviewed everything
>> I can get my hands on and I am confident that I have everything set
>> right. I am sure the problem is at his end. Unfortunately I am also
>> not real familiar with the security model of sqlsvr 2005 to help him.
>> Plus his paranoia wouldn't allow me to examine the inner workings of
>> his server anyway. Are all dba's so paranoid?
>>
>> Probably our best hope is to try to find a local consultant who is a
>> wiz at sqlsvr 2005 and pay for a day of his time. Have him review the
>> security settings and tell us where we are going wrong. Damn, I hate
>> admitting defeat but it looks like the root of the problem is outside
>> of my power to directly fix.
>> Roger Wolter[MSFT] wrote:
>>> Yes, that's exactly what would happen. You web pages connect as
>>> ASPNET not you. This also happens sometimes when switching from
Don't see what you're looking for? Try a search.