基于SSIS的地层进行的开发(一)

   一些废话我以后在写

 

1.创建包以及数据流任务

 

Code

 

2.创建连接管理器 ConnectionManager,我这里给出的是OLEDB的SQL以及ORACLE的数据库连接

 


 // Add an OLE DB connection manager to the package.
ConnectionManager conMgr = package.Connections.Add("OLEDB");
conMgr.ConnectionString 
= "Data Source=(local);User ID=sa;Initial Catalog=ddtest;Password=8888;Provider=SQLOLEDB.1;Persist Security Info=True;";
conMgr.Name 
= "SQL for OLE DB";
conMgr.Description 
= "OLE DB connection to the ddtest database.";



//ConnectionManager conMgr2 = package.Connections.Add(string.Format("ADO.NET:{0}", typeof(OleDbConnection).AssemblyQualifiedName));
ConnectionManager conMgr2 = package.Connections.Add("OLEDB");
conMgr2.ConnectionString 
= "Data Source=orcl18;User ID=fjydbp;Password=fjydbp;Provider=MSDAORA.1;Persist Security Info=True;";
conMgr2.Name 
= "Oracle for OLE DB";
conMgr2.Description 
= "OLE DB connection to the fjydbp.sqldb database.";

 

 

 

posted @ 2009-03-17 17:16  迪迪Ivan  阅读(220)  评论(0)    收藏  举报