Ok.. Here is what I have:
I am using: foreach ($SqlServer in get-content "F:\Powershell_Apps\Zero_Data_Tables\SQL_Servers.txt")
To get all of my Sql Servers that I need to search each database..
My connection is: $con = "server=$SqlServer;database=DBName;Integrated Security=sspi"
My query is: $SqlQuery = "select $SqlServer,DatabaseName,TableName,Rows from Zero_Data_Tables"
But it is not liking the $SqlServer so if I take it out it works fine...
Any suggestions...