Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default How do you code to get SQL Server data from ODBC Connection?

Hello,

I have an Excel application that I've written that is on a local network.
It retrieves SQL Server data by creating a connection using
"Provider=SQLOLEDB;".

It is working so well, they wanted me to create a vpn and let other offices
(physically separate buildings) use the application.

I've created an ODBC that accesses the data via the vpn.

However, I'm not sure of the syntax to retrieve SQL Server data via an ODBC.
I've been googling for awhile now. I haven't found an example of querying
on a SQL Server in VBA code via ODBC.

Anyone know the syntax to create an ODBC connection to SQL Server from Excel
2007?

Thanks.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Microsoft][ODBC SQL Server Driver]String data, right truncation Nuno Gomes Excel Programming 0 February 18th 10 01:41 PM
Changing and Adding data through ODBC connection Bob Excel Discussion (Misc queries) 0 November 3rd 08 05:04 PM
Excel ODBC Data Connection jerm Excel Programming 2 January 19th 07 03:41 PM
ODBC Connection Adrian T[_4_] Excel Programming 4 January 25th 05 08:55 PM
ODBC connection for insert into SQL Server nevada Excel Programming 1 February 23rd 04 04:14 PM


All times are GMT +1. The time now is 12:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"