I have some reports in my web application, there are such 6 reports in which data came from database , by some logic I added data rows and some dummy rows in beteen data rows like blank rows and heading of bunch of data rows like that so finally we get output as we want. Now i have to export all reports into excel sheet where each reports (all 6 reports) should put in different sheet in excel workbook. I can do for one report in which i just give HTML Table and render it in to .xls file but i dont know how to render second report in second sheet in same excle file.
I know if i have dataset we can put each datatable in dataset in different sheet but i can't use dataset or datatable because in reports depending upon logic i added dummy rows So i have to find the way to add HTML table in different sheets of same excel workbook
I have a page that import data from an excel sheet and I'm facing a weird problem. The sheet has 47 columns and over almost 72,000 rows. In my workstation I can import the data without problems and I have Office 2010 installed. In the server I have installed AccessDatabaseEngine for Office 2010 and when I try to import the data I receive the following error: The external table is not in the expected format. Rememberring I'm import the data to the same database. But when I break this excel file in files with less rows, it imports without problems.
"The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. The provider did not give any information about the error. Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)"."
I am running SQL 2005 on Windows SBS 2003 server.
Also on solution 3 you running the below sql query
Do i need to run it on the master database or on my database?
USE [master] GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1 GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1 GO
i am binding a gridview through a query like select * from table, But i am not showing all fields in gridView. Only few fields i am showing in gridview. Now I want to import data to a excel sheet. i want to import data showing by gridview and also which is not showing by gridview. i meant all fields in database table should import to excel sheet.
I am having a drop down list box which list the table in the particular database. Consisder the table TBl_Admin which have two columns (UserID, Name). I having a excel which contains some list of records with the column userid and Name.
When i choose this excel file and press upload, i need to insert the records found in the excel to the table TBl_Admin in the database.
I am developing web application using csharp.How can I select details from Microsoft Excel sheet without writing sheet Name? At the moment when selecting details from Excel sheet I specify Excel sheet name like below I am using Payments$. Is it possible to use a number or something else.
I have a requirement that , i have a table of 400 columns.Here i need to Export this table to Excel sheet.And i need to upload to Open Office Sheet. I do not have MS-office.This is in ASP.NET and C#.NETI am new to this concept.And friends there is a problem , i have 400 columns , which is not possible to insert into Open Office Excel , i need to insert other columns into new sheet
I am having Excel Source Which needs to be imported into Sql Server Table using SSIS.In the Excel Source I dont have Month and Year Column.But in Table I have Month and year column and both the columns are Primary Key columns.So i am not able to Import data from Excel to Table.So is there any possiblities to add Columns Dynamically in Excel source inorder to get the Year and Month.
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.
i am Using sql server 2005. i want to copy the data of the excel file to the table.
i wrote the query like :
INSERT INTO test(empId,empName,empMailId,empContactNo) SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C: estExcel.xls', 'SELECT * FROM [Sheet1$]')
got the following error :
SQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Ad Hoc Distributed Queries' by using sp_configure. For more information about enabling 'Ad Hoc Distributed Queries', see "Surface Area Configuration" in SQL Server Books Online.
then did this
sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Ad Hoc Distributed Queries', 1; GO RECONFIGURE; GO
again am trying the same above query ,now am getting the following error:
Msg 7399, Level 16, State 1, Line 1 The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" reported an error. The provider did not give any information about the error. Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".
i want to copy the data of the excel sheet to the table.
I have an C# ASP application I am writing that needs to have the capability to import a generated excel or a comma delineated sheet each day. A clerk will have this job each morning so it doesn't need to be automated. My problem in trying to understand the solution to this is that the 1 sheet contains loan information, including customer information all in the same sheet. I would like to send certain columns to update information in the loan table and send other information to update the customer table. I need it to create relationships when new loans appear in the spreadsheet.