Tuesday, March 21, 2017

[SQL Server]Implicit conversion from data type nvarchar(max) to varbinary(max) is not allowed. Use the CONVERT function to run this query

That is my code DB::statement(DB::raw('EXECUTE dbo.SP_WS_CUST_MAIN ?,?,?,?,?,?,?'), [$USER_ID, $CUST_PYMT_MTHD, $CUST_CMMNT, $CUST_NAME, $ANDROID_LOCATION, DB::raw("CONVERT(VARBINARY(MAX), $value)") , $WEEKDAY]); How can Convert nvarchar(max) to varbinary(max) ?



via user3902364

Advertisement