You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-analytics/java/java-first-sample.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,7 +220,7 @@ Grant 'Read and Execute' permissions to **SQLRUserGroup** and the **All applicat
220
220
+ Click **Object Types** and make sure *Built-in security principles* and *Groups* are selected.
221
221
+ Click **Locations** to select the local computer name at the top of the list.
222
222
5. Enter **SQLRUserGroup**, check the name, and then click OK to add the group.
223
-
6. Enter **all application packages**, check the name, and then click OK to add. If the name doesn't resolve, revisit the Locations step. The SID is local to your machine.
223
+
6. Enter **ALL APPLCIATION PACKAGES**, check the name, and then click OK to add. If the name doesn't resolve, revisit the Locations step. The SID is local to your machine.
224
224
225
225
Make sure both security identities have 'Read and Execute' permissions on the folder and "pkg" subfolder.
226
226
@@ -262,7 +262,14 @@ After executing the call, you should get a result set showing the two columns:
262
262
263
263

264
264
265
-
If you get an error, check classpath. The path should include a "pkg" subfolder containing the compiled code. The parent folder, not the "pkg" subfolder, should be in classpath. The length of classpath cannot exceed the declared value (`DECLARE @myClassPath nvarchar(50)`). If it does, the path is truncated to the first 50 characters and your compiled code will not be loaded. You can increase the length if 50 characters is insufficinent. Finally, check permissions on each folder, from root to "pkg" subfolder, to ensure that the security identities running the external process have permission to read and execute your code.
265
+
## If you get an error
266
+
267
+
Rule out any issues related to the classpath.
268
+
269
+
+ Classpath should consist of the parent folder and any subfolders, but not the "pkg" subfolder. While the pkg subfolder must exist, it's not supposed to be in classpath value specified in the stored procedure.
270
+
+ The "pkg" subfolder should contain the compiled code for all three classes.
271
+
+ The length of classpath cannot exceed the declared value (`DECLARE @myClassPath nvarchar(50)`). If it does, the path is truncated to the first 50 characters and your compiled code will not be loaded. You can do a `SELECT @myClassPath` to check the value. Increase the length if 50 characters is insufficient.
272
+
+ Finally, check permissions on *each* folder, from root to "pkg" subfolder, to ensure that the security identities running the external process have permission to read and execute your code.
0 commit comments