473,231 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

sql server and membership provider

Hello all,
I need help with sql server which i was wondering if someone can shed
some light on my problem

The problem:
Hello all,
I need help with sql server which i was wondering if someone can shed
some light on my problem

The problem:
i am using .net 2.0 membership provider interface to provide a
membership in my website...now i also am using the sql server 2005 for
the backbone of the site..now when a new user is created their
information is saved into asp_ membership and their userid is
automactially saved into another table called asp_users...now these are
defaults by membership provider...what i would like to do is to create
another table which i have called "Rank" and i would a column in this
"rank" table that would keep the user ids, now i have noticed that the
asp_user.UserId has a releationship with asp_Membership.userId so when a
new user is created asp_user.Userid automactially gets updated..i have
created a colum called Rank.UserId which has a relationship with
asp_users.userid and asp_membershi.Userid but it doesnot get updated
automatically when a new user is created...what can i do so i can have
this table "Rank" also gets updated automactially as soon a a new user
is created or a user has been deleted...just like asp_users gets updated
...thanks in advance

---
Best Regards
Amir

---
Best Regards
Amir

*** Sent via Developersdex http://www.developersdex.com ***
Feb 19 '06 #1
1 3004
Amir,
In order to handle this you need to write a custom SqlMembership / Role
provider class derived from the respective base classes and implement your
"extra table" stuff in the apporpriate overridden methods.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Amir Ghezelbash" wrote:
Hello all,
I need help with sql server which i was wondering if someone can shed
some light on my problem

The problem:
Hello all,
I need help with sql server which i was wondering if someone can shed
some light on my problem

The problem:
i am using .net 2.0 membership provider interface to provide a
membership in my website...now i also am using the sql server 2005 for
the backbone of the site..now when a new user is created their
information is saved into asp_ membership and their userid is
automactially saved into another table called asp_users...now these are
defaults by membership provider...what i would like to do is to create
another table which i have called "Rank" and i would a column in this
"rank" table that would keep the user ids, now i have noticed that the
asp_user.UserId has a releationship with asp_Membership.userId so when a
new user is created asp_user.Userid automactially gets updated..i have
created a colum called Rank.UserId which has a relationship with
asp_users.userid and asp_membershi.Userid but it doesnot get updated
automatically when a new user is created...what can i do so i can have
this table "Rank" also gets updated automactially as soon a a new user
is created or a user has been deleted...just like asp_users gets updated
...thanks in advance

---
Best Regards
Amir

---
Best Regards
Amir

*** Sent via Developersdex http://www.developersdex.com ***

Feb 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: RedEye | last post by:
Hello, I am working on a test site to explore the new login controls and membership features of ASP.NET v2.0. I have tested the controls using SQL Express and have now decided to try using a...
1
by: Amir Ghezelbash | last post by:
Hello all, I need help with sql server which i was wondering if someone can shed some light on my problem The problem: Hello all, I need help with sql server which i was wondering if someone...
2
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership...
2
by: Richard Hallgren | last post by:
Hi, I've set up Role and Membership provider on a SQL Server 2000. Everything works fine when I run it from localhost (with the connection string pointing to the remote SQL Server). However when...
1
by: chris | last post by:
I have a web project where I'm using VS2005 and I have installed Sql server 2005 developer edition. I've modified my webconfig file to point to my custom provider: <connectionStrings> <add...
3
by: LamSoft | last post by:
I am not going to write a aspx to connect a SQL Server... but it tries to connect the SQL Server... Some of the Code.. protected void LoginButton_Click(object sender, EventArgs e) { if...
10
by: Scott M. | last post by:
I've seen many posts and ready articles discussing how changing the membership & roles "provider" in VS .NET is easy, but have yet to see instructions on how to do it. If I already have SQL...
1
by: =?Utf-8?B?WmhlbmcgQ2hlbg==?= | last post by:
I have an aspnetdb database sitting in different domain with the web server. To authenticate a user and populate membership provider, WCF is used. However, I have no idea how to pass the membership...
2
by: Bobby Edward | last post by:
My site is utilizing asp.net membership. It works perfect on the development machine. I copied the entire directory to the production server. Now it seems that the membership stuff is acting...
0
by: myth0s | last post by:
Hi, The question: Is it possible to have two differents ActiveDirectory Membership Provider in web.config and change at run-time from the default provider to the second provider if the first one...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.