What is the difference between creating a DB connection using Connection obj, and directly using from Command object?

Script1 using connection object:
conStr="give your connection string"
conObj.open conStr
set cmdObj.activeconnection=conObj

Script2 without using connection object

Both of these scripts connects to DB, but what is the difference? and which method is better to use?

Looking forward your help [img]/images/graemlins/smile.gif[/img]