Sql Server connection string in ODBC.jl

Cristian_Suciava
Wed, 18 Nov 2020 09:29:30 +0000
General Usage

I use this code to connect to a Sql Server database, with no credentials
All good!

    ODBC.adddsn("SQL_Server_DSN", "SQL Server"; SERVER="x", DATABASE ="x", Trusted_Connection="True")
	conn = DBInterface.connect(ODBC.Connection, "SQL_Server_DSN")
	cursor = DBInterface.execute(conn, "SELECT * FROM dbo.users")|> DataFrame

But when I try to use credentials, somehow I am not able to get how to adapt the connection string.

3 posts - 2 participants