-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See open-metadata/OpenMetadata@b1a41ca from refs/heads/main
- Loading branch information
open-metadata
committed
Dec 13, 2024
1 parent
724ac18
commit b0e2400
Showing
9 changed files
with
177 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Troubleshooting for MSSQL | ||
slug: /connectors/database/mssql/troubleshooting | ||
--- | ||
|
||
# Resolving SQL Server Authentication Issue for Windows User | ||
|
||
This guide addresses a common issue when connecting to a SQL Server instance using Windows OS. If you encounter the error below, follow the steps outlined to resolve it effectively. | ||
|
||
## Error Description | ||
When attempting to connect to SQL Server using a Windows user, the following error appears: | ||
|
||
``` | ||
(pyodbc.InterfaceError) ('28000', "[28000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'domain\\user'. (18456)") | ||
``` | ||
|
||
Additionally, the SQL Server logs display: | ||
|
||
``` | ||
Login failed for user 'domain\user'. Reason: Attempting to use an NT account name with SQL Server Authentication. | ||
``` | ||
## Root Cause | ||
The error occurs because the connection is configured to use SQL Server Authentication instead of Windows Authentication. Windows Authentication requires a connection scheme that supports integrated security. | ||
|
||
## Resolution | ||
|
||
### Step 1: Verify Connection Configuration | ||
1. Ensure that you are connecting to SQL Server using **Windows Authentication**. | ||
2. Update the connection scheme to use `mssql+pymssql` instead of `mssql.pyodbc`. | ||
|
||
### Step 2: Update the Connection Details in Collate | ||
1. Navigate to **MSSQL Service Configuration** in the Collate UI. | ||
2. Update the **Connection Scheme** to `mssql+pymssql`. | ||
3. Retain the following connection details: | ||
- **Host and Port**: e.g., `10.121.89.148:62452`. | ||
- **Database**: Specify the target database (e.g., `OneSumx_Stoging`). | ||
- **Username**: Use the Windows account username, e.g., `domain\user`. | ||
4. Save the updated configuration. | ||
|
||
### Step 3: Test the Connection | ||
1. After saving the changes, click **Test Connection** in the Collate UI. | ||
2. Confirm that the following steps pass successfully: | ||
- **CheckAccess** | ||
- **GetDatabases** | ||
- **GetSchemas** | ||
- **GetTables** | ||
- **GetViews** | ||
- **GetQueries** | ||
|
||
### Expected Outcome | ||
After updating the connection scheme, the connection should succeed. The status will display: | ||
|
||
``` | ||
Connection Status: Success | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Troubleshooting for MSSQL | ||
slug: /connectors/database/mssql/troubleshooting | ||
--- | ||
|
||
# Resolving SQL Server Authentication Issue for Windows User | ||
|
||
This guide addresses a common issue when connecting to a SQL Server instance using Windows OS. If you encounter the error below, follow the steps outlined to resolve it effectively. | ||
|
||
## Error Description | ||
When attempting to connect to SQL Server using a Windows user, the following error appears: | ||
|
||
``` | ||
(pyodbc.InterfaceError) ('28000', "[28000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'domain\\user'. (18456)") | ||
``` | ||
|
||
Additionally, the SQL Server logs display: | ||
|
||
``` | ||
Login failed for user 'domain\user'. Reason: Attempting to use an NT account name with SQL Server Authentication. | ||
``` | ||
## Root Cause | ||
The error occurs because the connection is configured to use SQL Server Authentication instead of Windows Authentication. Windows Authentication requires a connection scheme that supports integrated security. | ||
|
||
## Resolution | ||
|
||
### Step 1: Verify Connection Configuration | ||
1. Ensure that you are connecting to SQL Server using **Windows Authentication**. | ||
2. Update the connection scheme to use `mssql+pymssql` instead of `mssql.pyodbc`. | ||
|
||
### Step 2: Update the Connection Details in Collate | ||
1. Navigate to **MSSQL Service Configuration** in the Collate UI. | ||
2. Update the **Connection Scheme** to `mssql+pymssql`. | ||
3. Retain the following connection details: | ||
- **Host and Port**: e.g., `10.121.89.148:62452`. | ||
- **Database**: Specify the target database (e.g., `OneSumx_Stoging`). | ||
- **Username**: Use the Windows account username, e.g., `domain\user`. | ||
4. Save the updated configuration. | ||
|
||
### Step 3: Test the Connection | ||
1. After saving the changes, click **Test Connection** in the Collate UI. | ||
2. Confirm that the following steps pass successfully: | ||
- **CheckAccess** | ||
- **GetDatabases** | ||
- **GetSchemas** | ||
- **GetTables** | ||
- **GetViews** | ||
- **GetQueries** | ||
|
||
### Expected Outcome | ||
After updating the connection scheme, the connection should succeed. The status will display: | ||
|
||
``` | ||
Connection Status: Success | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
content/v1.7.x-SNAPSHOT/connectors/database/mssql/troubleshoot.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Troubleshooting for MSSQL | ||
slug: /connectors/database/mssql/troubleshooting | ||
--- | ||
|
||
# Resolving SQL Server Authentication Issue for Windows User | ||
|
||
This guide addresses a common issue when connecting to a SQL Server instance using Windows OS. If you encounter the error below, follow the steps outlined to resolve it effectively. | ||
|
||
## Error Description | ||
When attempting to connect to SQL Server using a Windows user, the following error appears: | ||
|
||
``` | ||
(pyodbc.InterfaceError) ('28000', "[28000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'domain\\user'. (18456)") | ||
``` | ||
|
||
Additionally, the SQL Server logs display: | ||
|
||
``` | ||
Login failed for user 'domain\user'. Reason: Attempting to use an NT account name with SQL Server Authentication. | ||
``` | ||
## Root Cause | ||
The error occurs because the connection is configured to use SQL Server Authentication instead of Windows Authentication. Windows Authentication requires a connection scheme that supports integrated security. | ||
|
||
## Resolution | ||
|
||
### Step 1: Verify Connection Configuration | ||
1. Ensure that you are connecting to SQL Server using **Windows Authentication**. | ||
2. Update the connection scheme to use `mssql+pymssql` instead of `mssql.pyodbc`. | ||
|
||
### Step 2: Update the Connection Details in Collate | ||
1. Navigate to **MSSQL Service Configuration** in the Collate UI. | ||
2. Update the **Connection Scheme** to `mssql+pymssql`. | ||
3. Retain the following connection details: | ||
- **Host and Port**: e.g., `10.121.89.148:62452`. | ||
- **Database**: Specify the target database (e.g., `OneSumx_Stoging`). | ||
- **Username**: Use the Windows account username, e.g., `domain\user`. | ||
4. Save the updated configuration. | ||
|
||
### Step 3: Test the Connection | ||
1. After saving the changes, click **Test Connection** in the Collate UI. | ||
2. Confirm that the following steps pass successfully: | ||
- **CheckAccess** | ||
- **GetDatabases** | ||
- **GetSchemas** | ||
- **GetTables** | ||
- **GetViews** | ||
- **GetQueries** | ||
|
||
### Expected Outcome | ||
After updating the connection scheme, the connection should succeed. The status will display: | ||
|
||
``` | ||
Connection Status: Success | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters