May-09-2019, 07:32 AM
(May-08-2019, 10:05 AM)buran Wrote: check this line
if not conn!=None:You want
if conn:or
if conn is not None:
And as a matter of fact - you even don't need it (i.e. to check the conn object) - you will either get connected successfully or you will get exception :-)
It does not even go upto this line it stops at very first line of connection...is it becos there is also sql server 2012 installed on same machine which also takes first instance as localhost???not getting it...