Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / April 2005

Tip: Looking for answers? Try searching our database.

primary keys having text data type

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Ponzelli - 06 Apr 2005 05:40 GMT
I've got some primary keys whose values look like numbers, such as 100434,
100435 etc., but they have a text data type instead of a number data type.
If I had built these tables myself, I would have defined them as Long
Integer data types, but I inherited the database from another developer.

I ran the Performance Analyzer, and it suggested converting the data types
of these primary keys to Long Integer.  However, there are existing queries
that use these fields, and a number of references to these fields in form
and report modules that punctuates these fields as text data.  So if I
change them to Long Integer like the Analyzer suggests, I'll have to spend
some time modifying the queries and the VBA code that refers to the fields.

My question is this: is it worth going through the effort to make the
changes?  How important is it to change the data type of these primary key
fields to Long Integer?

Thanks in advance,

Paul
John Vinson - 06 Apr 2005 05:59 GMT
>My question is this: is it worth going through the effort to make the
>changes?  How important is it to change the data type of these primary key
>fields to Long Integer?

I think any benefit would be minute. A Long is 4 bytes; it appears
that your text field is 8. This makes your indexes bigger, but Access
is pretty good about such things; I've used 24-byte alpha fields as
keys with no difficulty.

                 John W. Vinson[MVP]    
Paul Ponzelli - 06 Apr 2005 06:22 GMT
In that case I'll just keep them, rather than spend the time to make all the
adjustments.

Thanks, John.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.