Windows XP
VB 2005 Pro
SQL Server 2005 and SQL server management studio 2005 express
I have created a series of programs using a simple Access database. these programs used OLEDB and SQL, all worked fine.
Now I am trying to re-write the programs using SQL server.
my connections string:
"Data Source=computername\SQLEXPRESS;Initial Catalog=SQLfeedback;Integrated Security=True;"
I can read all and locate records fine. However when I try to change a record I get a problem.
Trace info from debug write and output window.
SQL string:
SQL = UPDATE (feedback) SET anemail = '
[email protected]' WHERE (id = 1)
Errors:
A first chance exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Incorrect syntax near '('.
The SQL string is similar (only table and item names are different) to the OLEDB version which works.
I changed all the OLEDB class methods to SqlClient class methods also checked my connection string to a SQL server wizard version of the program that worked and updated and the string was the same.
Any ideas where to look next?