CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    396

    Database Help (Beginner)

    I'm just learning how to use SQL. I'm using a DAODatabase which i create. Everything works great, but I have some question on Table limits. I create tables, and some of them require large text fields ( roughly 4k) When i create them, i get an error the field is too large (seems good enough). I've searched the documentation but can't seem to find limits on the fields, what is the limit? I've failed with > 512 and sometimes with > 255 depending on how many text fields I have. Thanks!


  2. #2
    Join Date
    Apr 1999
    Posts
    306

    Re: Database Help (Beginner)

    As you work with CDaoDatabase I suppose that you create MS Access files. The field of type TEXT in the Access cannot go over 255 bytes. So for your problem go and see the Access reference and field types.


  3. #3
    Join Date
    Apr 1999
    Posts
    396

    Re: Database Help (Beginner)

    Thanks for the response. Now i've switched to CDatabase (since i don't want that 255 character limit). There is no Create member, so how can i create a brand new database? Thanks!


  4. #4
    Join Date
    Apr 1999
    Location
    Beaverton, OR
    Posts
    241

    Re: Database Help (Beginner)

    You can use Access Databases, with CDaoDatabase, if you set the field type to Memo. I think Memo fields can store up to 64k of text.


  5. #5
    Join Date
    Apr 1999
    Posts
    306

    Re: Database Help (Beginner)

    Use CreateDatabase() function of the CDatabase class. As far as I remember there was such a thing.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured