using Microsoft.Data.SqlClient; // Use your own server, database, and user ID. // Connetion string - user ID is not provided and is asked interactively. string ConnectionString = @"Data Source=*******.datawarehouse.pbidedicated.windows.net; Initial Catalog=database;User ID=userid; Connect Timeout=30;Encrypt=True;TrustServerCertificate=False; Authentication=Active Directory Interactive;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"; using (SqlConnection conn = new SqlConnection(ConnectionString)) { conn.Open(); Console.WriteLine("ConnectionString2 succeeded."); using (var cmd = new SqlCommand("SELECT @@Version", conn)) { Console.WriteLine("select @@version"); var result = cmd.ExecuteScalar(); Console.WriteLine(result.ToString...
Prerequisites: 1. Install python 3.11.4 2. Install Flask by pip install Flask How to Install: 1. Open command prompt. 2. Change the directory (CD) to where the app.py file is presenting. 3. After navigating to the folder type python. It will automatically trigger to install the latest python package. Example - C:\Users\PythonProjectFolder> python 4. Install the Flask. C:\Users\PythonProjectFolder> pip install Flask How to run the website: C:\Users\PythonProjectFolder> python app.py Steps to creating the files: 1. Create one main folder and sub folder structure like below. We are going to using the note pad as the code editor. 2. The app.py is the start up fil...