Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Location of SQL in an external data connection

I have a range that is populated with data from SQL Server when I invoke the
ActiveWorkbook.RefreshAll method in code.

Now I want to modify the SQL behind the query, but I can't see how to expose
it in my Excel 2007 worksheet.

(I'm sure this was easy in 2003, but seems to be hidden by 2007's Ribbon of
Confusion.)

Thanks,
Al

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Location of SQL in an external data connection

(This works for 2003, but should also work in 2007?)

If you right click in the area where the data returned by the query are,
there should be an entry like "Edit Query...". That should open the Query
Wizard, and at the end of all the "Next" buttons, there should be an option
to open the query in the MS Query Editor. When you get to that, you can
click on the SQL button to get a look at your SQL.

HTH,

Eric

"Allen_N" wrote:

I have a range that is populated with data from SQL Server when I invoke the
ActiveWorkbook.RefreshAll method in code.

Now I want to modify the SQL behind the query, but I can't see how to expose
it in my Excel 2007 worksheet.

(I'm sure this was easy in 2003, but seems to be hidden by 2007's Ribbon of
Confusion.)

Thanks,
Al

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
Excel 2010 (64 bit) External Data connection with Access Bill Carlson Excel Discussion (Misc queries) 0 June 2nd 11 12:10 AM
External data connection needs separate login for each query MikeP Excel Discussion (Misc queries) 1 December 8th 08 07:29 PM
Problem getting external data using an existing connection Sharon Dickinson Excel Discussion (Misc queries) 0 December 12th 07 04:16 PM
Connection to external data sources in Excel Thomas Wellington Excel Discussion (Misc queries) 0 March 1st 07 05:44 PM
Problem: Residual query data? Closing external connection? dule[_8_] Excel Programming 0 March 5th 04 04:38 PM


All times are GMT +1. The time now is 06:22 PM.

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

About Us

"It's about Microsoft Excel"