Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Problems MS Access database files and ASP.NET 2.0

Reply
Thread Tools

Problems MS Access database files and ASP.NET 2.0

 
 
Richard Finnigan
Guest
Posts: n/a
 
      07-27-2006
Hi

I'm having real difficulties getting a very simple access database file to
show its data in visual studio data controls with various error messages
occuring. I've changed the permissions on the app_data folder for NETWORK
SERVICE.

Inserting a record seems to be particularly difficult though reading from an
Access database seems to be possible at the moment. I've done the obvious
things like using the Advanced SQL Generation options and putting in a
primary key field into the Access database table.

I've been using Visual Web Developer though I will soon be switching to
Visual Studio.

Is it actually advisable or possible to use MS Access database files in this
environment ?

Any useful advice would be gratefully recieved.
--
Richard Finnigan
Work Website http://www.ict-action.com
Homepage http://www.richardsthings.co.uk
Hobby Webpage http://www.closeimage.co.uk


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      07-27-2006
It is possible to use MS Access, but with SQLEXPRESS being a free download
and offering basically the entire SQL Server 2005 engine including CLR-hosted
assemblies and Reporting Services, I find it difficult to imagine scenarios
where it would make sense any longer. If what you need is a very simple,
lightweight, zero-install database, look into SQLite.
Peter

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




"Richard Finnigan" wrote:

> Hi
>
> I'm having real difficulties getting a very simple access database file to
> show its data in visual studio data controls with various error messages
> occuring. I've changed the permissions on the app_data folder for NETWORK
> SERVICE.
>
> Inserting a record seems to be particularly difficult though reading from an
> Access database seems to be possible at the moment. I've done the obvious
> things like using the Advanced SQL Generation options and putting in a
> primary key field into the Access database table.
>
> I've been using Visual Web Developer though I will soon be switching to
> Visual Studio.
>
> Is it actually advisable or possible to use MS Access database files in this
> environment ?
>
> Any useful advice would be gratefully recieved.
> --
> Richard Finnigan
> Work Website http://www.ict-action.com
> Homepage http://www.richardsthings.co.uk
> Hobby Webpage http://www.closeimage.co.uk
>
>
>

 
Reply With Quote
 
 
 
 
Richard Finnigan
Guest
Posts: n/a
 
      07-27-2006

"Peter Bromberg [C# MVP]" <> wrote in message
news:949C4CBF-F3ED-44D3-A000-...
> It is possible to use MS Access, but with SQLEXPRESS being a free download
> and offering basically the entire SQL Server 2005 engine including
> CLR-hosted
> assemblies and Reporting Services, I find it difficult to imagine
> scenarios
> where it would make sense any longer. If what you need is a very simple,
> lightweight, zero-install database, look into SQLite.
> Peter
>

Thanks for the advice RF


 
Reply With Quote
 
Mike Lowery
Guest
Posts: n/a
 
      07-27-2006

"Richard Finnigan" <> wrote in message
news...
>
> "Peter Bromberg [C# MVP]" <> wrote in message
> news:949C4CBF-F3ED-44D3-A000-...
>> It is possible to use MS Access, but with SQLEXPRESS being a free download
>> and offering basically the entire SQL Server 2005 engine including CLR-hosted
>> assemblies and Reporting Services, I find it difficult to imagine scenarios
>> where it would make sense any longer. If what you need is a very simple,
>> lightweight, zero-install database, look into SQLite.
>> Peter
>>

> Thanks for the advice RF


If you're considering DB options, check out mySQL as well. Full blown DBMS
(unlike SQLite) and free:
http://www.mysql.com/


 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      07-29-2006
Mike,
With all respect, if somebody is using the .NET Platform and SQLExpress is
free, what rationale would they possibly have for MySql? Does it have
Reporting Services and FullText search? Can you write SQL CLR stored
procedures in it? Have you looked at some test scenarios as to relative query
performance with stored procedures?

Peter

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




"Mike Lowery" wrote:

>
> "Richard Finnigan" <> wrote in message
> news...
> >
> > "Peter Bromberg [C# MVP]" <> wrote in message
> > news:949C4CBF-F3ED-44D3-A000-...
> >> It is possible to use MS Access, but with SQLEXPRESS being a free download
> >> and offering basically the entire SQL Server 2005 engine including CLR-hosted
> >> assemblies and Reporting Services, I find it difficult to imagine scenarios
> >> where it would make sense any longer. If what you need is a very simple,
> >> lightweight, zero-install database, look into SQLite.
> >> Peter
> >>

> > Thanks for the advice RF

>
> If you're considering DB options, check out mySQL as well. Full blown DBMS
> (unlike SQLite) and free:
> http://www.mysql.com/
>
>
>

 
Reply With Quote
 
blaplante blaplante is offline
Junior Member
Join Date: Aug 2006
Posts: 1
 
      08-06-2006
Quote:
Originally Posted by Richard Finnigan
Hi

I'm having real difficulties getting a very simple access database file to
show its data in visual studio data controls with various error messages
occuring. I've changed the permissions on the app_data folder for NETWORK
SERVICE.

Inserting a record seems to be particularly difficult though reading from an
Access database seems to be possible at the moment. I've done the obvious
things like using the Advanced SQL Generation options and putting in a
primary key field into the Access database table.

I've been using Visual Web Developer though I will soon be switching to
Visual Studio.

Is it actually advisable or possible to use MS Access database files in this
environment ?

Any useful advice would be gratefully recieved.
--
Richard Finnigan
Work Website http://www.ict-action.com
Homepage http://www.richardsthings.co.uk
Hobby Webpage http://www.closeimage.co.uk
I experienced similar symptoms: Using MSAccess 2003 & ASP.Net 2005 w/ C#. After several hours of reading posts, verifying directory & file permissions, table primary keys, etc.,
I discovered that the application can update the database when run as a file based web from within Visual Studio (Web Developer), but not when it runs as a web-based application. That is, it runs when I open C:\inetpub\wwwroot\myweb , but it doesn't run when I open it as http://localhost/myweb .

Problem is RESOLVED for me. It turns out, I couldn't change the security previously because I wasn't seeing the REAL security tab.
See: http://www.4guysfromrolla.com/aspfaqs/ShowFAQ.asp?FAQID=107
Quote:
Originally Posted by Scott Mitchell
From 4GuysFromRolla.com Link above
WHAT IF THE SECURITY TAB DOESN'T APPEAR IN MY FILE/FOLDER PROPERTIES?

If you are using NTFS--and especially if you are using WindowsXP--then try the following steps:

(1) Bring up "Windows Explorer" or "My Computer" in a window.
(2) Click on the "Tools" menu in that window.
(3) Click on the "Folder Options" menu item.
(4) Click on the "View" tab.
(5) Find the checkbox labelled "Use simple file sharing (Recommended)"
(6) UNCHECK that checkbox!(7) Say OK. Close the dialog. Close the window.
( You might have to log off and back on again. I didn't, but others have reported they had to.
(9) Now go view the properties of a folder or file with Windows Explorer/My Computer and see if the Security tab isn't there!
 

Last edited by blaplante; 08-06-2006 at 04:58 PM..
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
Access problems trying to access my log files tshad ASP .Net 5 12-08-2004 10:34 PM
Re: Software Developer to transcribe Oracle database into Access database Fluker MCSD 0 07-09-2003 01:20 PM
Re: Software Developer to transcribe Oracle database into Access database Guy Cox MCSD 1 07-09-2003 08:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57