dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

SQL 2005 Linked Table in MS Access returns #Deleted - sqlserver-odbc

This is a discussion on SQL 2005 Linked Table in MS Access returns #Deleted - sqlserver-odbc ; Using Microsoft Access (2003 and 2007) to link to tables on a SQL 2005 SP2 server is working most of the time. On some particular tables (MS Dynamics AX database) the results of the linked table for all rows and ...


Home > Database Forum > Microsoft SQL Server > sqlserver-odbc > SQL 2005 Linked Table in MS Access returns #Deleted

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1  
Old 08-29-2007, 03:54 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
usenet is on a distinguished road
Default SQL 2005 Linked Table in MS Access returns #Deleted

Using Microsoft Access (2003 and 2007) to link to tables on a SQL 2005 SP2
server is working most of the time. On some particular tables (MS Dynamics
AX database) the results of the linked table for all rows and columns is
#Deleted. It has the correct record count and importing the data or using a
pass-through SQL query will show the data correctly, it's only the linked
table that has this issue. We've tried both "SQL Server" and "SQL Native
Client" ODBC driver connections with the same results.

I've seen reference to this in KB articles that mention an upgrade to the
MDAC components but we're on the latest version already. Also seen reference
to Unique indexes with null values - not the case here. The table in
question is a simple address table with 52 columns, three indexes (one
unique), and works perfectly fine in the Dynamics AX environment or through
SQL Server Management Studio. It only seems to be Access that has this issue.

Help is appreciated.

Nate

Reply With Quote
  #2  
Old 09-01-2007, 02:04 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
usenet is on a distinguished road
Default Re: SQL 2005 Linked Table in MS Access returns #Deleted



check out this

http://www.utteraccess.com/forums/sh...mber=1441905&p
age=&view=&sb=5&o=&vc=1

*** Sent via Developersdex http://www.developersdex.com ***
Reply With Quote
  #3  
Old 09-04-2007, 05:24 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
usenet is on a distinguished road
Default Re: SQL 2005 Linked Table in MS Access returns #Deleted

Thank you for this link. The key was this repsonse:
----------------------------
Do these tables have a primary key of data type BIGINT? I was receiving the
same #error on certain tables and it turns out Access can't handle tables
with a primary key column of BIGINT. These are some possible work arounds for
that scenario:

1) Change the datatype of the primary key to INT.
OR
2) Create a view of the table using "CAST as INT" for the BIGINT field.
----------------------
While I couldn't do a cast as INT because INT wasn't large enough to store
the value, I was able to CAST as FLOAT and make it work. I don't plan to
update the data in that primary field ever, so I'm not too nervous about this
change. Is there any reason this could cause issues if the BIGINT value is
converted to a FLOAT?

Thanks again,

Nate


"S Scoltock" wrote:

>
>
> check out this
>
> http://www.utteraccess.com/forums/sh...mber=1441905&p
> age=&view=&sb=5&o=&vc=1
>
> *** Sent via Developersdex http://www.developersdex.com ***
>

Reply With Quote
Reply

Thread Tools
Display Modes


LinkBacks (?)

LinkBack to this Thread: http://dbaspot.com/forums/sqlserver-odbc/246794-sql-2005-linked-table-ms-access-returns-deleted.html

Posted By For Type Date
UtterAccess Discussion Forums - Microsoft Access Database and Anti-Virus pros! This thread Refback 03-26-2009 02:27 PM
#Deleted | Access 2007 « Clive Ciappara | Windows | iPhone | .Net This thread Pingback 03-20-2009 08:54 AM


All times are GMT -4. The time now is 08:31 AM.