[Solved] Insert value locating particular column in Microsoft SQL server
[ad_1] Always use parameterized query anyway correct your current attempt as below “INSERT INTO tbl_user (UserID, UserName, UserName , UserType) VALUES(‘” + myUser.ID + “‘,'” + myUser.Name + “‘, ‘” + myUser.Password + “‘, ‘” + myUser.Type + “‘)”; RECOMMENDED Way is to Go with parameterized query always to prevent SQL Injection Attacks SqlCommand cmd … Read more