Hi ...I have to drop sql database table.But below script works fine if the mentioned database exists.But scripts fails if db table doesnt exist and throws error.
How to verify the existence of database table using autoit? If it exists then only drop that table
$sqlCon = ObjCreate("ADODB.Connection")
$sqlCon.Open("Provider=SQLOLEDB;Data Source= " & $sqlserver & ";Trusted_Connection=Yes;")
;$sqlCon.Execute("DROP DATABASE " & $emdbname)