-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem synching to Microsoft Fabric Warehouse #468
Comments
Related to microsoft/go-mssqldb#230. Updated the library to latest version. Feel free to try with the latest dev build: https://github.com/slingdata-io/sling-cli?tab=readme-ov-file#automated-dev-builds |
Thanks @flarco gave it a try with the latest dev version but the result is the same failure:
|
One difference between the issue described in microsoft/go-mssqldb#230 and mine is that i am trying with |
With v1.8.2 of go-sqlcmd i was able to make a successful connection to Fabric using the ServicePrinciple authentication method. microsoft/go-mssqldb#230 |
Cool, will update once it's released. |
@flarco is it the go-mssqldb 1.8.0 version you need to be using now (which is used by go-sqlcmd v1.8.2 which has the fix) ? |
Yea, |
@flarco Give me a couple of days (i need to get access to another Fabric capacity) |
ok here are my latest attempt at a connection test with connections:
FABRIC_JOHNMOSA:
type: sqlserver
host: REDACTED.datawarehouse.fabric.microsoft.com
user: REDACTED_USER
password: "REDACTED_PASSWORD"
database: johnmosa
schema: dbo
fedauth: ActiveDirectoryServicePrincipal
# encrypt: 'true'
# trust_server_certificate: 'false'
fails as below ./sling --version
Version: 1.3.5.dev (2025-01-09)
DEBUG=TRACE ./sling conns test FABRIC_JOHNMOSA
2025-01-09 18:19:01 TRC no type detected
2025-01-09 18:19:01 TRC no type detected
2025-01-09 18:19:01 TRC no type detected
2025-01-09 18:19:01 TRC connURL -> sqlserver://REDACTED_USER:[email protected]:1433?app+name=sling&database=johnmosa&fedauth=ActiveDirectoryServicePrincipal
2025-01-09 18:19:03 DBG closed "sqlserver" connection (conn-sqlserver-Wof)
2025-01-09 18:19:04 TRC post event response: 202 Accepted
ok
fatal:
--- proc.go:271 main ---
--- sling_cli.go:474 main ---
--- sling_cli.go:510 cliInit ---
--- cli.go:286 CliProcess ---
--- sling_conns.go:184 processConns ---
--- connection_local.go:64 Test ---
~ could not test FABRIC_JOHNMOSA
--- connection_discover.go:24 Test ---
~ could not connect to FABRIC_JOHNMOSA
--- database_sqlserver.go:175 Connect ---
~ could not connect to database
--- database.go:669 Connect ---
Read: EOF |
@flarco let me know if you need any more info. |
@flarco see successful connection and query details using Sling dev Version: 1.3.6.dev (2025-01-22) microsoft/go-mssqldb#230 (comment) |
Great. New version (1.4.0) already released. Closing. |
Thankyou for your perseverence. Fabric is going to be important to a lot of people. |
@flarco I tested 1.4.0 and its working but it is showing all the debug output (without the |
You mean the SQL Server log? Do you have |
Oh yea I do ! ~ that explains it. Thanks |
Issue Description
I am trying to connect to a Microsoft Fabric Warehouse as a target but it fails. I had a look at the docs for https://github.com/denisenkom/go-mssqldb#connection-parameters-and-dsn to find out how to connect using a Service Principal but it didnt work.
Sling version (
sling --version
): Version: 1.3.2Operating System (
linux
,mac
,windows
): macOSConnections (~/sling/.env.yml)
-d
):The text was updated successfully, but these errors were encountered: