if Document.Properties["isInformationLinksDataType"] == 0 :
	#when we have embedded data
	tableName = "dbo.Test"
	# Create  sql statement, connection string, and new data source
	sqlCommand = "SELECT * FROM dbo.Embedded;"
	dbsettings = DatabaseDataSourceSettings("System.Data.SqlClient", DataSourceSettings , sqlCommand) 
	ds = DatabaseDataSource(dbsettings)
	 
	# Replace the data table with new connection string information; 
	if(Document.Data.Tables.Contains(tableName)):
		Document.Data.Tables[tableName].ReplaceData(ds)

	if Document.Data.Tables[tableName].IsRefreshable and Document.Data.Tables[tableName].NeedsRefresh:
		Document.Data.Tables[tableName].Refresh()
		
else:
	#set up the informationLinks table with GUID parameter, etc...
	print "InformationLinks table load"

	#Find  the information link by name
	link = InformationLinkDataSource().FindAll("name:ILTable")
	ilGUID = link.First.Identifier

	# Instantiate parameters list if any
	namedParameters=[]

	#Create Array for parameter values if any
	paramVal1 = Array.CreateInstance (str,1)
	paramVal1[0] = Document.Properties["GUID"]
	print "paramVal1:"  + paramVal1[0]
	namedParameter = InformationLinkParameter.CreateNamedParameter("GUID" , paramVal1);
	namedParameters.Add(namedParameter)
	#create the data source connection
	ilDataSource = InformationLinkDataSource(ilGUID, namedParameters)
	# Replace the data table
	tableName = Document.Data.Tables["dbo.Test"]
	tableName.ReplaceData(ilDataSource)
