diff --git a/User_MicroService_Group3/test_connection.py b/User_MicroService_Group3/test_connection.py deleted file mode 100644 index 6080482f1396dc54277660b3e3e0618703bbd845..0000000000000000000000000000000000000000 --- a/User_MicroService_Group3/test_connection.py +++ /dev/null @@ -1,17 +0,0 @@ -import pyodbc - -# Define your connection string -connection_string = "DRIVER=ODBC Driver 17 for SQL Server;SERVER=user-database,1433;DATABASE=User_Management;UID=sa;PWD=WebTechGroup3;" - -def test_connection(): - try: - # Attempt to connect to the database using the connection string - conn = pyodbc.connect(connection_string, timeout=30) - print("Connection successful!") - # Close the connection - conn.close() - except pyodbc.Error as e: - print(f"Connection failed: {e}") - -if __name__ == "__main__": - test_connection()