CREATE SECURITY POLICY Security_Policy
ADD FILTER PREDICATE RLS.fn_CanSeeSalary(EmployeeName)
ON dbo.Salary
WITH (STATE = ON);
当我执行上面的查询时,我收到以下错误:
Msg 343,Level 15,State 1,Line 37
未知对象类型'安全'用于CREATE,DROP或ALTER语句 Msg 102,Level 15,State 1,Line 38
' FILTER'附近的语法不正确。
答案 0 :(得分:0)
implicit val timeout: akka.util.Timeout = 3 seconds
collection.foreach { item =>
val future = (actor ? Request(msg = item)).mapTo[Response]
future.onComplete {
case Failure(ex) => // log ex
case Success(resp) => // use resp
}
Await.result(future, 3 seconds)
}