Databases :: Excel Upload Large Numbers Of Rows?

Sep 25, 2010

i am trying to upload an excel to an oracle data base (10g xe) the excel has arround 46000 rows.I am getting the following error when i do a insert

ORA-06550 string 1 line 1,

PLS-00123: program too large (Diana nodes

View 1 Replies


Similar Messages:

Databases :: Reading From An Excel Spreadsheet - Fields With Numbers Are Showing As DBNull

Nov 8, 2010

My web app is allowing the user to load a column of data from an Excel spreadsheet. For whatever reason, as it parses the data, fields that are just integers are coming up as System.DBNull. (Code in VB.NET but I work with C# as well, so feel free to post C# solutions)

[Code]....

dataRow(0) is System.DBNull when the Excel file has a number in Column A. Here's what the Excel looks like

Column A
100S200
WEIRD
ABCDEFG
123456
100S12791
119655902
100S12792
105E17530
123456 and 119655902 come through as DBNull

View 8 Replies

Web Forms :: Upload Large Excel File - Use Multithreading?

Mar 7, 2011

i have a large excel file which has 1 lakh row , i want to insert these data in my table i am using entity framework for insert but it takes more than 45 minutes to insert which is too much, i want to speed up the uploading process what should i do. can I use multithreading for it if yes then how i can use? if any other way to do this process.

View 1 Replies

SQL Server :: Insert Large No Of Excel Sheet Rows Into Database Table?

Aug 17, 2010

I have an excel sheet that contains around 30,000 rows and 18 colmns. These no of rows and columns may increase in future. I need to read all these records from excel sheet and insert into a table in sql database. For reading the excel book I am using Oledbconnections. The possible solutions I have known as per my knowledge, to insert the data are

1. To insert one record at a time which makes 30,000 database hits. How will this affect the performance?
2. To use liked servers - bu this is not working for me.I do not have database permissions to use linked servers. So, the only option i have is the first one.

View 2 Replies

Databases :: Get Number Of Columns From Excel Or Csv Before Allowing Upload?

Mar 16, 2011

I have a page within our site that allows admin users the ability to upload configuration settings into the system instead of submitting 1 at a time.

While testing yesterday, i found that one of the upload pages allowed me to upload a excel file that had alot more columns than expected and when i checked the database, the first few columns that were expected took the values from the file, and everything else was ignored, but wanted to see if there is any way to check the number of columns in the file to make sure it matches the upload logic before accepting it.

View 5 Replies

Databases :: Upload And Import Excel File Without Saving First?

Apr 13, 2010

I need to be able to have a user upload an excel file, then immediately work with that file and save the contents in a database.

I know how to do this if I save the file first, then open it using OleDB, BUT I would rather not save it first.

View 3 Replies

Databases :: Upload Xlsx (MS Excel) File To Oracle DB?

Jan 18, 2011

I would like to upload a xlsx file to Oracle DB (Oracle 11g). I'm using VS .NET 2008 (C#, web).

The file contains around 500 rows.

View 3 Replies

Databases :: Show Number Of Rows Exported While Exporting To Excel

Jun 9, 2010

I have a simple export to excel functionality in my application. Code is :

[Code]....

View 2 Replies

Databases :: Upload An Excel File And Read In Memory Without Saving?

Mar 15, 2011

I need to upload an excel file using a web application. Then I need t oread it in memory without saving it on the server.

Does the file need to have headers? Also the data is such that it may have or may not have values for some columns.

View 1 Replies

Databases :: Upload Excel File Into Oracle - System Resource Exceeded

Jan 5, 2011

We have the data in excel file and want to upload the same into Oracle table.To achieve this we are using following query
insert into [ODBC:Driver={Microsoft ODBC for oracle};connectionstring].tablename (select * from sheet$ )
This is working fine for less records but when the record count increases following is the error faced. Error : System Resource Exceeded

We tried the following:
1. We tried to remove connection pooling for oracle.
2. We tried to remove connection pooling for excel.
3. We also verified that only one connection for each (oracle and excel) is open.

Our assumptions:
1. Either the server setting is the issue
2. Jet oledb Driver is the issue.

View 1 Replies

How To Use RangeValidator For Large Numbers (Int64 Range)

Apr 4, 2011

Is there a way to use RangeValidator for large numbers (Int64 range)?

View 1 Replies

Data Controls :: Add Comma To Large Numbers And Display It In Currency Format

Jan 24, 2016

With reference to the following thread: URL....I have problem applying the same concept to gridview EditItemTemplate. Is there a way i can add comma to large numbers and display it in currency format like exemple below:

Textbox3=Textbox1 * Textbox2

Textbox3= 1,000.00

Textbox3 should happen OnTextChanged and the above controls are in Gridview edit mode.

View 1 Replies

Web Forms :: Automatically Add Comma To Large Numbers And Display In Currency Format

Jan 24, 2016

How can i calculate the sum of two textboxes(Textbox1 and Textbox2) and then add comma with .00 to another textbox(Textbox3). Example say Textbox1 = 2 and Textbox2 = 500

Textbox3=Textbox1 * Textbox2

Textbox3= 1,000.00

Note: Textbox3 should happen onkeyup ...

View 1 Replies

ADO.NET :: Count The Numbers Of Rows In Dataset?

Aug 26, 2010

which part when wrong if my code is wrong ? I'm using VS2010 have a dataset. Here is my code. [Code]....

View 4 Replies

Databases :: Export To Excel Multiple Sheets Without COM Interop Or Excel Object?

Feb 18, 2011

i want to export multiple tables in a dataset to excel workbook with each tables as sheets without using COM Interop or Excel Object.

View 2 Replies

Databases :: Want To Import Excel Data By Excel Rowindex?

Mar 11, 2011

Is there a way to import an amount of data from an excel sheet using the sheet rowindex, something like: SELECT * FROM [PLAN1$] WHERE ROWINDEX BETWEEN 1 AND 1000?

View 1 Replies

ADO.NET :: Number Truncation With Exponential Numbers From Excel

Mar 21, 2011

I have a excel xlsx workbook that needs to be loaded into various SQL tables after the file's data has gone though various business logic checks. There can be multiple excel files as input to the program so i'm using the standard connection string and a data adapter to append the entire sheet into a DataTable so all the data can be checked at the same time. The code below works for this (sort of).

excelCon = new OleexcelCon = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + strFileName + ";Extended Properties="Excel 12.0;HDR=No;IMEX=1";");
excelCon.Open();
strExcelSheetNames = GetSheetNames(excelCon);
for (int x = 0; x < strExcelSheetNames.Length; x++)
{
excelCmd.CommandText = "SELECT * FROM [" + strExcelSheetNames[x] + "]";
excelCmd.CommandType = CommandType.Text;
excelCmd.Connection = excelCon;
excelAdapter = new OleDbDataAdapter(excelCmd);
excelAdapter.Fill(dtExcelConvert);
}

I'm having an issue with the number columns however, if the number in the xlsx file is 612561120001 and it's displayed as 6.12561E+11 when i read it from the data table and convert it to a number it appears as 612561120000. I have tried to convert the file to a csv file and read it in but they're comma's in a lot of the fields which cause issues when splitting the data.

View 2 Replies

Generated Excel Spreadsheet: Numbers Received As Text?

Jan 5, 2011

I am generating, using a ASP routine, Visual Basic, a HTML table in a file to be read by MS Excel.

After Excel reads the file, some of the numbers (in some cells) are shown as "text", not numbers: they cannot be operated upon, like decimal numbers. (added, subtracted...)

If I click in a "number" stored as "text" cell, I can "edit" the cell and remove an invisible "apostrofe" to the left of the number; after that, the "text" becomes "number" again.

Seems like Excel is inserting a non-visible character before the number, so that it is stored as "text"

It happens to some lines and not to others...

View 1 Replies

C# - Numbers Are Converted As Text When Export Dataset To Excel

Jul 8, 2010

Iam exporting dataset to excel , the numbers on the sheet shown as text when export it to excel. Here is the code:

public class Excel
{
const int rowLimit = 65000;
private static string getWorkbookTemplate()
{
StringBuilder sb = new StringBuilder(818);
sb.AppendFormat(@"<?xml version=""1.0""?>{0}", Environment.NewLine);
sb.AppendFormat(@"<?mso-application progid=""Excel.Sheet""?>{0}", Environment.NewLine);
sb.AppendFormat(@"<Workbook xmlns=""urn:schemas-microsoft-com:office:spreadsheet""{0}", Environment.NewLine);
sb.AppendFormat(@" xmlns:o=""urn:schemas-microsoft-com:office:office""{0}", Environment.NewLine);
sb.AppendFormat(@" xmlns:x=""urn:schemas-microsoft-com:office:excel""{0}", Environment.NewLine);
sb.AppendFormat(@" xmlns:ss=""urn:schemas-microsoft-com:office:spreadsheet""{0}", Environment.NewLine);
sb.AppendFormat(@" xmlns:html=""[URL]
sb.AppendFormat(@" <Styles>{0}", Environment.NewLine);
sb.AppendFormat(@" <Style ss:ID=""Default"" ss:Name=""Normal"">{0}", Environment.NewLine);
sb.AppendFormat(@" <Alignment ss:Vertical=""Bottom""/>{0}", Environment.NewLine);
sb.AppendFormat(@" <Borders/>{0}", Environment.NewLine);
sb.AppendFormat(@" <Font ss:FontName=""Verdana"" x:Family=""Swiss"" ss:Size=""12"" ss:Color=""#0000A0""/>{0}", Environment.NewLine);
sb.AppendFormat(@" <Interior/>{0}", Environment.NewLine);
sb.AppendFormat(@" <NumberFormat/>{0}", Environment.NewLine);
sb.AppendFormat(@" <Protection/>{0}", Environment.NewLine);
sb.AppendFormat(@" </Style>{0}", Environment.NewLine);
sb.AppendFormat(@" <Style ss:ID=""s62"">{0}", Environment.NewLine);
sb.AppendFormat(@" <Font ss:FontName=""Calibri"" x:Family=""Swiss"" ss:Size=""11"" ss:Color=""#000000""{0}", Environment.NewLine);
sb.AppendFormat(@" ss:Bold=""1""/>{0}", Environment.NewLine);
sb.AppendFormat(@" </Style>{0}", Environment.NewLine);
sb.AppendFormat(@" <Style ss:ID=""s63"">{0}", Environment.NewLine);
sb.AppendFormat(@" <NumberFormat ss:Format=""Short Date""/>{0}", Environment.NewLine);
sb.AppendFormat(@" </Style>{0}", Environment.NewLine);
sb.AppendFormat(@" </Styles>{0}", Environment.NewLine);
sb.Append(@"{0}
</Workbook>");
return sb.ToString();
}
private static string replaceXmlChar(string input)
{
input = input.Replace("&", "&");
input = input.Replace("<", "<");
input = input.Replace(">", ">");
input = input.Replace(""", """);
input = input.Replace("'", "&apos;");
return input;
}
private static string getCell(Type type, object cellData)
{
Object data = (cellData is DBNull) ? "" : cellData;
if (type.Name.Contains("Int") || type.Name.Contains("Double") || type.Name.Contains("Decimal")) return string.Format("<Cell><Data ss:Type="Number">{0}</Data></Cell>", data);
if (type.Name.Contains("Date") && data.ToString() != string.Empty)
{
return string.Format("<Cell ss:StyleID="s63"><Data ss:Type="DateTime">{0}</Data></Cell>", Convert.ToDateTime(data).ToString("yyyy-MM-dd"));
}
return string.Format("<Cell><Data ss:Type="String">{0}</Data></Cell>", replaceXmlChar(data.ToString()));
}
private static string getWorksheets(DataSet source)
{
StringWriter sw = new StringWriter();
if (source == null || source.Tables.Count == 0)
{
sw.Write("<Worksheet ss:Name="Sheet1">
<Table>
<Row><Cell><Data ss:Type="String"></Data></Cell></Row>
</Table>
</Worksheet>");
return sw.ToString();
}
foreach (DataTable dt in source.Tables)
{
if (dt.Rows.Count == 0)
sw.Write("<Worksheet ss:Name="" + replaceXmlChar(dt.TableName) + "">
<Table>
<Row><Cell ss:StyleID="s62"><Data ss:Type="String"></Data></Cell></Row>
</Table>
</Worksheet>");
else
{
//write each row data
int sheetCount = 0;
for (int i = 0; i < dt.Rows.Count; i++)
{
if ((i % rowLimit) == 0)
{
//add close tags for previous sheet of the same data table
if ((i / rowLimit) > sheetCount)
{
sw.Write("
</Table>
</Worksheet>");
sheetCount = (i / rowLimit);
}
sw.Write("
<Worksheet ss:Name="" + replaceXmlChar(dt.TableName) +
(((i / rowLimit) == 0) ? "" : Convert.ToString(i / rowLimit)) + "">
<Table>");
//write column name row
sw.Write("
<Row>");
foreach (DataColumn dc in dt.Columns)
sw.Write(string.Format("<Cell ss:StyleID="s62"><Data ss:Type="String">{0}</Data></Cell>", replaceXmlChar(dc.ColumnName)));
sw.Write("</Row>");
}
sw.Write("
<Row>");
foreach (DataColumn dc in dt.Columns)
sw.Write(getCell(dc.DataType, dt.Rows[i][dc.ColumnName]));
sw.Write("</Row>");
}
sw.Write("
</Table>
</Worksheet>");
}
}
return sw.ToString();
}
public static string GetExcelXml(DataTable dtInput, string filename)
{
string excelTemplate = getWorkbookTemplate();
DataSet ds = new DataSet();
ds.Tables.Add(dtInput.Copy());
string worksheets = getWorksheets(ds);
string excelXml = string.Format(excelTemplate, worksheets);
return excelXml;
}
public static string GetExcelXml(DataSet dsInput, string filename)
{
string excelTemplate = getWorkbookTemplate();
string worksheets = getWorksheets(dsInput);
string excelXml = string.Format(excelTemplate, worksheets);
return excelXml;
}
public static void ToExcel(DataSet dsInput, string filename, HttpResponse response)
{
string excelXml = GetExcelXml(dsInput, filename);
response.Clear();
response.AppendHeader("Content-Type", "application/vnd.ms-excel");
response.AppendHeader("Content-disposition", "attachment; filename=" + filename);
response.Write(excelXml);
response.Flush();
response.End();
}
public static void ToExcel(DataTable dtInput, string filename, HttpResponse response)
{
DataSet ds = new DataSet();
ds.Tables.Add(dtInput.Copy());
ToExcel(ds, filename, response);
}
}

View 1 Replies

Databases :: How To Transfer Data From Excel To Another Excel Using .net

Oct 8, 2010

Can you tranfer the data from Excel to another Excel using Asp.net 3.5 without saving it to database.

View 1 Replies

Visual Studio :: How To Upload Excel Sheet In Vs2008 And Save The Excel Data In Sql Server 2008

Mar 9, 2010

I want how to upload the excel sheet data and that data will save in Sql Server 2008(table).

View 2 Replies

Better Way To Large Upload File?

Sep 24, 2010

What is better way to large upload file.using a web service or in application itself.If in application, how can we check that files is to upload in a regular interval.actually i dont want user to wait for complete uploading, when it starts uploading user will get response of uploaded and uploading will be done in backgroud.I am not sure this type of task can be done in webservice also so that user doesnot need to wait for complete uploading.and one more query which event fires when the page redirects to another page.Is it Page_UnLoad or Dispose

View 1 Replies

Databases :: Cannot Make Connection While Uploading Large Amount Of Data

Mar 6, 2010

have developed a Asp.net application which uploads data from Excell Sheet and then Inserts those data after doing several Checks to the Mysql data base.The Issue which Iam facing is that when Iam uplading lage amount of data at a time say around that 10000, the application crashes and gives the Unable to Open connection to server Error.The same app works well 1000-2000 data.

View 1 Replies

How To Upload More Than One Large Images At Same Time

Jun 28, 2010

internet Explorer cannot display the webpage when trying to upload a large image.I have a webform for inserting images. There are four FileUpload controls on the page, allowing the user to upload 4 images at the same time. It inserts them directly into database, in Image field, but before that I am resizing them to 200px x 160 px.

The problem I am having is as follows: If I try to upload larger images (over 2MB), one at the time, everything goes fine. But if I try to upload 2 or more larger images at the same time, I get the message: Internet Explorer cannot display the webpage, and there is a button below: Diagnose Connection Problems.

Can you please point me to what could be an issue? It obviously has something to do with the image size, but I have no idea what.

View 2 Replies

Upload Large Files On Webpage?

Feb 11, 2011

We use the MojoPortal to a website and have some problems to upload files that is around 100 MB with the upload module. (Pleas note that this has probably nothing to do with MojoPortal but with the ASP.NET and the IIS)

The MojoPortal is set to use regular file Upload(not Neat Uploader) and to be able to upload big files we have set the following :

<httpRuntime maxRequestLength="2097151" executionTimeout="18000" requestValidationMode="2.0"/>

And :

<compilation debug="false" defaultLanguage="C#" targetFramework="4.0">

The problem is that the upload will cacel after a couple of minuts (Aborted).

Is there any other values that I need to set to make this possible? The MojoPortal itself should not have any settings for this as far as I know so its regular ASP.NET 4.0.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved