Databases :: Working With Data From .csv File?
Feb 17, 2010i am working on a project and i have the data in a .csv file.
i want to know how can i retrive data from the .csv file? which control should i use that would have that function?
i am working on a project and i have the data in a .csv file.
i want to know how can i retrive data from the .csv file? which control should i use that would have that function?
I need a code which can export the data from XML file to the Excel file.
View 3 RepliesI have a project using vb.net with mySql and mySql.Data.dll as a link to the database. Now when I test my website from local computer and with live server connection string all works fine. The thing is, when I upload my files to the server, it gives me an error Object reference not set to an instance of an object.I have copied the mySql.data.dll file to the bin folder of my domain and the query that gives the error is a basic insert statement that works from the local machine to the live database.
View 1 RepliesI am trying to test website on a remote server to see if I can read or write to a MySql Database.In VS Web developer 2010 Express edition, I created a new website and saved it via ftp on the remote host. I have added the 'Mysql.data.dll' to the website and placed it in the bin directory of the project.When I try to run the program i get "Could not load File or assembly MySql.Data, Version=6.3.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
[Code]....
The remote server supports .Net v2, so I have made my application focused on v2 framework. I have tried similar code on my local machine and works fine.
website using text file to store data and display it using html codings. The requested website must be able to do the following functions:
1) Browse for template using txt file and select the txt file as template. (Font-styles, headers, tables....etc)
2) Browse for txt file that stores the data and display them in a so called table format categorized properly.
3) Able to do a search function and store the search results in a new txt file. (Which means a new txt file is created everytime someone performs a search and the search results is stored in the new created txt file)
Is there any website with informations/tutorials on these?
How to read xls file data and store in sqldatabase...
View 1 Repliesi have one task. i store the table records in tab delimiter then i want read that txt file data's line by line via asp.net application codebehind file after that i want insert into another table
[code]...
As I am working on Employee Management system, I have two table (for example) in database as given below.
EmployeeMaster (DB table structure)
EmployeeID (PK) | EmployeeName | City
MonthMaster (DB table structure)
Month | Year | EmployeeID (FK) | PrenentDays | BasicSalary
Now my question is, I want to store data in file system rather than storing data in SQL or ORACLE.
I want my data in file system storage for Insert, Edit and Delete opration with keeping relation with objects too.
I am a C# developer, Could anybody have thoughts or idea on it. (To store data in file system with keeping relations between them)
I able to convert csv file to dataset in C# using OleDbConnection , but i would like to convert without using OleDbConnection.
View 1 RepliesI am working on a C# web application under visual studio 2005.
I want to import data from text file or excel file into a SQL 2005 database.
I have 3 columns in the text file separated by |, example of the text file format:
1|11122222|Name1
2|22299809|Name2
how to import data from text or excel file?
I am trying to fetching the data from Book1.xlsx file. The program is not working and throws an exception. check the code and tell me where I am doing the mistake?
[Code]....
The exception is:
An error: The Microsoft Office Access database engine cannot open or write to the file ''. It is already opened exclusively by another user, or you need permission to view and write its data.
1) I need to make reading CSV file from the fileupload and then retrieve the data.
2) I need to load CSV and the 3 columns rise two functions.
Load CSV data and then stored in a database, but I need to save storage space vary according to 3 column.
CSV Example:
1 column - Cat, 2 column - Black, 3 column - 1
1 column - Dog, 2 column - Brown, 3 column - 2
1 column - Cat, 2 column - Black, 3 column - 1
1 column - Dog, 2 column - Brown, 3 column - 2
Now I need to load the CSV in C # and column 3 to distinguish what the operation is carried out.When the load line in column 3 contain the value 1, so will save the table 'Cats' when the value 2 and is saved in the table "Dogs".(Note: Data are separated ";")
I have an Excel file called Products.xls .I have Columns A and B, with the titles NAME and QUANTITY.The name of the sheet is SHEET1.The file has about 40 lines.How do i show these data on a Gridview or Listview ?
View 4 RepliesI want to load the data from an EXCEL 2007 file to SQL Server 2008 database. I am geting following error.
The Microsoft Office Access database engine could not find the object 'Sheet1$'. Make sure the object exists and that you spell its name and the path name correctly.
Following is the complete source code. Kindly any senior member guide me what is the problem in the following code.
[Code]....
I am trying to export a grdview to an Excel file but I am getting this error and i suspect
the error has something to do with the fact that the code is on a CONTENT page and not web page:
[Code]....
Here is my export code:
[Code]....
So I trying adding this code to avoid the error but this has a problem with a content page:
[Code]....
[Code]....
i like to create a web application,in that i need to get the resumes from the user,then i need to publish that resume to the manager in date wise..
View 5 RepliesI can't get my profile providers (supported databases are SQL Server and MySQL) working if I use DSN in connectionstrings like "dsn=dsnName;User ID=userif;Password=psw;". Profiles are working fine with "normal" connectionstrings.
View 2 Repliesi'm using MySql 5.1 and trying to install .Net connectors versions 6.2/6.1/6.0 none of these are working(not installing).
View 1 Repliesi want to develop a data access layer ,it can support multiple database like oracle ,Mssqlserver and Mysql using enterprise library and C#.net 3.5 based on database connection
View 1 RepliesWe have an Oracle 11g database with two nodes. On occasion, one of the nodes goes down and for some reason one of my applications starts throwing this exception:
Error Message: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because
all pooled connections were in use and max pool size was reached.
at System.Data.OracleClient.OracleConnectionPoolManager.GetPooledConnection(String encryptedConnectionString, OracleConnectionString options, OracleConnection owningObject, Boolean& isInTransaction)
at System.Data.OracleClient.OracleConnection.OpenInternal(OracleConnectionString parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
Out IT group says that this is a program bug because the failover isn't working, but I am thinking that this is a function of the database.What is the cause, and if it is an application bug, what can be done code-wise to fix this problem? The connection string doesn't specify a particular node.
If Not IsDBNull(ext) Then
ext = LCase(ext)
End If
Select Case ext
'Case ".htm", ".html"
' type = "text/HTML"
'Case ".txt"
' type = "text/plain"
'Case ".doc", ".rtf"
' type = "Application/msword"
'Case ".csv", ".xls"
' type = "Application/x-msexcel"........................
I am validating user from Login.xlsx file. It was working fine by validating email and password from that file. For testing i got new file same contents of file but added some more user names. So after that when i validating the user i am getting the following error "Data type mismatch in criteria expression".
But when i replaced the new to old one it is working fine. The contens of both files are the same. So why this kind of error happened.
I have the following code:
[code]....
What's happening is when I try to upload a file, it tells me that everything is fine but when I look in my database, there is no data there. What am I missing? This worked before but we had to move this to another directory on the server and after we did that, the bulk insert function seems to be broken, though the server isn't returning any kinds of errors.
Until the Dec 29th my website was working fine. Then My fileupload problems started happening. My fileupload page would simply quit and say the page can not be found. I maximized all my timeout settings and that did not work. I called my hosting company and apparently they have no problem using my page to upload files from their geographical area. So then I concluded it might be a network problem. I ran a trace route and could not really figure out where the problem was. So, I have no idea what is going on. Is it possible that my site is being blocked by some black list out there somewhere?
View 3 RepliesI am trying to export my GridView info to a readable csv file. Unfortunately, attached is what is shown. Under the Date column, a few dates show up (8/9/2010) but when it switches to 8/10/2010 -8/31/2010 it only shows ######, BUT when I move the mouse over the #######'s it shows the date in the little box thing.
I have this code:
protected void btnExtractCSV_Click(object sender, EventArgs e)
{
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.csv");
Response.Charset = "";
Response.ContentType = "application/text";......