This is a migrated thread and some comments may be shown as answers.

Cannot Choose Database Items when connecting AD Group with Multiple Schemas

7 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Greg Lynne
Top achievements
Rank 1
Greg Lynne asked on 29 Jun 2011, 10:08 PM
Hi,

I am using OpenAccess and I am unable to choose any tables in the wizard (can connect to database fine). The problem seems to arise when the user connecting to the database, is connecting as an active directory group (not a user) and there are multiple schemas in the database. As active directory groups do not have a deafult schema then the schema 'dbo' is not available to select. If the other available schemas do not have tables in them then you are unable to select any tables.

We use:
Telerik Version 2011.1.510.1
SQL Server 2008 R2
Visual Studio 2010

1. Using the wizard to connect to a database as a active directory group.
2. The database has multiple schemas.
3. The schema 'dbo' is not available to select and availble schemas do not have tables in them.

With some quick research I see a call may be logged with microsoft around this, however  I have tested and it works fine using the MS Entity Framework wizard.

I hope this makes sense, does anyone know a fix for this.

Andrew

7 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 05 Jul 2011, 02:52 PM
Hi Andrew Brown,

Maybe I did not understand you correctly but how are you logging in as a group and not as a user? Could you please send me the connection string you are using, so I can try the same setup in order to replicate the problem? Have you granted reading rights to the AD group in the dbo schema? If yes, this should be enough for any user in this group to read the schema and see it in the Create Domain Model wizard.

All the best,
Alexander
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Greg Lynne
Top achievements
Rank 1
answered on 05 Jul 2011, 10:10 PM
The connection string remains standard from within Viusal Studio, i.e. "Data Source=#DBNAME;Initial Catalog=BarCoding;Integrated Security=True". It is on the SQL Server end, where a group is added to the security/users on a database. So I and other developers are in a particular group. As I said previouslly, this exception only occurs when there are multiple schemas for the database in SQL Server and this is when the "New Domain Model Wizard" cannot find the "dbo" schecma.
0
Greg Lynne
Top achievements
Rank 1
answered on 05 Jul 2011, 10:13 PM
Sorry forgot to add, that in this case the group has "db_owner" rights on the database.
0
Greg Lynne
Top achievements
Rank 1
answered on 05 Jul 2011, 10:15 PM
Also forgot to mention this is other user schemas not the db_* schemas.
0
Alexander
Telerik team
answered on 12 Jul 2011, 05:07 PM
Hello Andrew Brown,

Sorry for the delay, we are quite busy around the release. We are currently investigating this behavior and will notify you as soon as we have some more details.

Kind regards,
Alexander
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Accepted
Alexander
Telerik team
answered on 14 Jul 2011, 02:51 PM
Hi Andrew Brown,

We found the problem and it is that we are querying the sys.database_principals table to obtain the default schema name for the current user. However, this table does not contain a record for the current user. The record for the group login used has the default_schema_name set to NULL, as group logins do not have default schemas.
Probably we will have to implement additional logic to handle this case and get the default schema for the dbo user. You can expect this to be fixed in one of the following internal builds or service packs. Until then, I am afraid you will have to use another login (not a group one) to create the domain model. Once you create the model and include all needed tables, you can switch back to the group login, there should be no problems at runtime. Please excuse us for the inconvenience caused.

Best wishes,
Alexander
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Greg Lynne
Top achievements
Rank 1
answered on 14 Jul 2011, 10:01 PM
Thats great thanks, glad I brought it to your attention.
Tags
General Discussions
Asked by
Greg Lynne
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Greg Lynne
Top achievements
Rank 1
Share this question
or