Results 1 to 2 of 2

Thread: SQL Server Query

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Location
    Gloucester, UK
    Posts
    78

    Post

    I want to use an UPDATE SQL query statement to update the contents of a memo field. So far I have tried using a statement similar to :-

    UPDATE <table> SET memofield = memofield + <new data>

    This statement does not appear to work with SQL Server and memo (text by SQL Server definition) fields.

    Is there another way I can do this without opening a recordset to fetch back the current data?

    Appreciate any help on this.

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    Haven't used this so you get what you pay for.

    There is a SQL server DML command called "Updatetext", using it in VB looks to be problematic, though. You need to get a pointer to the field (you have to use the function TEXTPTR to get it, returns a varbinary of 16), you'd need to have the insert_offset value (2nd parm) set to the length of the field, and finally the third parm (delete_length) set to 0.

    So, to answer your question, yes there is a way. Problem is, it may not be feasible.


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