PC Review


Reply
Thread Tools Rate Thread

configuration tool

 
 
JJ
Guest
Posts: n/a
 
      24th Jan 2008
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


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      24th Jan 2008
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
>



 
Reply With Quote
 
JJ
Guest
Posts: n/a
 
      24th Jan 2008
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
>>

>
>



 
Reply With Quote
 
Peter Bromberg [C# MVP]
Guest
Posts: n/a
 
      24th Jan 2008
"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
> >>

> >
> >

>
>
>

 
Reply With Quote
 
JJ
Guest
Posts: n/a
 
      24th Jan 2008
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
>> >>
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      25th Jan 2008
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
>>> >>
>>> >
>>> >
>>>
>>>
>>>

>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.Net Configuration Tool Al Christoph Windows Vista General Discussion 3 28th Nov 2006 09:21 PM
not 'getting' asp.net 2.0's web configuration tool Darrel Microsoft ASP .NET 4 12th Apr 2006 10:29 PM
Microsoft Configuration Block and Enterprise library configuration tool Mark Microsoft ASP .NET 0 15th Feb 2006 11:27 PM
ASP.NET Configuration Tool =?Utf-8?B?U3RldmVuIFJhbWFjaGVy?= Microsoft ASP .NET 4 4th Jan 2006 01:38 AM
lcd configuration tool? smithy ATI Video Cards 1 18th Dec 2004 10:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:39 AM.