![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
It's more like an Excle/office related issue that you should post in Excel newsgroup. |
|
Based on my experience, after you create a connection to SQL Server in Excel "Data" tab, and you click "Existing Connection"->Open In "Import data" dialog, click Properties->Definition, and select "Edit Query" you shall be able to edit the query. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
From your description, I understand that you would like to use ODBC to import the database from SQL Server into Excel. however when result sets of 18000 sets of 18000 rows and 50 columns, the following error comes out. If I have misunderstood, please let me know. Error =========== Protocal error in TDS stream |
|
Based on the current information, it seems that the issue might be a known-issue, I would like to re-porduce it. So, if it is convenient to you, please send an email to me. my email address is v-fathan (AT) onliesadfn (DOT) microsoft.com(remove onliesadfn) |
|
Besides, in order to resolve the issue, please update the ODBC driver. please download MDAC 2.8 via the following and install it http://www.microsoft.com/downloadS/d...fe3-c795-4b7d- b037-185d0506396c&displaylang=en |
#6
| |||
| |||
|
|
In "Import data" dialog, click Properties->Definition, and select "Edit Query" you shall be able to edit the query. There are two problems with this. 1. This option allows users to import the WHOLE result set without going through the GUI wizard first. It's very unintuitive too. 2. The "Edit Query" button is grayed out in my tests on existing connections, not sure why. |
#7
| |||
| |||
|
|
Hello, In "Import data" dialog, click Properties->Definition, and select "Edit Query" you shall be able to edit the query. There are two problems with this. 1. This option allows users to import the WHOLE result set without going through the GUI wizard first. It's very unintuitive too. 2. The "Edit Query" button is grayed out in my tests on existing connections, not sure why. After further testing, I think I know why the "Edit Query" button is grayed out in #2 above. There are different ways to import data from SQL Server into Excel: 1. Using ODBC and MSQUERY (this gives the GUI option we need) 2. Using ODBC without MSQUERY (only able to import WHOLE table) 3. Using OLEDB without MSQUERY (only able to import WHOLE table) It seems you only get offered the "Edit Query" button when you use an ODBC connection, it is not offered for OLEDB connections. If you click the "Edit Query" button, it invokes MSQUERY and you end up with the EXACT same limitation and error messages. I created a test database with 20,000 rows and 200 columns. I can import the whole thing into Excel using OLEDB or ODBC, but as soon as I try to use MSQUERY to choose fields, sort and filter, it FAILS. I can, however, use MSQUERY to import 20,000 rows and only 3 columns... -- Gerry Hickman (London UK) |
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |