|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
HI all, we have a table that has it's primary key data type Bigint. Is
there any way with Access to view this table? I find it hard to believe that two tools from MS don't play nice with each other, may be I should. SQL Server 2005 Access 2003 TIA |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
I have seen this problem and it was driver dependent. If I recall correctly
the ODBC driver was problematic, but using OLEDB was fine. You can try to change drivers if you have different drivers available. Another work around would be to create a view in SQL Server to cast the problematic BIGINT column to a different data type (if numbers are smaller you can try INT, otherwise VARCHAR). Then use the view from Access. HTH, Plamen Ratchev http://www.SQLStudio.com |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Mar 17, 10:32am, "Plamen Ratchev" <Pla...@SQLStudio.com> wrote:
> I have seen this problem and it was driver dependent. If I recall correctly > the ODBC driver was problematic, but using OLEDB was fine. You can try to > change drivers if you have different drivers available. > > Another work around would be to create a view in SQL Server to cast the > problematic BIGINT column to a different data type (if numbers are smaller > you can try INT, otherwise VARCHAR). Then use the view from Access. > > HTH, > > Plamen Ratchevhttp://www.SQLStudio.com Thanks Plamen, kind of feeling dense right now, how do you add a view in Access? I created a view in SQL Server but can't find the view in Access. Any quick hints on how to do that? Thanks! |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Views are treated the same as tables. When you link tables in Access and you
point to SQL Server, it should pull both the tables and views in one list (I believe it is labeled tables, but the views should be in that list too). HTH, Plamen Ratchev http://www.SQLStudio.com |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Aye, I was looking at the wrong server. Got it now. However, can we
edit the data in a view from Access? Especially when casting the primary key to a varchar? This is encouraging so far. Great for running Access reports if they need it. Thanks for your ! |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
I am not sure how this will work with editing data. Access will need the
primary key and it may or may not like the casted column. Try posting in the MS Access related forums for more . HTH, Plamen Ratchev http://www.SQLStudio.com |
|
![]() |
| Outils de la discussion | |
|
|