Well, the question does not seem to be specifically about SQL Server. It seems to be about import and export layouts. I will answer and then we will see the tags appropriate to pose the question.
A layout is a well-synthesized data file that has things like this:
GAJ07123456789060720301149915072000583922180003801 00000000003427759000000547 000001AA 06
GAJ07256704671015072030114991507200058876543210380 00000000006759542000000547 000002AA 06
GAJ07256704671015072030114991507200058392218000380 00000000006463264000000547 000003AA 06
GAJ07256704671015072030111234507200058392218000380 00000000004181042000000547 000004AA 06
GAJ07256712234315072030114991507200054567218000380 00000000005645190000000547 000005AA 06
GAJ07256704671015072030114991507200058392278900380 00000000007419465000000547 000006AA 06
I mean, humanly it’s not easy to read it, but it can be read with the help of a layout document, which is what you have at hand. Note that all lines have the same length.
This header here helps to read the bottom lines:
Nome do campo | Tamanho | Posição | Tipo
Indicating to you the name of the field in question, how many characters it has, where the line starts and where it ends.
Taking as an example:
Histórico (Posição): 35 | 104
Considering a line like these I’ve put up for example, you’ll read the substring from position (column) 35 to position (column) 104 of each row.
Try taking an exported file and opening it in Notepad or any text editor that identifies the cursor row and column.
This does not seem to be SQL or something from SQL Server, this to be a fixed size file. Pass more information to be sure and be able to answer.
– Maniero
So bigown. I only received a txt with this information, which contains the field name, size, position and type ( numeric, alpha, etc ). This txt was exported from sql server.
– user24136
And what do you need to do with it? What to know?
– Maniero
I need to know what this position means, as it was exported from an sql server base and will be imported to another sql server base that belongs to another system. But the layout of this other system contains this information that I’m unable to understand about the position.
– user24136
If I’m not mistaken, I think it’s the position of the line, but I’m not sure if that’s right.
– user24136
Is this a collect txt, billet or something? who like this are usually banks, e.g.: character 0 through 6 is the information about the agency, 7 through 14 on the account and so will.
– rray
It is actually from a table of entries of an accounting program. That position would not be the position within the database?
– user24136
No, I believe it would be position of characters, each line of the file would be something like line 1
20938429836721638217478563875349577
line 233938429836721638217478563875349577
. In theory all lines would have the same length.– rray