Preview Errors for a Database Mobile Business Object

Problem: You see an error when you are previewing a database mobile business object (MBO) that uses stored procedures.

Execution failed: Stored procedure 'pubs2.dbo.byroyalty' may be run 
only in unchained transaction mode.

During preview, the connection is set to chained mode so the query can be rolled back. set chained off causes the current session to use unchained transaction.

Solution: Issue sp_procxmode 'pubs2.dbo.byroyalty', anymode.

Related tasks
Cannot Ping Unwired Server
Cannot Access sampledb
Modified Port Changes Not Deployed
Related reference
MS SQL Server Connection Errors
ODBC Driver Errors
Mobile Business Object Errors
Preview Errors in Unwired WorkSpace
Preview Errors for a Web Service Mobile Business Object
Compiler Errors When Deploying Device Applications
Deploying to Unwired Server Fails
Deploying to Unwired Server in a Cluster Fails