Results 1 to 2 of 2
  1. #1
    Join Date
    May 2014
    Posts
    1

    Unanswered: Sybase T-SQL need to Export a BLOB to c:\

    I am trying to save a pdf blob stored in the database to the local c:\ drive. I am getting an error.

    " could not execture statement. syntax error near 'into'.

    I am using sybase and isql.

    select document_name from document where doc_id=375137109
    into outfile 'c:\\test.pdf'
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    LINES TERMINATED BY '\n';

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Sybase doesn't process MySQL extensions to the SQL language. That SQL statement won't even create a usable PDF file if you used it in MySQL.

    Without more understanding of your client environment (where you are running isql), I can't offer any better suggestions.

    -PatP
    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

Tags for this Thread

Posting Permissions

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