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

MS SQL Database access

Hi,

I am learning how to access MS SQL database from ASP.NET and run into 2
problems:

1/
When a user from asp page is connected to database, I can not connect to the
database from windows management console. My database was created as local.
Could be this be a problem?

Is it preferable to create database as the system db?
2/
IIS is set up to anonymous access and basic authentication. In my web config
I set up impersonate to true, so the user IUSER_username should be connected
to the database. Is this solution secure enough or should I allowe another
type of access?
3/
I was playing with the impersonate attribute and wanted to observe what’s
going on.
When I turned it OFF, the user ASPNET wanted to access the db and it was not
allowed. Then I turned it ON again, but still I get error message the access
was denied to the user ASPNET. After turning “impersonate” to true, the user
IUSER should be accessing the db. Is there any type of caching during the
development?

4/
What file I/O rights should be set up to the database mdf and ldf file?

5/
As I am using my own database, not ASPNET.mdb I wanted to remove the default
reference to it in config file (<remove …./>)
When I did it in the wwwrooot\MySite folder, I get error message. When I did
it in the APP_DATA folder where database is located, I didn’t get any error.
Why did I get the error in the first case?

Thank you for help,
Lubomir

Feb 26 '07 #1
2 1546
=?Utf-8?B?THVib21pcg==?= wrote on 26 feb 2007 in
microsoft.public.inetserver.asp.general:
I am learning how to access MS SQL database from ASP.NET and run into 2
problems:
This is a classic asp group.
Dotnet questions should be asked in:

<microsoft.public.dotnet.framework.aspnet>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 26 '07 #2
Oh,

Thanks,

Lubomir
"Evertjan." wrote:
=?Utf-8?B?THVib21pcg==?= wrote on 26 feb 2007 in
microsoft.public.inetserver.asp.general:
I am learning how to access MS SQL database from ASP.NET and run into 2
problems:

This is a classic asp group.
Dotnet questions should be asked in:

<microsoft.public.dotnet.framework.aspnet>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 26 '07 #3

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

Similar topics

10
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network...
5
by: premmehrotra | last post by:
I currently have a multi-user access database which is put on a shared drive L: on a Windows Servers. Entire database is one file premdb.mdb. Users access this database from their laptops....
8
by: John Baker | last post by:
Hi: I am URGENTLY in need of some book or web site OR tool that will help me integrate a relatively simple access application into a web page or pages. This is a time recording system (by...
1
by: Claus Haslauer | last post by:
Hi, firstly, I am new to access03 and server03 Originally, I had written an access 2002 database. Then, we transferred (for another reason) to server 2003. Then, we got access 2003. Then I...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.