Skip to content

MS SQL Server connection string #39

@SilverZippo

Description

@SilverZippo

From the comments you added support for MSSQL in 2019 and init does indeed recognise connection strings such as:

sqlsrv://user:pass@server/db

However whenever I try and spin up the container, I get the following error:

In SQLSrvException.php line 57:
SQLSTATE [IMSSP, -8]: An invalid connection option key type was received. Option key types must be strings.

I have tried various combinations of connection string such as:
sqlsrv://user:pass@server\db
sqlsrv://user:pass@server\\db
sqlsrv://user:pass@server:port/db
sqlsrv://user:{pass}@server/db

and also variations of

sqlsrv://server/db;username=user;password=pass;

But I keep getting the same error.

Please can you add an example for sql server to the README.md ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions