467,211 Members | 1,213 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,211 developers. It's quick & easy.

A System.Data.OleDb.OleDbException

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";

OleDbCommand mycmd=new OleDbCommand(CreateModel,ole);

there is an exception in "mycmd.ExecuteNonQuery();"
can you help me ?
thank you .
Nov 30 '06 #1
  • viewed: 989

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by G.Esmeijer | last post: by
reply views Thread by NicK chlam via DotNetMonster.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.