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.DeriveParameters 失败,因为 SqlCommand.CommandText 属性值是无效的多部分名称 "/port:4544 /path:"C:\sitepath" /vpath:"/sitepath"",引号使用不正确。
我该如何解决这个错误。