Access :: Reading Data From Access With A Linked Table (pointing To A Access Table On Another Location?

Sep 7, 2010

Here's a short explanation of my asp.net project.

1) the default page loads, it will read the Windows Login of the user opening the page.
2) I'll check if this login exists in a table stored on the webserver.

In this Access Database, there's a 2nd linked table, pointing to another access table on a network location. Now, I want to read data from this linked table. However, at this moment I receive an error:

"The Microsoft Jet database engine cannot open the file '\<ip><shared-folder>statistics.mdb'. It is already opened exclusively by another user, or you need permission to view its data".

Some extra info:

- The network folder has read and write permissions for everyone

- the user and group permissions on both access files are set to read/modify/administer for the Admin user (on the tables I want to read from)

- IIS authentication on the server is set to "Windows Authentication" (this is needed so I can read the Windows Login from the user). All other authentication modes are disables (like anonymous, ...)

- When the error occurs, no other program or process has access to the statistics.mdb (so, it can't be locked by someone else)

- the web.config files access connection string looks like:
<add name="AccessConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\<IP><shared-folder>statistics.mdb;User Id=admin; Password=;" />

Like I said before, in this statistics.mdb file, there are 2 tables. One normal table, and another linked table (pointing to a network location)

Searching for solutions, I discovered the following:

- if I don't use linked tables, everything works fine (however, I have to use this linked table)

- even if I connect directly to the table in the network I receive the error. So, I'm pretty sure I don't have sufficient rights to read from this table.

I read that not the Admin user is opening the file, but actually a user called ASP.NET. This user doesn't have the correct rights to do this. However, I'm not sure if this is true.

View 5 Replies


Similar Messages:

Access :: Copy Access Table Data To Sql Server Table Programmatically?

Sep 23, 2010

Dim ds As New AccessDataSource


ds.DataFile = "c:InputTest.mdb"
ds.DataSourceMode = SqlDataSourceMode.DataSet [code]....

View 5 Replies

Access :: Query In MS Access. Display Output Table In Visual Studio 2008?

Mar 25, 2010

Can a query output made in MS ACCESS be accessed as a database in Visual Studio 2008?

I have a Parent and Child Table in MS Access with a one-to-many relationship. I created a query in Access that would produce a result table and I want the contents of this Query to be displayed in a Data Grid in Visual Studio 2008.

View 11 Replies

Access :: Update Images Table In Microsoft Access DB Using File Uploader?

Jan 6, 2011

I have 4 file uploader in my form to upload 4 images in the DB for each article submitted. My issue when I want update/edit my article with some new pictures and I want delete or update the old pictures with the replacement with the new one.

How I can implement it? I am using ASP.NET based on VB.NOT .... NOT C#

View 1 Replies

Access :: Retrieve A Single Column From A Table In A Database(ms Access)

May 26, 2010

I want to retrieve a single column from a table in a database(ms access) and then the value retrieved has to be converted to a string!!

View 4 Replies

Web Forms :: How To Import Exsisting SQL Server Table To Access Table(new Table)

Dec 10, 2010

my main intention is that, the exsisting table of sql server database(.dbo) with 1000's of records, that should be import to a new access database table(.mdb).for example if we want to had a new table in db2, of exsisting table in db1 with some conditions by using "select * into New_Tabel from (select * from Exsisting_Table where <Condition>) as objectName". Here the new table is created and records inserted in one execution in db2. The same work should be done for access(sqlserver db --> Access db).Here the new access database table with given name (as string_sysdate) must be created dynamically by clicking a button (multiples time creating new table).Is there any query or c# code for sql server database to access database.

View 2 Replies

Access :: How To Clone An Access Table

Jul 22, 2010

im not sure if this question qualify for getting started topic however here is what im trying to do:ive an access database with a table (no data) i wish to duplicate the table lets say tabOrigin with a different name; as since the table is empty i just want to duplicate the structure; fields name, size, type etc

View 5 Replies

MVC :: How To Get Related Table Data / How To Access Groups Table Data From View

Mar 30, 2010

I have a strongly typed view for Contacts table In my index page , i am accessing the tables as --- "foreach (var item in Model)"

This table has an association with Groups Table

How can i access Groups table data from view.

intellisense gives me possibility to write like "item.Groups.GroupTitle"

But it returns null(object not initiated) How to solve this?

View 3 Replies

Access :: Append To Table 'a' From Table 'b' Where Lastupdate = Date() Returns No Records?

Nov 18, 2010

I have an Access 2010 DB that I have a table of RAW data in. In my scenero when table 'a' has been populated all the rows with the updatedate of Now() get moved to another table... the SQL is like this...

[Code]....

As you can see it is a very simple query but it does NOT return any rows. There are actually 404 rows with todays date in teh Append_Date column.

I am stumped as to why it does not return rows?

View 1 Replies

Access :: Copying The Values From One Table To Another Table Which Are In Different Database?

Nov 1, 2010

i am using this query but it is giving syntax error,

insert
into Logistics.DisInventory
values
select *
from Logistics_v1.DisInventory)

View 4 Replies

Access :: IIS_WPG Write/modify Access To The Folder Where MS-Access Database Is Located - Insert An Error Pop-up?

Feb 17, 2010

Is there anything missing in IIS 6.0 that prevents me from (Insert into table) using MS-Access?

