Try this way.. private void GetData() { try { if(FileName.Text.EndsWith("xls")) { string connection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ FileName.Text + ";Extended Properties=Excel 8.0;"; DataSet bulkData=new DataSet() ; OleDbDataAdapter adap = new OleDbDataAdapter("SELECT [Postal/Kommune], HouseType, KommuneNumber, PostalCode, StreetCode, HouseNumber, Floor, SideDoorNumber FROM [" + SheetName.Text + "$]", connection); adap.Fill(bulkData); if(bulkData!=null) if(bulkData.Tables[0].Rows.Count>0) { BulkPropertyBLL bulkpropertyBll = new BulkPropertyBLL(); for(int i=0;i Regards, Sylvester G sylvester_g_m@yahoo.com