Hi JJ,
As far as I know, the database table name which ASP.NET SqlProvider
references are fixed. I think it is hardcoded in the ASP.NET SQL provider's
stored procedure code since ASP.NET providers that deal with SQL Server
calls the stored procedures internally. For your scenario, I think you have
the following two options:
1. Change your own data access code logic also use the "ado.aspnet_xxxx"
name convention
2. Manually change those store procedures (generated by ASP.NET provider
configuration tool) in your provider's database. However, this is really
not recommended and may cause unexpected problem.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "JJ" <(E-Mail Removed)>
>References: <(E-Mail Removed)>
<(E-Mail Removed)>
<(E-Mail Removed)>
<B58EB8BD-C079-4D75-95AB-(E-Mail Removed)>
>Subject: Re: configuration tool
>Date: Thu, 24 Jan 2008 16:36:58 -0000
>
>The database contains both dbo. and sqlusername. named tables (This was a
>mistake) However I notice that the configuration tool accesses the dbo.
>tables and the site accesses the sqlusername tables....
>
>Can you see what I am saying? - the two default to different tables. The
>code does not include any schema dbo. etc only references the table names.
>
>"Peter Bromberg [C# MVP]" <(E-Mail Removed)> wrote in
message
>news:B58EB8BD-C079-4D75-95AB-(E-Mail Removed)...
>> "dbo." is the "database owner" portion of the fully qualified table
name.
>> You
>> should be able to leave it off.
>> -- Peter
>> Site: http://www.eggheadcafe.com
>> UnBlog: http://petesbloggerama.blogspot.com
>> MetaFinder: http://www.blogmetafinder.com
>>
>>
>> "JJ" wrote:
>>
>>> What if you're tables aren't named 'dbo.aspnet_xxxx'? i.e. they are
named
>>> 'sqlusername.aspnet_xxxx'?
>>> The configuration tool seems to use the 'dbo.aspnet_xxxx' tables even
>>> though
>>> the app uses the 'sqlusername.aspnet_xxxx' tables. All these tables are
>>> in
>>> the same database.
>>>
>>> "Eliyahu Goldin" <(E-Mail Removed)> wrote in
>>> message news:(E-Mail Removed)...
>>> > You can point the asp.net membership to a different database in the
>>> > web.config file:
>>> >
>>> > <connectionStrings>
>>> > <remove name="LocalSqlServer"/>
>>> > <add name="LocalSqlServer" connectionString="..."/>
>>> > </connectionStrings>
>>> >
>>> > There is a command in the VS command prompt that will create the
>>> > membership provider objects in the database you specify.
>>> >
>>> > Does it help you? I am not sure I understand your dbo. issue.
>>> >
>>> > --
>>> > Eliyahu Goldin,
>>> > Software Developer
>>> > Microsoft MVP [ASP.NET]
>>> > http://msmvps.com/blogs/egoldin
>>> > http://usableasp.net
>>> >
>>> >
>>> > "JJ" <(E-Mail Removed)> wrote in message
>>> > news:(E-Mail Removed)...
>>> >> Is there any way that you can point the configuration tool to look at
>>> >> asp.net membership sql tables that don't have the default 'dbo.' at
>>> >> the
>>> >> start ?
>>> >>
>>> >> Thanks
>>> >> JJ
>>> >>
>>> >
>>> >
>>>
>>>
>>>
>
>
>