473,396 Members | 1,907 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,396 software developers and data experts.

database roles

hey all,

is it possible in asp.net to check what database role a user is part of?

thanks,
rodchar
Aug 30 '06 #1
6 1010
KJ
Which version of SQL Server are you using?

rodchar wrote:
hey all,

is it possible in asp.net to check what database role a user is part of?

thanks,
rodchar
Aug 30 '06 #2
KJ,

One way is to execute a stored procedure, query the syslogins table and
return the roles.

I am not sure if there is any simpler way than this.

Regards,
Augustin
http://augustinprasanna.blogspot.com

"KJ" wrote:
Which version of SQL Server are you using?

rodchar wrote:
hey all,

is it possible in asp.net to check what database role a user is part of?

thanks,
rodchar

Aug 31 '06 #3
KJ
You can also use the SQL-DMO objects available in .NET code. Check out
the IsMember method of the User class.

Augustin Prasanna wrote:
KJ,

One way is to execute a stored procedure, query the syslogins table and
return the roles.

I am not sure if there is any simpler way than this.

Regards,
Augustin
http://augustinprasanna.blogspot.com

"KJ" wrote:
Which version of SQL Server are you using?

rodchar wrote:
hey all,
>
is it possible in asp.net to check what database role a user is part of?
>
thanks,
rodchar
Aug 31 '06 #4
i'm using sql server 2000. will this work here?

"KJ" wrote:
You can also use the SQL-DMO objects available in .NET code. Check out
the IsMember method of the User class.

Augustin Prasanna wrote:
KJ,

One way is to execute a stored procedure, query the syslogins table and
return the roles.

I am not sure if there is any simpler way than this.

Regards,
Augustin
http://augustinprasanna.blogspot.com

"KJ" wrote:
Which version of SQL Server are you using?
>
rodchar wrote:
hey all,

is it possible in asp.net to check what database role a user is part of?

thanks,
rodchar
>
>

Sep 5 '06 #5
KJ
Yes.

rodchar wrote:
i'm using sql server 2000. will this work here?

"KJ" wrote:
You can also use the SQL-DMO objects available in .NET code. Check out
the IsMember method of the User class.

Augustin Prasanna wrote:
KJ,
>
One way is to execute a stored procedure, query the syslogins table and
return the roles.
>
I am not sure if there is any simpler way than this.
>
Regards,
Augustin
http://augustinprasanna.blogspot.com
>
"KJ" wrote:
>
Which version of SQL Server are you using?

rodchar wrote:
hey all,
>
is it possible in asp.net to check what database role a user is part of?
>
thanks,
rodchar
Sep 5 '06 #6
thank you all for the help.

"KJ" wrote:
Yes.

rodchar wrote:
i'm using sql server 2000. will this work here?

"KJ" wrote:
You can also use the SQL-DMO objects available in .NET code. Check out
the IsMember method of the User class.
>
Augustin Prasanna wrote:
KJ,

One way is to execute a stored procedure, query the syslogins table and
return the roles.

I am not sure if there is any simpler way than this.

Regards,
Augustin
http://augustinprasanna.blogspot.com

"KJ" wrote:

Which version of SQL Server are you using?
>
rodchar wrote:
hey all,

is it possible in asp.net to check what database role a user is part of?

thanks,
rodchar
>
>
>
>

Sep 5 '06 #7

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

Similar topics

0
by: DCount17 | last post by:
I need to create a windows application (using C#) that creates/assigns and retrieves database roles on Analysis Services. While I can get the users from the "Members" table on SQL Server, I am...
4
by: MS User | last post by:
VB.Net / SQL 2K We are developing a VB.Net application and the question is regarding the Login screen We have a table which stores the access-level for each users. Here is our requirement. ...
5
by: isideveloper | last post by:
I'm building a new C# web application that will provide my company some administrative operations that were previously only completed by tweaking the data in the database. 1. Encrypted password...
4
by: AC | last post by:
Hi there. My asp.net 2.0 development website uses roles to control access to sections of my site, configured using the asp.net configuration tool, which is great. Except that isn't available once...
1
by: Jeff | last post by:
hi asp.net 2.0 sql server 2005 (I'm using that Express version) I have a asp.net project here which I'm wondering how to deploy the database of. Right now I locally created a database and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.