Explain: The application works fine under Visual Studio 2008 IDE the insert into table works fine with no error, Also I tested with hosting provider and works fine with no problem. but now I have published the same exact app in a dedicated server windows 2003 with
IIS 6.0 .NET framework 2.0 with latest service pack I gave IIS_WPG write/modify access to the folder where MS-Access database is located and database but at the time of insert an error pop-up. I need to install in the Server or settings in the IIS to recognize my MS-Access db is it some office runtime that I am missing. (BTW I am using OLEDB connection string in my C# )

Using System.Data.OleDb;

I can retrieve data off of it with no problem but when I try to insert is when it fails I thought the problem was Access Rights but I do not think is the case.

View 4 Replies

Forms Data Controls :: Download Ms Access Table To An Excel File

Oct 12, 2010

Is there a way to give users the capability to download an on-line table produced via gridview to an excel file (other than by copy/paste)?

View 3 Replies

Forms Data Controls :: How To Access Html Table Id From Datalist Itemtemplate

Mar 17, 2010

I add a table or div inside to datalist itemtemplateı want to change dynamicly table or div id's value from codebehind databound event. ex : I want to add itemindex value to table or div id which is inside itemtemplate

View 7 Replies

Forms Data Controls :: All Row In MS Access Table Are Updating With Detailsview Edit?

Nov 22, 2010

I have used this before with no issues. Now I get to the page with the detailsview using parms I pass with the key to the row. When the page opens the row I want to update is displayed.

I am having 2 issues. One when I change any of the fields and hit Update (the Edit button),

all rows are updating not just the row displayed. The second problem is I have an update_date and an Updated_by field with code in code behind in the Onitemupdating event and they are not updating at all. (This bit of code works fine in another page I have to updated similar fields on an insert).

View 5 Replies

Data Access Layer - DAL DatasSet And Table Adapter Not In Namespace - Northwind Tutorial?

Mar 31, 2010

I've been attempting to walk through the "Creating a Data Access Layer" tutorial found [URL]I create the DB connection, create the typed dataset and table adapter, specify the sql, etc.When I add the code to the presentation layer (in this case a page called AllProducts.aspx) I am unable to find the NorthwindTableAdapters.ProductsTableAdapter class. I tried to import the NorthwindTableAdapters namespace, but it is not showing up. Looking in the solution explorer Class View confirms that there is a Northwind class, but not the namespace I'm looking for.

I've tried several online tutorials that all have essentially the same steps, and I'm getting the same results.Can anyone give me a push in the right direction?I'm getting error: Namespace or type specified in the Imports 'NorthwindTableAdapters' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member.I think I might need to add a reference OR they may be creating a separate class and importing it into their main project. If that's the case, the tutorials do not mention this.

SuppliersTest2.aspx.vb:
Imports NorthwindTableAdapters
Partial Class SuppliersTest2
Inherits System.Web.UI.Page

[code]...

View 7 Replies

Forms Data Controls :: Can Access The Datalist At Runtime To Create A Table Layout

Oct 7, 2010

How can I access the datalist at run time to create, a table layout but with the first cell having a rowspan of 2? Below is the HTML source code to demonstrate.

<table border="1">
<tr>
<td rowspan="2">1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
</tr>
</tr>
</table>

View 1 Replies

Forms Data Controls :: Updating A Currency Field Of An Access Table Through Detailsview, Cannot Input Decimals

Oct 23, 2010

I changed a text field to a template field assigning the selected text and the selected value is being assigned to another currency field also templated. I get aa error

[FormatException: Input string was not in a correct format.]

View 10 Replies

Forms Data Controls :: Read A Data Table And Write In Access DB?

Nov 8, 2010

I need to read a table from a dtgrid there is one code for example?

View 5 Replies

MVC :: How To Get Access To The Fields In Table B In The View

Feb 9, 2011

I do not know if this can be done but lets say have a model like the one below:

I am trying to do this:

<%= Html.RadioButtonFor(model => model.B.height)%> -----> Does not work. Height is not a property

But B is a collection. How do I get access to the fields in table B in the View?

***********************************************************

Table A

Qid

name

age

Table B

Wid

Qid

gender

height

View 14 Replies

SQL Server :: Access First Row And First Column Of Table

Jan 24, 2011

how to access the first row and first column of a sql table

View 6 Replies

Access :: Update Table Using Gridview?

Jul 17, 2010

i want to update row using gridview row updating , but it couldn't change anything in table . Here is my code:here Id is autonumber id my access DB.

protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
string Id = GridView1.DataKeys[e.RowIndex].Values[0].ToString();

[code]...

View 2 Replies

Web Forms :: Access The Row Index Of A Table ?

Feb 15, 2010

how can we access the row index of a table which is created dynamically.

View 2 Replies

ADO.NET :: Using Enterprise Manager Data Access Code Block And Have A Table In Sql Server 2005 With A Column Type Of 'bigint'?

Aug 4, 2010

Im using enterprise Manager data access code block and have a table in sql server 2005 with a column type of 'bigint'

when querying against this table and adding in a parameter, there isnt a long datatype available, so is Int32 an equivalent ?

[Code].....

View 1 Replies

SQL Server :: How To Upload New Records On Access Table

Nov 9, 2010

i have xyz.mdf file on live server every day i want to upload records on it for that i m downloading that file , make a changes on it and upload it . which is very time consuming and not a good practice is there any tool or any simple code i can write to do this for life time.

for sql i know there is a tool sqlpublishwizard which generate a query from selected table and that we can run directly on live server query analyzer and we can get the new records.

View 1 Replies

Access :: How To Display Duplicated Records Only From The Same Table

Mar 31, 2011

I am developing a web application and I am using access as a database. I would like to be displaying duplicated records only from a table. This table has three columns, column1, Column2, and Column3. Column1 and Column 2 have same duplicated values and column3 is unique. The details are as following

column1, Column2, Column3
Red park 4
Blue park 7
Red park 5
Yellow Cann 9
Yellow Cann 12

Now I want when I run the sql I get the following results;

Red park 5
Red park 4
Yellow Cann 9
Yellow Cann 12

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved