Unix Technical Forum

Access ODBC "Cast" Error

This is a discussion on Access ODBC "Cast" Error within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> I am repeating this question here from the MSDE topic I have found a problem when linking a SQL ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:45 PM
=?Utf-8?B?TW9udGU=?=
 
Posts: n/a
Default Access ODBC "Cast" Error

I am repeating this question here from the MSDE topic

I have found a problem when linking a SQL Server 2000 table that contains an
auto incrementing integer into Access 2002 via ODBC. Access identifies this
field correctly as an "autonumber" field. However, when I add a record to the
table, I get an ODBC error that mentions a "Cast" error. In other words, the
ODBC driver is translating the field from SQL server (via Cast type
function?) but Access thinks that the number can exceed the limit of an
autonumber and we get the error. The only work around I have found so far is
to link access to a table with the same name and ODBC connection, but where
the SQL Server field is just an integer. Access then translates the field as
a long integer. Then I replace the SQL table with the one that has the
incrementing integer field, but don't refresh the link to Access. Records can
now be added and edited in Access without a problem. Anyone seen this bug?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:45 PM
Mary Chipman [MSFT]
 
Posts: n/a
Default Re: Access ODBC "Cast" Error

Please do not post the same question in multiple newsgroups. Asked and
answered in msde.

--Mary

On Wed, 25 May 2005 11:35:33 -0700, "Monte"
<Monte@discussions.microsoft.com> wrote:

>I am repeating this question here from the MSDE topic
>
>I have found a problem when linking a SQL Server 2000 table that contains an
>auto incrementing integer into Access 2002 via ODBC. Access identifies this
>field correctly as an "autonumber" field. However, when I add a record to the
>table, I get an ODBC error that mentions a "Cast" error. In other words, the
>ODBC driver is translating the field from SQL server (via Cast type
>function?) but Access thinks that the number can exceed the limit of an
>autonumber and we get the error. The only work around I have found so far is
>to link access to a table with the same name and ODBC connection, but where
>the SQL Server field is just an integer. Access then translates the field as
>a long integer. Then I replace the SQL table with the one that has the
>incrementing integer field, but don't refresh the link to Access. Records can
>now be added and edited in Access without a problem. Anyone seen this bug?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com