PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > Bigint from a SQL Server table and viewing with Access
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Bigint from a SQL Server table and viewing with Access

Réponse
 
LinkBack Outils de la discussion
Vieux 17/03/2008, 16h41   #1
scoots987
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Bigint from a SQL Server table and viewing with Access

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
  Réponse avec citation
Vieux 17/03/2008, 17h32   #2
Plamen Ratchev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bigint from a SQL Server table and viewing with Access

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

  Réponse avec citation
Vieux 17/03/2008, 21h28   #3
scoots987
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bigint from a SQL Server table and viewing with Access

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!
  Réponse avec citation
Vieux 17/03/2008, 22h07   #4
Plamen Ratchev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bigint from a SQL Server table and viewing with Access

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

  Réponse avec citation
Vieux 17/03/2008, 23h02   #5
scoots987
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bigint from a SQL Server table and viewing with Access

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 !
  Réponse avec citation
Vieux 18/03/2008, 00h13   #6
Plamen Ratchev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bigint from a SQL Server table and viewing with Access

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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h19.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10535 seconds with 14 queries