Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Using CREATE DATABASE either with SQL Widget or AdvancedQuery Forge Component

$
0
0

Hi Community,

I have a use case where I would like to create a copy of a database possibly onto another server (MSSQL)(Schema and data) from within my Outsystems App using a script. However if I issue a CREATE DATABASE statement I get a "CREATE DATABASE statement not allowed within multi-statement transaction" error in my screen action. I've tried issuing a "CommitTransaction" server action prior to running the SQL, but to no avail. 

I've also tried using AdvancedQuery extension ExecuteCommand but this also causes problems (The database doesn't get created). I've read that a screen action wraps all SQL in a transaction, so it may not be possible.

Any ideas gratefully received.

Andy.


Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>