Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update SQL Server with MS-Excel

Status
Not open for further replies.

sasa888

Programmer
Oct 15, 2001
131
0
0
US
Hi all, I have never done this before. Is there a way to use Ms-Excel connect to SQL server and the add rows into a table within SQL Server? Thanks for your helps in advance.
 

Hi,

Set a reference in the VB editor to MS ActiveX Data Object Object Library.

Set a connection and recordset object.

with the recordset object you can add and update.


Skip,
[sub]
[glasses] [red]Be Advised![/red]
A wee deranged psychic may be runnin' around out there!
SMALL MEDUIM @ LARGE[tongue][/sub]
 
Hi Skip, do you have any example that I can follow? Thank You!
 
Check out VB help on ADO.

Also has some how-to and other examples.


Skip,
[sub]
[glasses] [red]Be Advised![/red]
A wee deranged psychic may be runnin' around out there!
SMALL MEDUIM @ LARGE[tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top