Save data from XLS,XLSX,CSV files to sqlserver2005

  • Hi all,

    i am using jquery ajax and asp.net(C#) to save data from xls,xlsx,csv to sqlserver2005.

    OR

    simple using Asp.net(C#) and sqlserver2005(with out jquery)

    how it could be?

  • You should use SSIS for these tasks. It is a very efficient tools for these kind of tasks.

    You can get more information here:

    http://www.techrepublic.com/blog/datacenter/how-to-import-an-excel-file-into-sql-server-2005-using-integration-services/205

    P.S. The example given in this article if for importing data from excel to SQL Server, however similarly you can do the same for csv also.


    Sujeet Singh

  • Duplicate Post...

    http://www.sqlservercentral.com/Forums/Topic1221358-338-1.aspx

  • i have written code and is working fine..now the issue is when i am using to upload to server not on local,then i am geting this error

    The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.

    any help?

  • engrshafiq4 (12/14/2011)


    i have written code and is working fine..now the issue is when i am using to upload to server not on local,then i am geting this error

    The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.

    any help?

    You need to install the ACE provider on the server. Download link is given below:

    http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=23734

    Read more here[/url].


    Sujeet Singh

  • i am using discountasp.net server and i got a responce from admin that they do not allow bulk insertion.so what i do now?any other solution?

  • engrshafiq4 (12/14/2011)


    i am using discountasp.net server and i got a responce from admin that they do not allow bulk insertion.so what i do now?any other solution?

    They (who?) do not allow bulk insertion ?? I didn't get you.

    What is the actual problem? Could you please tell in detail what you are trying to do & why ?


    Sujeet Singh

  • engrshafiq4 (12/14/2011)


    i am using discountasp.net server and i got a responce from admin that they do not allow bulk insertion.so what i do now?any other solution?

    Use SSIS. It comes with SQL Server and it is free if you install it on the same server. And it is made especially to do the tasks you are trying to do.

    Do not re-invent the wheel...

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • If the DBAs don't allow bulk insert or ad hoc queries, which is a common security measure, then SSIS is your best bet.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • i am using ACE provider to insert bulk data from my web application to sqlserver.and the server do not support ACE provider.

  • engrshafiq4 (12/14/2011)


    i am using ACE provider to insert bulk data from my web application to sqlserver.and the server do not support ACE provider.

    Everybody has suggested you to use SSIS. If you have not used SSIS for these tasks earlier, this is the right time to do it.


    Sujeet Singh

  • Hi,

    i am using asp.net web application to to upload/save data....now the question is that i can not use SSIS in asp.net.i do not want to use sqlserver alone.i need a replace of

    Provider=Microsoft.ACE.OLEDB.12.0;

    in my conection string

  • engrshafiq4 (12/14/2011)


    Hi,

    i am using asp.net web application to to upload/save data....now the question is that i can not use SSIS in asp.net.i do not want to use sqlserver alone.i need a replace of

    Provider=Microsoft.ACE.OLEDB.12.0;

    in my conection string

    I'll spell it out for you:

    n.o. a.s.p.n.e.t.

    u.s.e. s.s.i.s. i.n.s.t.e.a.d.

    And install the ACE and the JET provider on the server, SSIS will need that too.

    If you install the 32-bit version of ACE, make sure your solution (whatever it is) also runs in 32-bit.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • engrshafiq4 (12/14/2011)


    i am using ACE provider to insert bulk data from my web application to sqlserver.and the server do not support ACE provider.

    Then you'll either need to use a different provider, or a different solution.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • yes i read xlsx file as xml and passed it to store procedure...i am getting another issue,which i asked here

    http://www.sqlservercentral.com/Forums/Topic1222331-338-1.aspx

Viewing 15 posts - 1 through 15 (of 15 total)

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