> mycomm.CommandText = "INSERT INTO Identikit" & _
>"(Nome, Cognome, PosizioneSoft, Password, Account)" & _
>"VALUES(@Nome, @Cognome, @Position, @Password, @username )"
>
>mycomm.Parameters.AddWithValue("@Nome", identis.Nome)
>mycomm.Parameters.AddWithValue("@Cognome", identis.Cognome)
>mycomm.Parameters.AddWithValue("@Position", identis.Position)
>mycomm.Parameters.AddWithValue("@Password", identis.Password)
>mycomm.Parameters.AddWithValue("@username", identis.username)
>
>
> myconn.Open()
> mycomm.ExecuteNonQuery()
> myconn.Close()
>
>l'errore è lo stesso
uhm.. prova ad andare in debug e a vedere cosa arriva ai campi che stai per inserire.
Inoltre, circonda il campo Password con parentesi quadre, è una parola riservata. Non dà problemi ma rende l'idea:
mycomm.CommandText = "INSERT INTO Identikit" & _
"(Nome, Cognome, PosizioneSoft, [Password], Account) " & _
"VALUES(@Nome, @Cognome, @Position, @Password, @username )"
--
Alessandro Alpi | SQL Server MVP
MCP|MCITP|MCTS|MCT
http://www.alessandroalpi.net
http://blogs.dotnethell.it/suxstellino
http://mvp.support.microsoft.com/profile/Alessandro.Alpi