Solved

Editing parameters of a connection file, but "edit query" is grayed out

Posted on 2015-02-05
6
1,649 Views
Last Modified: 2015-02-10
I try to edit the query in a connect file in Excel, but the "Edit" button grayed out.
How to activate this button?

Thanks,

Jennifer
0
Comment
Question by:jfz2004
  • 4
6 Comments
 
LVL 13

Expert Comment

by:Mark Bullock
ID: 40595236
Try this:
Right click on any cell of the Query output and go to Data > External Data Properties.  Click on the Connection Properties button and then your query will appear under Connection string of the Definition tab

Or this:
create a new query starting with Data tab | Get External Data group | From Other Sources dropdown > From Microsoft Query
0
 

Author Comment

by:jfz2004
ID: 40598315
Thank you!

I tried. And I can get the Connection string of the Definition tab without any problem.
The only problem is the "Edit" button on the definition tab is grayed out. So still need help.
0
 

Author Comment

by:jfz2004
ID: 40598329
I tried to create a new data source and chose SQL Server Login. But the drop-down list dores not have the server name I want to connect. Yet I can use SSMS to connect to the SQL Server.
Please help. Thanks a lot.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 18

Accepted Solution

by:
Simon earned 500 total points
ID: 40600891
The SQL server name may not appear if the SQL browser service is not running. Try typing the name of the server (if it is the default instance on the server that you want to connect to).

I think you can use the 'edit' button to edit the query for MS Query type connections. i.e. those that you have stared using the 'From other data sources/Microsoft Query' option. Such queries show 'Database query' at the top of the definition tab. You can still query SQL Server data via this option.

If you choose the 'other data sources/SQL Server' option, you have to edit the query in the 'command text' box below the connection string box. You can't edit the query using MS query. that is why the 'Edit' button is disabled.
0
 

Author Comment

by:jfz2004
ID: 40601021
Thanks a lot. Let me try what you stated here.
Jennifer
0
 

Author Comment

by:jfz2004
ID: 40601437
here is what I did:

1. In a blank Excel, I click "From Other Sources";
2. Then choose "From Microsoft Query"
3. In "Choose Data Source" box, I choose the right database;
4. Then choose the table and columns via MS Query.
5. And it worked. I see the EDIT button shown.

Thanks a lot.

Jennifer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Enable Clear Text in Win 8.1 7 41
TFS Branching 4 71
Having Trouble with MS Access 2010 CommandBars 19 91
Issue testing the Class Library 4 48
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now