# Getting Bonita works on mssql server

**URL:** <https://community.ofelia.com/t/getting-bonita-works-on-mssql-server/5178>\
**Category:** Q&A\
**Created:** [24 September 2014 13:18 UTC](https://community.ofelia.com/t/getting-bonita-works-on-mssql-server/5178 "2014-09-24T13:18:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![njbour](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@njbour](https://community.ofelia.com/u/njbour)\
**Post date:** [24 September 2014 13:18 UTC](https://community.ofelia.com/t/getting-bonita-works-on-mssql-server/5178/1 "2014-09-24T13:18:40Z")

</div>

I followed all the steps to make Bonita works with Sql Server.  
The only issue we have is when we run the system trying to initialize the database but it stopped with this error:  
Caused by: org.bonitasoft.engine.platform.SPlatformCreationException: Unable to create platform tables : com.microsoft.sqlserver.jdbc.SQLServerException: Column, parameter, or variable #3: Cannot find data type LONGVARCHAR.  
at org.bonitasoft.engine.platform.impl.PlatformServiceImpl.createPlatformTables(PlatformServiceImpl.java:151)  
at org.bonitasoft.engine.api.impl.PlatformAPIImpl.createPlatform(PlatformAPIImpl.java:152)  
… 29 more

Which mean that the system trying to run H2 script on sql server.

I checked my setenv.bat and it indeed changed to set the DB\_OPTS.  
in setenv.bat:  
set DB\_OPTS=“-Dsysprop.bonita.db.vendor=sqlserver”

I am using windows 8.1 and Sql server 2012.

Any clue?

---

<div class="post-metadata">

**Author:** ![haris.subasic](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@haris.subasic](https://community.ofelia.com/u/haris.subasic)\
**Post date:** [24 September 2014 14:16 UTC](https://community.ofelia.com/t/getting-bonita-works-on-mssql-server/5178/2 "2014-09-24T14:16:47Z")

</div>

You also need to change the dialect in this file:  
\<bonita.home\>\server\platform\tenant-template\conf\bonita-server.properties  
Did you do it?
