How about using stored procedures? All the sql lives on the database and you only call the name of the procedure and pass the parameters.
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
How about using stored procedures? All the sql lives on the database and you only call the name of the procedure and pass the parameters.