Dim cmd As New sqlConnection("Server=(local);UID=sa;PWD=123456;DATABASE=ipcmd") ' Try Dim recommand As New sqlCommand("insertt",cmd) recommand.CommandType = Data.CommandType.StoredProcedure recommand.Parameters.Add("@ip",Data.sqlDbType.Char) recommand.Parameters.Add("@cmd",Data.sqlDbType.NChar) recommand.Parameters.Add("@returntext",Data.sqlDbType.Text) recommand.Parameters("@ip").Value = "192.168.0.1" recommand.Parameters("@cmd").Value = "pn" recommand.Parameters("@returntext").Value = "doc" cmd.Open() recommand.ExecuteNonQuery() cmd.Close()