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

ASP.NET 2.0 SqlDataSource and SQL 2005 Express Application Role

Dear All,

I am not sure I shall post this here. If not, please let me know.

I am building a web application using asp.net 2.0 using c# (IIS 5 under XP)
with the web developer express edition and Sql 2005 express edition. I love
the SqlDataSource control, and want to use it to access my database. I am
planning my database to use "application role", but SqlDataSource only acept
a connection string. That means I cannot use SQL Application Roles. Am I
mis-understand something or I need to use a SQL Server Login instead?

Thank you.
Aug 14 '08 #1
1 1456
On Aug 14, 12:57*pm, Antony Lai <Antony...@discussions.microsoft.com>
wrote:
Dear All,

I am not sure I shall post this here. If not, please let me know.

I am building a web application using asp.net 2.0 using c# (IIS 5 under XP)
with the web developer express edition and Sql 2005 express edition. I love
the SqlDataSource control, and want to use it to access my database. I am
planning my database to use "application role", but SqlDataSource only acept
a connection string. That means I cannot use SQL Application Roles. Am I
mis-understand something or I need to use a SQL Server Login instead?
You could probably do that by registering handlers for Selecting/
Updating/Deleting/Inserting events of SqlDataSources, and within them,
calling sp_setapprole. However, app roles also don't play nice with
ADO.NET connection pool (it's not aware of them, so it will happily
take your connection post-sp_setapprole and try to recycle it; if you
use more than one approle in your application - including any 3rd-
party components that you might be using - that won't work well), so
you may need to disable pooling as well.
Aug 14 '08 #2

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

Similar topics

8
by: Mike Kelly | last post by:
I've chosen to implement the "optimistic concurrency" model in my application. To assist in that, I've added a ROWVERSION (TIMESTAMP) column to my main tables. I read the value of the column in my...
3
by: yefei | last post by:
I need to display images in a SQL database using a gridview I search some examples, what they did is very simple add an image field, then set the folowing properties <asp:imagefield...
4
by: Matt Colegrove | last post by:
I'm working on a web app that is published to a hosting service. I'm developing it on my local PC with VS 2005 and SQL Express. The hosting service DB is SQL Server 2000. I have two...
0
by: Camel | last post by:
Hi, I'm just learning the new databinding paradigm in ASP.NET 2 and I have a question. What if I want to use 1 SqlDataSource for 2 comboboxes? What I want is a master/detail relationship...
1
by: tom c | last post by:
I am using Visual Web Developer 2005 Express Edition. I created a SQLDataSource just by draging the control to the form and filling in the blanks in the wizard. In code I need to use the...
3
by: ianforgroupuse | last post by:
I'm running Vista Business edition on 2005 Virtual PC. Installed SQL Server 2005 Express latest download, with instance of MSSQLSERVER and service accounts running under "NT AUTHORITY\SYSTEM"....
1
by: sheenaa | last post by:
Hello Members, I m creating my application forms in ASP.Net 2005 C# using the backend SQL Server 2005. What i have used on forms :: ? On my first form i have used some...
3
by: Lee T. Hawkins | last post by:
I am having a number of problems over the last two full days trying to get an ASP.NET 2.0 application to connect to a SQL Server 2005 database... First off, I built this application w/ Visual...
2
by: makennedy | last post by:
Hi Experts, Please help, I am a newbie to ASP.NET 2.0 may be I am doing something wrong or there may be a bug somewhere. Basically I have a TreeView Control which I have created...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.