PHISSUG

Home of Filipino Sql Server Enthusiasts
Welcome to PHISSUG Sign in | Join | Help
in Search

Copying Image Data Types

Last post 07-11-2008, 8:29 PM by Arthur Jr. 5 replies.
Sort Posts: Previous Next
  •  07-08-2008, 8:12 AM 2857

    Copying Image Data Types

    Hello,

    I have a table that contains an Image datatype column.  I am soliciting for implementations on how to transfer the data on this column to another table that has the same schema.

    Suppose "table1" is the name of the original table with Image datatype and "table2" is the table of the schema as "table1".

    In my current implementation, what I did is something like (pseudocode)

    1. SELECT * FROM table1
    2. Saved the result in a strongly typed dataset with datacolumn for the image column as System.Byte. I tried the System.Type.GetType("SqlDbType.Image") but it didn't work.
    3. Created an SP that will write this to "table2" but it didn't work as expected.
    Suggestions?

     

  •  07-08-2008, 7:22 PM 2858 in reply to 2857

    Re: Copying Image Data Types

    have you tried the import/export wizard?
  •  07-09-2008, 10:53 PM 2859 in reply to 2857

    Re: Copying Image Data Types

    is this a one time solution or something more recurring process?
  •  07-10-2008, 4:52 PM 2860 in reply to 2859

    Re: Copying Image Data Types

    I'm doing this for a tool that I am making. :)

    I can say that this is recurring as far as the tool is invoked to work. 

  •  07-10-2008, 7:55 PM 2861 in reply to 2860

    Re: Copying Image Data Types

    it could be done via SSIS and run it as a scheduled job if it is recurring and if 2 sql servers have direct links with one another. :)
  •  07-11-2008, 8:29 PM 2862 in reply to 2861

    Re: Copying Image Data Types

    use import/export wizard. there is an option there to save the package. Then integrated the saved package in your tool.
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems