Re: Create Table problem



Darren wrote:
I am trying to create a table using a query , but Access always wants
to make it so my text fields are padded.

I have tried using the WITH COMP keywords, this will turn on unicode
compression, but doesn't change how the field is padded.
OK, I've just discovered that if I use the CHAR datatype, as in:
sql = "CREATE TABLE Test (textcol char(15))"

The field seems to be fixed-length (just like sql server)

However, if I use Text(15) or VARCHAR(15), the field is variable length,
just as you want it.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • RE: OWA problems
    ... I therefore suggest that you disable the compression. ... Exchange OWA compression settings used to reduce network bandwidth. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Need help on reading files in pocket pc in lesser time
    ... But the functions that take file names as arguments require UNICODE ... >> code works at all with the ANSI string you've used for the file name. ... >> Moving the allocations out of the loops should help. ... remove the underscores from my email address (and please indicate which newsgroup and message). ...
    (microsoft.public.pocketpc.developer)
  • Re: Text appearing corrupted.
    ... Windows CE is _heavily_ biased towards UNICODE, ... As a start, I suggest using google ... in this newsgroup; ... Because you're using CString, ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Times New Roman Unicode
    ... Word international features newsgroup ... 'full Unicode support' would be to some extent ... Is there a Times New Roman font with full unicode support? ...
    (microsoft.public.word.docmanagement)
  • Re: porting programs from VC++ to eVC++
    ... and you can use the changed code in both projects (VC and eVC). ... UNICODE _must_ be defined when building for Windows CE. ... most strings are UNICODE and most Win32 functions that take strings ... in this newsgroup and got 277 ...
    (microsoft.public.pocketpc.developer)