In .Net, is there any functional difference between creating a new SqlCommand object and attaching a SqlConnection to it and calling CreateCo
SqlCommand
SqlConnection
CreateCo
They do the same thing. The rationale behind SqlConnection.CreateCommand is to implement the factory pattern.
SqlConnection.CreateCommand