Hi Erel,
yes I used con.createsqltable to insert the ascii file through a table in a form into a new table in the sqlite database. That way is essential for me as the ascii file can change in number or order of columns and the coding can remain the same.
Afterwards I used
strSQL = "CREATE UNIQUE INDEX IDX_kennr ON medien('kennummer')"
cmd.CommandText = strSQL
cmd.ExecuteNonQuery
to create an index in the kennummer column in the sqlite table medien. I understand from the sqlite documentation that this unique index forces if for added datasets this column is filled with the NULL expression the next free index value is inserted in thís dataset. But in my program the column remains empty.
Using your sql-Testing program, where I changed the structure view from table to index, I can see the index, but selecting all data from the table I see the empty column in the dataset. In my program the dataset is not shown, I think because of the missing index.
I have an idea: when I use this way all columns get the type string. Does the index functionality I described only work with integer? But then I think I can't use the con.createsqltable command?
Thanks for your help.