SQL 2000 & Excel 2007 format

  • Hi,

    I need to export a report into an excel file from SQL 2000 which contains more than 65k records.  Is there a way to make SQL 2000 server be able to do it in Excel 2007 format so to make use of 1Mln rows limit instead of 65k?

    Thanks.

  • Thanks, but I already have a solution which breaks data into separate worksheets, which is a great CPU killer, so I want to find a way to dump everything into one Excel 2007 worksheet.

  • can't you simply export as comma or tab delimited, but name the the file xls so that it will open in the expected program? I know I do that all the time and it works fine, as some of the datasets I work with (census tracts) are often more than 65535 rows of data.

    For that matter, why not just name the files .txt so if you opent he file with a default program, data would not be hidden the way it is in Excel. You mentioned an excel Report...Are you opening a template and inserting data with an excel driver, and that is why you need to stick to using excel formats? I know if you write data to an HTML format, but make the extension .xls, Excel will open the file and maintain all fonttype/size/itealic/bold/borders/underline that is contained in basic 4.0 HTML, as well as keeping other styles if the css is available. that might be another option...write the report as html and give a diff extension.

     

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • You could create a target spreadsheet in Excel 2007 and an ODBC DSN to it.  It seems a bit flakey though.

    You can also create an XML document and give it an xls file extension.  Excel 2007 will figure this out.

    If you want to be really tricky, the Excel 2007 (and all office products for that matter) are stored in a zip file as xml documents.  Change an Excel 2007 document's extnsion to .zip to see what I mean.  The format is easily reproduced and MS has published the details on the msdn website.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply