Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dynamic SQL Queries Stefano Grazioli.

Similar presentations


Presentation on theme: "Dynamic SQL Queries Stefano Grazioli."— Presentation transcript:

1 Dynamic SQL Queries Stefano Grazioli

2 Critical Thinking Easy meter Dictionaries
Additional reading / handbook Longer in-class lab

3 Connecting to the DB from home
If you want to use Visual Studio to connect to the DB server from home, you need to do the following: create a text file containing the following line: runas /netonly /user:"mcintire\sg6m" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" change the line above as needed with your mcintire userid, and the exact location of the version of Visual Studio that you are using. Save the file as "VS from home.bat" Start the VPN to Mcintire Click on the VS from home.bat file and enter your McIntire password if requested Make sure that in your code you refer to the server with its full name: f-sg6m- s4.comm.virginia.edu

4 You do the talking Name, major Learning objectives
Things you like about the class Things that can be improved Attitude towards the Tournament

5 Dynamic queries Combo boxes

6 myCBox.Items.Add(“Italy”)
Combo boxes myCBox.Text myCBox.SelectedItem Pick a country myCBox.Items myCBox.Items.Add(“Italy”)

7 Static (‘Canned’) vs Dynamic SQL queries
mySQL = "SELECT * FROM StockMarket where date = '5/2/2017'" mySQL = "SELECT * FROM StockMarket where date = '" + DateCBox.SelectedItem + "'"

8 ADO architecture for modifying data
Client (your machine) DB Server SqlConnection Connection string Remote DataBase (financial data) SqlCommand SQL Query string Execution Feedback

9 What Is New In Technology?
WINIT What Is New In Technology?

10 Homework

11 Suggestions Make sure that you understand the ADO architecture diagrams before coding.

12


Download ppt "Dynamic SQL Queries Stefano Grazioli."

Similar presentations


Ads by Google