hi,all
when I try to use the "create data mining " and system.oledb in c#,i met with this problem .my source code is:
using System;
using System.Data.OleDb;
static void Main(string[] args)
{
OleDbConnection ole=new OleDbConnection();
ole.ConnectionString="Provider=MSOLAP.1;Data Source=local host ;Initial Catalog=TEST";
string CreateModel = "Create mining model MemberCard_Prediction" +
"(" +
"CustomerID long key," +
"Gender text discrete," +
"Age long continuous," +
"Profession text discrete," +
"Income long continuous," +
"Houseowner text discrete," +
"MemberCard text discrete predict" +
")" +
" Using Microsoft_Decision_Trees";
ole.Open();
OleDbCommand mycmd=new OleDbCommand(CreateModel,ole);
mycmd.ExecuteNonQuery();
}
there is an exception in "mycmd.ExecuteNonQuery();"
can you help me ?
thank you .