Not sure if this belongs in data's queue or this one:

When using the data module: http://drupal.org/project/data, there is an error upon visiting the module's admin page:

Notice: Uninitialized string offset: 0 in DatabaseConnection_sqlsrv->escapeTable() (line 378 of ...\includes\database\sqlsrv\database.inc).

Then when trying to use data module's features of "Create table" or "Adopt tables" it silently fails. It just doesn't work with no error messages to track down.

Without researching deeper into the issue surrounding this, I put a simple is_array() check in the function of the error mentioned above and took the [0] off $tables if it wasn't an array which got rid of the error, but the functionality still doesn't work.

Comments

alibama’s picture

Issue summary: View changes

confirm - the schema module doesn't seem to work either...

david_garcia’s picture

Category: Support request » Feature request

Both Data and Schema module have native introspection.

The guys in Schema module were smart and defined an "engines" folder where you can implement a database specific implementation.

If you want to see Schema working, you should implement the SQL Server specific engine.

If anyone wants to see any of these two modules on SQL Server, they will have to work on it :)

Greetings,

katannshaw’s picture

FYI: There's a similar issue report on the Schema issue queue titled SQL Server support. I just tried the patch provided with Schema7.x-1.2 along with Data 7.x-1.0-alpha7 on my development site and still received the same notice @ admin/structure/data as the OP.

Dmitriy.trt was very clear that the patch was only a starting point, and gave some points on how we might/could get it to work.

david_garcia’s picture

Related issues: +#1540608: SQL Server support
david_garcia’s picture

Status: Active » Closed (won't fix)

This should be taken care of in the related issue of the Data module.