?
Solved

ANSI PADDING

Posted on 1998-01-09
2
Medium Priority
?
929 Views
Last Modified: 2008-02-01
Setup: SQL Server 6.5. Client- MS Access 2.0 ODBC driver version 1.02.3231 (comes with Access). The problem I have is: I have a SQL table vith ,say char(10) column. When I attach this table in Access, text entered in character field  is padded with spaces (eg. instead of 'aaa' i would have 'aaa       ' so in order to insert or add something to the end I have to remove spaces and then type. I belive it has something to do with ANSI padding setting in SQL server, so how do i configure it?
0
Comment
Question by:spiridonov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 400 total points
ID: 1089939
Your column on the SQL server needs to be defined as VarChar(10).  This should prevent it from being padded.  
0
 
LVL 9

Expert Comment

by:cymbolic
ID: 1089940
Also, MS has been slipping in fixes on every release of Access and the ODBC drivers.  If you can, you are well off going to the latest version of MS Access (Access 97 or 8.0) and installing the 3.0 version of the ODBC driver manager.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question