Thanks Sasha! I appreciate all you help! I am new to both MySQL or SQL and to be honest just want to do this small task of the channels changes in an automated way. Let me see if I can learn to change your SQL statement to a MySQL statement and run it. By the way, how does the statement and SQL run know where to access the channels. Does one open the channels file and then run the query? Again, thanks!
Sorry, I don't have MySQL running here, not to mention having a TV-Server database in it, so I can't readily test a mysql command, and it would definitely take a few tries to get it right.
In the case of the sqlcmd command I proposed earlier, the logic of where to find the channel configuration information is all embedded in the query. The fields you need to update (videoSource and audioSource) are in a table called TuningDetail. Literally everything in the query after the first WHERE clause serves to restrict the channels that will be modified so that you don't inadvertently update the videoSource and audioSource for a channel associated with another card.
The web is full of great introductions, tutorials, and references to the SQL data manipulation language that are worth taking a look at--I am not ashamed to admit that I use them on a pretty regular basis, since my SQL skills are usually on the rusty side. Access is also a great tool for helping you gain proficiency with the language. You can create some pretty involved queries in the GUI's query designer, and then switch over to SQL view to see the SQL statement representation of your query for inspection or even modification, and then quickly go to data view to see the effects of your work.
Sasha