Forum Replies Created

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

  • RE: smart headers

    Lowell (21/09/2007)


    you gotta try what i posted: you end up with a 15 character string with the preceeding zeros you requested.

    SELECT RIGHT('000000000000000' + CONVERT(VARCHAR,1),15)

    SELECT RIGHT('000000000000000' + CONVERT(VARCHAR,86456),15)

    SELECT...

  • RE: smart headers

    Lowell,

    I thing my question was not so clear, as i say before the 000000000086456 parts is always 15 character, that mean when i get a higher row number for example 765486456 then I have...

  • RE: smart headers

    Dear Jeff,

    I have to calculated, 53910072007 parts is date and time (hmiddmmyyyy) and 000000000086456 parts is total row. With Lowell scripts and after a little changing I can make the following...

  • RE: smart headers

    Lowell,

    Thank you very much.. It works.. You don't have any idea how long I was busy with this script..

  • RE: smart headers

    Hi,

    It looks like my question is too difficult or not so clear, so I will like repeat my question.

    I want to export data from...

  • RE: smart headers

    Vladan,

    you are right about the export and headers things. well what i want to have is:

    The table i have look like this:

    Column1         Column2

    1                   Hi

  • RE: BULK INSERT unix file

    Well.. it working.. I made manually a format file.. as fallowing:

    7.0

    1

    1  SQLCHAR 0  100  ""  1 column name  ... etc,  and then i used bcp utility to fill the table in the...

  • RE: BULK INSERT unix file

    here are the hex editor view too, i used xvi32 hex editor.

    http://www.mediafire.com/?04y4uyj9tne

    thx again..

    Cees

  • RE: BULK INSERT unix file

    Here you are.. you can download the file from this link..

    http://www.mediafire.com/?efcdmj9n4x1

    thx..

    Cees

  • RE: BULK INSERT unix file

    Dear Noeld,

    I get zipped .dat file from the FTP. I have first unzipping the file op the server and then use it in the DTS.

    Now as I said before...

  • RE: BULK INSERT unix file

    I tread to made a file format by using the fallowing.. Command:

     

    bcp c:\or\test.dat format nul –T –n –f c:\ds\test.fmt

  • RE: BULK INSERT unix file

    Dear Noeld,

    Yes, I did. But I get the same result '(0 row(s) affected)'

  • RE: BULK INSERT unix file

    Dear Sergiy,

    it look like it work.. i mean i don't get any error anymore but i get "(0 row(s) affected)".

    see my change:

    BULK INSERT

    test.dbo.tbunix

    FROM 'C:\test\unix.dat'

    WITH

    (

    CODEPAGE =...

  • RE: BULK INSERT unix file

    David,

    Iam not sure what je mean but I get by each ' ' 07 as value.

  • RE: BULK INSERT unix file

    Dear David,

    I used two Hex editor tools: (xvi32 and HxDBetafi) both telling my that '' is the actual column delimiter's. do you recommending any another tools?

     Thx..

     

     

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