Code to call MS SQL Server 2000 SP

Hi Champs

I am .net developer and working on pivot tables/excel right now.

I am in position right now that i need to write code to call MS SQL 2000 SP in VBA code.

Can u please send me code for this and also any good site for getting VBA code help.

Thanks,



Answer this question

Code to call MS SQL Server 2000 SP

  • karabo

    Hi,

    You need to use ADO to access stored procedures in SQL Server from VBA. If your used to working with ADO.NET then you should have no problems using ADO. Look at the ADODB.Command and ADODB.Connection objects, very straightforward.

    Sorry I have no code to demonstrate.



  • Code to call MS SQL Server 2000 SP