# Error in cross platform query 4206 'Invalid data source definition:'

**URL:** <https://forums.toadworld.com/t/error-in-cross-platform-query-4206-invalid-data-source-definition/6904>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [October 6, 2011, 4:30pm UTC](https://forums.toadworld.com/t/error-in-cross-platform-query-4206-invalid-data-source-definition/6904 "2011-10-06T16:30:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WDHB](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@WDHB](https://forums.toadworld.com/u/WDHB)\
**Post date:** [October 6, 2011, 4:30pm UTC](https://forums.toadworld.com/t/error-in-cross-platform-query-4206-invalid-data-source-definition/6904/1 "2011-10-06T16:30:49Z")

</div>

When querying sqlserver and any other platform I receive the error msg below,  
have tried different versions of MSSqlServer 2005, 2008.  
No problems querying across Oracle,Access and excel.

Got error 4206 ‘Invalid data source definition: Driver’s SQLAllocHandle on SQL\_HANDLE\_ENV failed’ from HUB

Running Trial version of Toad for Data Analyst version 3

cheers

Message was edited by: WDHB

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [October 6, 2011, 5:27pm UTC](https://forums.toadworld.com/t/error-in-cross-platform-query-4206-invalid-data-source-definition/6904/2 "2011-10-06T17:27:33Z")

</div>

This would only occur if you are trying to execute a Cross-Conneciton query. Is that what you are trying to do? If that is the case I would like you to add the following to the command line. I usually put this in my desktop shortcut.

/log=all

Restart toad and try the Query again. Then go to the Help menu and generate a Support Bundle. Send that to me.

If you are not trying to use a Cross-Connection query, then make sure the editor or Query Builder you are using does not have the ‘blue band’ on the side stating it is for Cross-Query.

Debbie

---

<div class="post-metadata">

**Author:** ![WDHB](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@WDHB](https://forums.toadworld.com/u/WDHB)\
**Post date:** [October 6, 2011, 8:10pm UTC](https://forums.toadworld.com/t/error-in-cross-platform-query-4206-invalid-data-source-definition/6904/3 "2011-10-06T20:10:06Z")

</div>

Thanks for the reply, resolved the problem by specifying the ‘SQL native Client’ as the ODBC driver rather than the default.

Yes it was a cross connection query.

When querying more than 2 platforms (Oracle, MSSL,Access) the query is quite slow,  
is this to be expected?

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [October 6, 2011, 8:33pm UTC](https://forums.toadworld.com/t/error-in-cross-platform-query-4206-invalid-data-source-definition/6904/4 "2011-10-06T20:33:40Z")

</div>

It may be slow depending on how your query is built. I go into a little bit about tuning a cross-query in this video.

[http://toadworld.com/Videos/tabid/831/TID/521/cid/154/Default.aspx](http://toadworld.com/Videos/tabid/831/TID/521/cid/154/Default.aspx)

Have a look at the section regarding explain plans and subqueries.

Debbie
