Ignition SQL query changing from vantage-pt to pi-server

I am using SQL database. I was using PI SQL Commander partially to run SQL query. I will try that.