SQL commands from C# and ASP.net SQL commands

SQL commands from C# and ASP.net SQL commands
1 / 1
SQL commands from C# and ASP.net SQL commands - slide 1 of 8 SQL commands from C# and ASP.net SQL commands - slide 2 of 8 SQL commands from C# and ASP.net SQL commands - slide 3 of 8 SQL commands from C# and ASP.net SQL commands - slide 4 of 8 SQL commands from C# and ASP.net SQL commands - slide 5 of 8 SQL commands from C# and ASP.net SQL commands - slide 6 of 8 SQL commands from C# and ASP.net SQL commands - slide 7 of 8 SQL commands from C# and ASP.net SQL commands - slide 8 of 8
SQL commands from C and ASP.net SQL commands Microsofts database system is called SQL Server The most popular open source database is called MySQL SQL : Structured Query Language Select From PlantData Where Collection Ivy Select

Related Topics

Download this presentation From Below

"SQL commands from C# and ASP.net SQL commands" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
SQL commands from C# and ASP.net<br>
02
SQL commands Microsoft’s database system is called “SQL Server”
The most popular open source database is called “MySQL”
SQL : Structured Query Language

Select * From PlantData Where Collection = ‘Ivy‘
Select * From PlantData Where Location = ‘House10’
Lists all the database records that satisfy that criteria
Select COUNT (DISTINCT ScientificName) FROM PlantData
Counts the number of unique plant names
therefore = number of plant types
Returns a useful statistic<br>
03
Question 1: How do you issue an SQL command from C#? It’s all about the connection string:
string CONNECTION_STRING = "Data Source=MBUCKLEY16; Initial Catalog=BotanicalApp; Integrated Security=True";
string CONNECTION_STRING_LOCATIONS ="Data Source=MBUCKLEY16; Initial Catalog=Locations; Integrated Security=True";
string CONNECTION_STRING_COLLECTIONS ="Data Source=MBUCKLEY16; Initial Catalog=Collections; Integrated Security=True";
note: SERVER DATABASE<br>