A few customers have hit a speed bump when trying to setup persistence with WF4 Beta1. We have multiple sql scripts included (for 3.5 persistence and 4.0 persistence). The problem is that depending on your WF application model in Beta1 you have to execute different scripts (we’ve fixed this in Beta2).
For WorkflowServiceHost usage, use these SQL scripts:
For WorkflowInstance usage, use these SQL scripts (note the lack of “40”):
Also make sure that the connection string in your application matches the database you created.