Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are those curious properties that I've found in my sqlConnection?

Whilst investigating a very dull and exponetially security flawful 2005 project, I debugged into a connection hang.
Inspecting the object, to find the server name, I've encountered this three little properties:

  • IsShiloh
  • IsKatmaiOrNewer
  • IsYukonOrNewer

What are those members and why are they so awesomely named?

like image 562
marcelo-ferraz Avatar asked Oct 10 '12 14:10

marcelo-ferraz


People also ask

Which of the following are method of SqlConnection class?

SqlConnection Class Here, we will use two important methods of SqlConnection. Open() : The open() method is used to open the Database connection. Close() : The close() method is used to close the Database connection. In the preceding code, I have added the namespace "System.

What is the role of SqlConnection class?

A SqlConnection object represents a unique session to a SQL Server data source. With a client/server database system, it is equivalent to a network connection to the server. SqlConnection is used together with SqlDataAdapter and SqlCommand to increase performance when connecting to a Microsoft SQL Server database.

When should you use the SqlConnection object?

If you want to access a database multiple times, you should establish a connection using the Connection object. You can also make a connection to a database by passing a connection string via a Command or Recordset object. However, this type of connection is only good for one specific, single query.

What is SqlConnection in Ado net?

It is used to establish an open connection to the SQL Server database. It is a sealed class so that cannot be inherited. SqlConnection class uses SqlDataAdapter and SqlCommand classes together to increase performance when connecting to a Microsoft SQL Server database.


1 Answers

I believe these are all different codenames for different versions of SQL Server. The Wikipedia article for SQL Server lists the different codenames:

8.0     2000    SQL Server 2000     Shiloh
9.0     2005    SQL Server 2005     Yukon
10.0    2008    SQL Server 2008     Katmai

Also, just for funsies, the codenames follow a National Park naming pattern.

like image 122
Justin Helgerson Avatar answered Sep 29 '22 11:09

Justin Helgerson