How to do Database Testing with CodedUI (C#)?

Here I am providing sample code to start Database Testing with CodedUI (C#)- //Below code willl login and open the DB connection. string connetionString = “Data Source=DBSeverName;Initial Catalog=DBName;User ID=UserName;Password=DBPassword”; SqlConnection connection = new SqlConnection(connetionString); connection.Open(); //Below code will help to execute the Select query. String Selectquery = “Select FirstName from Emp where EmpID in (01)”;Continue reading “How to do Database Testing with CodedUI (C#)?”