473,698 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem Accessing SQL Database

Hi,

I am facing a problem accessing SQL Server using WindowsAuthenti cation. One
Sharepoint application development team need a webpart to access one SQL
Server Database using a service account (Windows Authentication) . Due to
company policy, SQL authentication is not allowed. When a user uses the web
page with the Webpart, it should connect to the Database using this Windows
Service Account and pull the data for display. When the connection string is
composed with Windows Authentication with Windows Authentication, access
denied error pops up. Any work around for any user to use this Windows
Account to access the database for any logged in user ? Thanks

Suhas

Nov 17 '05 #1
3 1394
You need to make sure that the account ASP.NET is running under has
access to the database. Check out this quick article for info
http://www.devx.com/security/Article/20898/0/page/4

Regards,

Abdellah Elamiri

Nov 17 '05 #2
Hi,

Thanks for the providing the help. I would like to know whether it is
possible to execute only one block of code using Windows Authentication - I
mean with the service account ? I am not sure whether the existing settings
for ASP.NET account will be allowed to change.

Thanks
Suhas
"Abdellah Elamiri" wrote:
You need to make sure that the account ASP.NET is running under has
access to the database. Check out this quick article for info
http://www.devx.com/security/Article/20898/0/page/4

Regards,

Abdellah Elamiri

Nov 17 '05 #3
> Thanks for the providing the help. I would like to know whether it is
possible to execute only one block of code using Windows Authentication
- I
mean with the service account ? I am not sure whether the existing
settings
for ASP.NET account will be allowed to change.

That is possible (though not easy) with impersonation. According to the
documentation it works properly on Windows XP or 2003, but doesn't work on
Windows 2000.

See the following linkg for more details:
http://msdn.microsoft.com/library/de...onateTopic.asp

Greetings,
Wessel
Nov 17 '05 #4

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

Similar topics

4
2985
by: Jaydeep | last post by:
Hello, I am facing a strange problem. Problem accessing remote database from ASP using COM+ server application having VB components (ActiveX DLL) installed. Tier 1 : ASP front End (IIS 5.0) Tire 2 : COM objects Tier 3 : SQL Server 2000 DB Flow is : ASP talks with COM objects and COM objects talks with DB Scenario 1
0
1920
by: Xerxes | last post by:
I am having a problem with accessing MySQL database from my PHP code. I tested accessing MySQL db locally and once things worked I created the same DB on my web hosting's server. No problem creating database and tables and populating it. My database is called "sassisc". However, my code dies when it tries to connect to DB: $result = mysql_pconnect('localhost', 'sassisc', 'dodge3') or die("Could not connect : " . mysql_error());
3
15632
by: Jagdip Singh | last post by:
Hi, We are facing problem accessing to DB2. Seems like database manager is down I tried starting it using db2start but it was neither showing any messages nor returning to command prompt after finishing start. I do not know actually if it was trying to start database or hanging somewhere
3
4318
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different geographical locations. I have been completely unsucessful in acheiving this goal so far however. Things I have tried: Create a shortcut to ftp sight via browser then tried to map local drive to
9
3206
by: zMisc | last post by:
When I try to update record, I kept getting this error: Row cannot be located for updating. Some values may have been changed since it was last read. No other users are accessing the database - only 1 user is accessing the database. I open the data using adLockOptimistic locking.
1
2229
by: Jake Henderson | last post by:
I am developing apps in VWD Express and SQL Svr 2005 Express. I currently have a web server running Win2K3 SBS W/IIS V.6.0 & ASP.NET 2.0. I am currently using a test site that is only availible on my intranet. I have no problem accessing the site, but when a link is clicked or somthing happens where data is required from the SQL database, I get a long, ugly error message that says: Server Error in '/' Application....
8
1722
by: supasnail | last post by:
I have a happily working set of asp pages which read from the database via include file "./_private/include/database.mdb". However, when I try to gain access to this database on pages one folder removed using "../_private/include/database.mdb", the pages won't display. This whole system works fine on my home test server (iis.5.0), but 'breaks' when uploaded to the public server. I know the path to database is correct because the upper...
13
13246
yolenman
by: yolenman | last post by:
Hello - This is my first posting to this group, so please bear with me. Also note, that while I'm intelligent, databases are not in my field of knowledge. I'm working with a small limousine company. They presently have about 4 networked computers, all running Windows XP (w/SP2) and Microsoft Office 2000 (specifically Access 2000) - and a plain jane p3 server also running Windows XP (w/sp2) with Office 2000 loaded onto it. These...
0
4439
by: mitrofun63 | last post by:
Hello. On my production site i have DB2 9.1.2 database configured for archiving logs and making backup through TSM Data Protection for DB2 UDB The LOGARCHMETH1 parameter is set to LOGARCHMETH1=VENDOR:/usr/tivoli/ tsm/tdp_r3/db264/libtdpdb264.a I make an online backup with include logs to servers local disk and then tranfer backup image to my test box for backup validate.
0
8674
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9027
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.