DataSource_SSPSoapClient datasource_ssp = new DataSource_SSPSoapClient(); JobTicket_SSPSoapClient jobticket_ssp = new JobTicket_SSPSoapClient(); Production_SSPSoapClient production_ssp = new Production_SSPSoapClient(); Campaign_SSPSoapClient campaign_ssp = new Campaign_SSPSoapClient(); string inDataSourceID = string.Empty;
if (campaign_ssp.IsExist(<user>, <password>, "43")) { DataSet campaignDatasources = campaign_ssp.GetDataSourcesDataSet(<user>, <password>, "43"); foreach (DataTable dt in campaignDatasources.Tables) { foreach (DataRow row in dt.Rows) { if (row["dataSourceType"].ToString().Equals("MSQL") && row["dataSourceName"].ToString().Contains(sSQL.database)) { inDataSourceID = row["dataSourceID"].ToString(); } } } } if (string.IsNullOrEmpty(inDataSourceID)) { inDataSourceID = datasource_ssp.CreateNew(<user> , <password> , "43" , "MSQL" , <dataSourceName> , @"Provider = SQLOLEDB.1; Data Source = <SQL Instance>; " + @"Initial Catalog = <database>; User ID = <SQL User>; " + @"Password = <SQL Password>" , "" , "" , true , null); }
So, my question is how am I using CreateNew() wrong when the datasource I'm connecting to the campaign is a MS SQL database?
Thank you,
--
Brett Ussher
I did check the campaign and look at the details. I also checked in the database itself. I did not get any splitting of the connection string across different fields like you seemed to report. Maybe you should work with XMPie support on this one?
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xmpie-users/19ELZeYYSB8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
My server is v8.2.3. Obviously, the dashboard uses the same API, so if the dashboard works, the API should work also - assuming the method is called correctly.
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xmpie-users/19ELZeYYSB8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users...@googlegroups.com.