I am using the following code:
var dbSelect = Database.Open("XXXXXX") ;
var selectQueryString = "SELECT * FROM XXXX ;
var data = dbSelect.Query(selectQueryString);
Now If I put the above code in try catch block, then "data" variable is not accessible outside try block. How I can declare "data" variable globally and then can collect result in it in try block?
View Complete Post