Data type conversion while uploading Help Required!!!!

  • Hi,

    i want to upload data in db. see what i did

    using BCP uploaded the file into temp table (varchar 8000)

    Now i have to upload whole Data into different tables depending upon condition, Here i am facing data type conversion problem... Is there any way to come out of this.

    Regards

    Raju

  • Hi Raju,

    A little more information is required here matey.

    What is the problem exactly and an example would be a great help to everyone else understanding.

    Have fun

    Steve

    We need men who can dream of things that never were.

  • Hi steve,

    You can see the link http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=159272&p=2

    This will give you the exact scenario...

    In breif i m trying to upload data from a string variable to table like

    @var = 'field1' + 'field2' + 'field3' +'filed4' .............

    I formatted like  @var = ('field1' , 'field2' , 'field3' , 'filed4'..........)

    Putting this into table... this all in character format .... but may be Datetime also.

    How to convert it dynamically.

    Thanks

     

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply