SQL connection string for microsoft access 2010 .accdb

后端 未结 4 1684
-上瘾入骨i
-上瘾入骨i 2020-12-03 15:46

I am doing a simple login form using winforms and access 2010 database (.accdb) in C#.

I have the following code and it seems that the connection string is wrong. I

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 16:30

    Your SQL statement should be,

    SELECT * from HAHA
    

    OR

     SELECT [Password] From HAHA
    

    EDIT:

    You should change the ConnectionString.

提交回复
热议问题