Configure Data Source generating select statements with []
Posted: Mon 25 Jul 2011 14:14
I am using Visual Studio 2010 Express and dotConnect, which I downloaded last week. I am connecting to a mySQL 5.5.8 database.
I can connect to the data source fine and can see the tables and their columns.
However, when I 'Configure the Select Statement' using 'Specify columns from a table or view', the code is generated with square brackets around the column names:
"
ProviderName=""
SelectCommand="SELECT [_ID] AS column1, [ORDER_REF], [STATUS], [ACCOUNT], [DATE_INPUT], [DATE_AMEND], [ORDER_VALUE], [INVOICE_VALUE], [CUST_REF], [DATE_INVOICED], [DATE_DELIV], [DATE_ACKNOW] FROM [cel_soh]">
I have to manually remove the brackets before things will work. This in turn converts it into a custom SQL statement which means that editing it is much more difficult.
Please can someone advise?
Many thanks!
I can connect to the data source fine and can see the tables and their columns.
However, when I 'Configure the Select Statement' using 'Specify columns from a table or view', the code is generated with square brackets around the column names:
"
ProviderName=""
SelectCommand="SELECT [_ID] AS column1, [ORDER_REF], [STATUS], [ACCOUNT], [DATE_INPUT], [DATE_AMEND], [ORDER_VALUE], [INVOICE_VALUE], [CUST_REF], [DATE_INVOICED], [DATE_DELIV], [DATE_ACKNOW] FROM [cel_soh]">
I have to manually remove the brackets before things will work. This in turn converts it into a custom SQL statement which means that editing it is much more difficult.
Please can someone advise?
Many thanks!