Yes, this should be possible with C# scripting by incorporating compatible methods from the System.Data.SqlClient Namespace.
http://msdn.microsoft.com/en-us/library ... 90%29.aspxThe SqlConnection class can connect to SQL Server Databases.
http://msdn.microsoft.com/en-us/library ... 90%29.aspxNot all methods are available in the .NET Compact Framework so look for the mobile icon next to the method to see if it's available.
http://msdn.microsoft.com/en-us/library ... 90%29.aspxYou can use "Script Modules" in iX Developer Manual to put C# script.
Once you have written script to retrieve the data, copy values into tags by referencing the "Globals.Tags" area in iX Developer (i.e. Globals.Tags.Tag1.Value = 5;). Then make sure the tags you are updating are used by the TrendChart.