DB Import string

Forum Home Forums Understanding the Software DB Import string

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16826
    oley
    Participant

    Hi,

    I use DrvDbImport 6.1.0.1 to communicate with PostgrSQL DB.
    It works, but I become only first 4 characters for string columns.
    I have set the data type of the channel to ASCI and Unicode string and format to String.

    Best regards

    #16827
    manjey73
    Participant

    Specify the required length for the channel, and set the next channel number based on the length of the previous one.
    For example, Channel 200 is a String type, length 2, the next channel should be 202, since you set the length to 2 and occupied channels 200 and 201.

    #16828
    JurasskPark
    Participant
    #16829
    oley
    Participant

    Thank you but I do not really understand that.
    If I will read multiple strings from DB, should they have fixed length?
    Is this length in characters?
    If I have only one string from another table, do I have to create another “dummy” channel to set the length of the previous one?


    @JurasskPark
    I will take a look at this module.

    #16835
    JurasskPark
    Participant

    If I will read multiple strings from DB, should they have fixed length?
    Is this length in characters?

    You must calculate in advance what the maximum length of characters in a string will be. For this maximum length, and book the number of tags / 4 characters.

    #16838
    Mikhail
    Moderator

    Hi,
    Currently long strings are not supported by the DrvDbImport drvier. I hope, we will implement it in the future.
    If the strings have fixed values, they can be presented as numbers, and enumerations can be used.
    Alternatively, use the community driver noticed above.

    #16852
    oley
    Participant

    All right, thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.