L
Lourenço Teodoro
I am trying to develop a program that would work with any database using
ADO.NET. I am having a hard time because of the differences in SQL syntax
between databases.
One example is when I try to specify the column name, some databases require
that I put the name between square brackets, others between quotes, etc. I
had a similar problem with data/time fields, but I could solve it by using
an algorithm with reflection and tags in the SQL sentences. I would really
appreciate if anyone could tell me if there is a standard syntax to specify
column names that all the databases should accept. At this point I concluded
that I will have to create settings in my program to enable the user to
enter with this format, but something automatic (as I found for date) would
be much better.
My deadline for this project is next week, so I would appreciate if anyone
could send me feedback as soon as possible.
Regards,
Lourenço.
ADO.NET. I am having a hard time because of the differences in SQL syntax
between databases.
One example is when I try to specify the column name, some databases require
that I put the name between square brackets, others between quotes, etc. I
had a similar problem with data/time fields, but I could solve it by using
an algorithm with reflection and tags in the SQL sentences. I would really
appreciate if anyone could tell me if there is a standard syntax to specify
column names that all the databases should accept. At this point I concluded
that I will have to create settings in my program to enable the user to
enter with this format, but something automatic (as I found for date) would
be much better.
My deadline for this project is next week, so I would appreciate if anyone
could send me feedback as soon as possible.
Regards,
Lourenço.