Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating a table in access database using OdbcConnection class as I am using DSN but I was unable to create table. An error is generated "Syntax error in field initilizer." I am using c# 3.5.

Query which I had written for creating table is

create table [tblEmployee] ([ID] long not null , [EmployeeSalary] decimal null)

I think problem is with decimal datatype in Odbc driver but when I am using OleDbConnection then no problem arises.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900