Closed stegl83 closed 1 week ago
Thank you for reporting this ! We'll implement mssql-specific database filesystem queries for the next version.
What are you building, by the way ?
The problem is fixed, and the on-db filesystem feature is now automatically tested on all supported databases :)
You can try the latest build with the fix on docker: lovasoa/sqlpage:main
Very nice. Thank You very much!
I had a little trouble with the text encodings. But finally, I get it working. The contents-Column is varbinary and SqlPage needs UTF8 encoding here. NVarchar is UTF16, varchar depends on database collation, which i didn't want to change.
In my case, the table "sqlpage_files" is filled by my application. So I encoded the content on application side to a UTF8-encoded Byte Array and use a varbinary parameter to insert the row.
I tried to use the table "sqlpage_files" for storing the content in the DB in spite of localfilesystem. But creating and filling the table does not have an effect.
Enabled the debug-Log, then I got this:
followed by:
The error while trying to use the database file system is: error returned from database: Falsche Syntax in der Nähe von ">".: Falsche Syntax in der Nähe von ">".
The next thing I did: Run SQL Server Query Analyzer to get the SQL-Statement that SQLPage send to the SQL-server:
Seems, that SQLPage generates no mssql compatible query here.