Dim id as integer = 1
Dim command as sqlcommand
Dim reader as idatareader
command = db.GetSqlStringCommand("select id, image, caption from profile where id = @id and image IS NOT NULL Order By NEWID()")
db.AddInParameter(command, "@id", DbType.Int32, id)
reader = db.ExecuteReader(Command)
コードは私が前に見たことがないエラーを投げています...
SqlCommand.CommandTextプロパティ値が無効なマルチパート名"/port:4544 / path:" C:\ sitepath "/ vpath:" / sitepath ""であり、引用符の使用法が正しくないため、SqlCommand.DeriveParametersが失敗しました。
そのエラーを修正するにはどうすればよいですか。