Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)

  • RE: Binary Files Import and Export

    You should read the whole thread first because it has been answered years ago.

  • RE: sp_truncate

    I didn't use embedded sp_fkeys procedure there.

    I did everything using the pure joins. 🙂

    Heck... I wrote it - one year ago. lol

  • RE: sp_truncate

    Thanks guys. Although it has a low rating here 😀 it really did save lots of time for me.

    We had a bunch of tables which needed this kind of intervention...

  • RE: Binary Files Import and Export

    Robert (8/28/2008)


    I'm also having trouble implementing this without corruption of the file after it's undergone a round trip. I am importing a text file using OPENROWSET and as far...

  • RE: Binary Files Import and Export

    Robert (8/29/2008)


    Errrrrr this line is too long. You could've shown me at least the code

    of the create table I would've believed you.

    I've just tried even to dump the mp3...

  • RE: Binary Files Import and Export

    Errrrrr this line is too long. You could've shown me at least the code

    of the create table I would've believed you.

    I've just tried even to dump the mp3 and...

  • RE: Binary Files Import and Export

    Here is what I did.

    create table data(data varchar(max));

    INSERT INTO data(data)

    SELECT * FROM

    OPENROWSET(BULK 'D:\docs\DB\oracle.txt', SINGLE_BLOB) as f ;

    declare @cmd varchar(512);

    SET @cmd...

  • RE: Binary Files Import and Export

    josephstran (8/28/2008)


    How to I extract binary data greater than 8000 Bytes (varchar(max))? Thank you for any help you can provide.

    varchar(max) != varbinary(max)

    The varbinary(max) can store upto 2GB data.

    You can...

  • RE: Binary Files Import and Export

    Robert (8/28/2008)


    I'm also having trouble implementing this without corruption of the file after it's undergone a round trip. I am importing a text file using OPENROWSET and as far...

  • RE: Binary Files Import and Export

    Show me the contents of your bindata table

    select top 1 * from bindata.

    Well what I've just done for testing purposes:

    CREATE TABLE data(data varbinary(max));

    INSERT INTO data(data)

    SELECT...

  • RE: Binary Files Import and Export

    Comments are always welcome especially if they're the way to improve. 🙂

  • RE: Binary Files Import and Export

    Thanks alot it works perfect too.

    Well as I wrote there were many ways to improve. 🙂

  • RE: Binary Files Import and Export

    What is your exact command for the retrieving of the image file and how does your data table look like?

    Show me please your sp_help 'your_table' output.

    thanx

Viewing 13 posts - 1 through 13 (of 13 total)