SQL Server :: Export To Excel In Store Procedure And Transfer To Web Server?

Jul 23, 2010

I have a large dataset (35,000+ rows) that I need to export to excel and then let the user download. I have done this the conventional way (with a gridview), but the data has grown, causing a OutOfMemoryException on the web server.

So I thought, would it not be better if I can export the data into excel on the sql server, and then transfer this data to the web server.

Note that this is not a one-off job. This will be ran regularly (twice a month), but the user. Hence I need something that the user can initiate.

View 1 Replies


Similar Messages:

SQL Server :: Insert Gridview's Multiple Rows Into Sql Server Through Store Procedure?

Jan 23, 2011

Actually I have a gridview with many rows and I want to insert the all rows in sql server through one store procedure first row can inserted but what should we do for other rows

View 3 Replies

Calling SQL Server Store Procedure WITHOUT Any Server Scripting Language?

Mar 13, 2015

i have a sql server store procedure which return json data. i want to get this data without .net framwork or php or any other server side language..

So how make this possible to get json data of sql server query through any client scripting language like jquery ajax method.

View 8 Replies

How To Export Results In Sheet To Excel Without Installing Excel On Server

Sep 22, 2010

We are deveopingawebiste in asp.net. There are tempelates of each aspx page made in the form of excel sheet. Upon completion of the online calculation, the user is to be allowed to export the results to excel and save them. There would be obviously no formulae in such sheet

I do not want to install Excel on theserver and instead want to utilize the Excel installed on the user's computer for this purpose as every user's computer is expected to have Excel installed. Is this possible to do? How to do this?

I am not an expert in this. let me know if you would need any more information or clarification.

View 2 Replies

How To Generate Excel Report On Server Side And Transfer It To Client

Dec 7, 2010

Im newbie in asp .net, and maybe for asp this task can be solved different way... but...

i have winform application with method to generate excel report, now i want to transfer this to asp .net.

User click button and on the server side start method (generate excel report to temp file), then ready temp file transfer to client side. That's how i imagine this process in asp .net. There's no problem to transfer file from server side to client. Problem in process of generation excel report. Excisting code doesn't work, because excel application must be started and visible and how can i do this on server side?

Maybe this is absolutely wrong way and such things doing different way?

View 1 Replies

SQL Server :: How To Export To Excel

Sep 2, 2010

I have an SQL Server 2005 database on a hosted site and I need to export the data to and Excel or Access file. I only have the express version of SQL Server Management Studio. Is there a way to do this?

View 5 Replies

DataSource Controls :: Store Procedure SQL Server?

Feb 8, 2010

I had a little problem with the value that one of my SPs returns. In my SP, I create some temporary tables to store certain data from multiple tables and contains some queries for an advanced calculationBut precisely yesterday, the value that the SP returns was incorrect. I tried to look at the SP and the data again and everything was OK, but not the result from the SP.And what the heck!!..today the value is totally right ...I truly have no idea what's wrong with the SP..Is there anyone knows what the root of cause is?

View 4 Replies

SQL Server :: Want To Export Data From Excel

Jan 11, 2011

i hv a upload btn on my web page . i want on upld of excel sheet data get transfr to tbl student in sqlserver 2005 hv following fields

adno primary key,

sname

smob,

semail etc.

View 3 Replies

SQL Server :: Date Additions And Calculation Within A Store Procedure?

Oct 12, 2010

is there a function for adding days to a date value within a stored procedure?If I had a field with a start date and a field for duration which would be how many days the even lasts....like if I wanted something like this:TableName.StartDate, DateAdd(TableName.StartDate, TableName.Duration) as EndDate, etc

View 4 Replies

SQL Server :: Open A Batch File In Sql Store Procedure?

Sep 29, 2010

I have to open a batch file automatically in sql. So i have used the below command.EXECUTE master.dbo.xp_cmdshell 'D:Databasesatch123.bat'Its worked for few times. After that its not working.One time i have stopped before the process is complete.May be this is the issue.Now its returns null value.

View 4 Replies

How O Export Data From SQL Server To Excel File

Apr 26, 2010

I have tried using GridView control to display the data from SqlDataSource control but there are just so many columns and one of the fields contains a lot of texts so using GridView control to display the data does not look look since it goes out of the master template. I have tried using GridView control to display my data and use the following code to export as Excel but in case, there are just so many columns.

[Code]....

What are some other better ways to export to Excel file from my web page?

View 4 Replies

Export To Excel Sheet Is Not Working On IIS Server

Dec 12, 2012

I am using the following code for exporting into excel sheet. It works when i run form my visual studio. But when i run from server,excel is not getting generated.

Code:

Session("S_BID_ID") = "SI12110031"
Session("S_SUBBID_ID") = "0"
connStr = ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString
conn = New System.Data.SqlClient.SqlConnection(connStr)
conn.Open()

[Code] ....

View 1 Replies

SQL Server :: Store Procedure Parameter Sequence Change In Runtime?

Oct 26, 2010

this is my code:

[Code]....

some of my col datatype is nVarchar...

in run time because my value in my table (dt_excel_allRows) are FARSI ; the sequence of my parameter changed and it cant be executed!!!!!

of course the problem is because of FARSI is rtl languges....

i can not user sqlPArameter becuse of some reason....

i think some thing like rtl or ltr can fix my problem....but how?

View 2 Replies

Configuration :: Export / Import Excel Not Working In Server?

Jul 1, 2010

In my .net 2.0 application, i have used export / import excel option. In local, its working perfectly but in server i am getting the below errors,

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

[UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.]
repClaim.Button3_Click(Object sender, EventArgs e) +337
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

I searched solutions for google and even in this forum, the following link also i applied but no use, still same error

[URL]

My application is running in IIS 7.0 with DefaultAppPool. In my web.config, i have used this authentication,

<authentication mode="Windows"/>

View 3 Replies

SQL Server :: Creating Store Procedure - How To Insert The Primary Key From The Product_Table Into The foreign Key

Aug 28, 2010

I have two tables. Product_Table with ProductID as the primary key. My other table, ProductSKU_Table which has SKU as the primary key and ProductID as the foreign key. I am trying to create a store procedure to insert into both tables. How do I insert the primary key from the Product_Table into the foreign key of the ProductSKU_Table? This is what I have so far:

[Code]....

View 15 Replies

Export Data From Excel 2007 Sheet To SQL Server 2005?

Dec 27, 2010

I have a web application (ASP.NET 3.5) that allows the users to upload their own excel sheet. This sheet contains information about items that needs to be inserted to SQL Server 2005.

I already have this functionality, however, it's very slow (it takes almost 20 minutes to finish the request). I need a better way to handle this problem.

The sheet contains information about an item. These properties will be inserted into multiple tables for example (Books, Authors, Titles ... etc ...).

What I'm currently doing is the following:

The user uploads the file. The application opens the file. Read each row and update the database accordingly.

I'm using Microsoft.Office.Interop.Excel

Edit: I'm working with 10.000+ rows per sheet.

View 4 Replies

DataSource Controls :: Export Data From Sql Server Table To Excel Sheet?

Jan 13, 2010

I am developing a Standalone Application where i have to exprot data from sqltable to excelSheet..

View 6 Replies

Web Forms :: Export HTML Table To Excel - On Windows Server 2008?

Jul 23, 2010

I am exporting HTML table/Repeater to excel, its not working on Windows server 2008, however same working on Windows Server 2003 and local machine

[Code]....

I have debug on Windows Server 2008, I am getting the same string that is on my local machineResponse.Write(sw.ToString()); but nothing wrote on my file and not getting any errorI have tried hard but not able to figure out the issue

View 1 Replies

Web Forms :: Export Data From Web Into Excel And Save The File On Server On Disk?

Aug 20, 2012

i want to export an excel from my web application and want to save it on Web Server, but i am not able to save it on web server, i am able to do it on my local machine, but on web server it's not working.

View 1 Replies

DataSource Controls :: Store Procedure - Global Temp Table Cannot Create In SQL SERVER AGENT?

Apr 20, 2010

I have setup a job in SQL Server Agent which run a store procedure.

[Code]....

After the job excuted, the temp table have not been created.

If I type "exec data_syn_ClearAllEposData". The temp table has been created.

Global Temp table cannot create in SQL SERVER AGENT?

View 8 Replies

C# - Is It Safe To Use Server.Transfer() To Transfer A Request To A Static Image (.jpg - .png)?

Feb 8, 2011

I have a class which implements IHttpHandler that is designed to handle image resize requests. It handles Urls like so [URL] Currently the handler looks for myimg.jpg on disk, cuts a 100x100 thumbnail (if it isn't already present) and redirects the client to the thumbnail like so Response.RedirectPermanent("/some/virtualPath/to/thumbnail.jpg");

This has been working great, but I would like to avoid forcing the client to issue a second HTTP request. Is it safe to do the following? Server.Transfer("/some/virtualPath/to/thumbnail.jpg") All the MSDN documentation talks about using Server.Transfer() to redirect to an aspx page, so I'm not sure if this is the right thing to do or not.

View 1 Replies

DataSource Controls :: How To Transfer Data From Development Server To Production Server

Jul 8, 2010

how to transfer my data from devlopment server to production server ,i have already records exist in my database if i go for script then how can i transfor record in script i can transfor only table ,procedure and views.I am using SqlServer 2005.

View 2 Replies

C# - Server To Server File Transfer Without Any User Interaction?

Feb 16, 2011

I would love to create a "daemon" which in specified time intervals will move-transfer any zip files uploaded by the users from a.example.com to b.example.com

From the info i gathered so far,

The daemon will be an .ashx generic handler. The daemon will be triggered at the specified time intervals via a plesk cron job The daemon (thanks to SLaks) will consist of two FtpWebRequest's (One for reading and one for writing).

So the question is how could i implement step 3?

Do i have to read into to a memory() array the whole file and try to write that in b.example.com ? How could i write the info i read to b.example.com? Could i perform reading and writing of the file at the same time?

No i am not asking for the full code, i just can figure out, how could i perform reading and writing on the fly, without user interaction.

I mean i could download the file locally from a.example.com and upload it at b.example.com but that is not the point.

View 8 Replies

Forms Data Controls :: Export Gridview Data & Save In Excel File On The Server

Mar 31, 2010

I have code to export the grid to excel . i have taken it from [URL] now i want to save excel file directly without asking user to save it or open it at client side. i want to save it on server folder. how to do that .

View 2 Replies

How To Transfer Data From A Page In One Server To Another Server

Mar 20, 2011

i have two servers s1 and s2

In s1 we hav an aspx page called test1.aspx

In s2 we hav an aspx page called test2.aspx

In test1.aspx i have a textbox and a button. I enter data in textbox and click the biutton.

Now the data that has been entered should be shown in a label in test2.aspx

test1.aspx and test2.aspx are in two servers...so how to do it ...

View 3 Replies







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