# TOAD, Teradata to SQL Server

**URL:** <https://forums.toadworld.com/t/toad-teradata-to-sql-server/7696>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [April 15, 2013, 7:58am UTC](https://forums.toadworld.com/t/toad-teradata-to-sql-server/7696 "2013-04-15T07:58:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpoling\_953](https://avatars.discourse-cdn.com/v4/letter/w/f1d935/32.png) [@wpoling\_953](https://forums.toadworld.com/u/wpoling_953)\
**Post date:** [April 15, 2013, 7:58am UTC](https://forums.toadworld.com/t/toad-teradata-to-sql-server/7696/1 "2013-04-15T07:58:41Z")

</div>

Good morning.

Still using TOAD, I have been tasked with hitting a SQL Server DB but had been hitting Teradata previously.

Simple query producing this error:

[Microsoft]{ODBC SQL Server Drive][SQL Server]Invalid object name ‘RiskAdjust\_BHI.FACILITY\_Proc’

Is there something different needed in syntax?

SELECT PROC\_CD, FACR\_HDR\_BID, PROC\_NUM, PROC\_MOD\_CD,  
COUNT(\*)  
FROM RiskAdjust\_BHI.FACILITY\_PROC  
GROUP BY PROC\_CD, FACR\_HDR\_BID, PROC\_NUM, PROC\_MOD\_CD  
ORDER BY PROC\_CD;

Any SQL folks out there with a suggestion, I would appreciate any support.

Thanks

WHP

---

<div class="post-metadata">

**Author:** ![itlnstln](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@itlnstln](https://forums.toadworld.com/u/itlnstln)\
**Post date:** [April 15, 2013, 9:00am UTC](https://forums.toadworld.com/t/toad-teradata-to-sql-server/7696/2 "2013-04-15T09:00:04Z")

</div>

In SQL Server there is an additional qualification for the table owner. So:

RiskAdjust\_BHI.FACILITY\_Proc would be RiskAdjust\_BHI.dbo.FACILITY\_Proc or RiskAdjust\_BHI.wpoling\_953.FACILITY\_Proc or whoever owns the table.

---

<div class="post-metadata">

**Author:** ![wpoling\_953](https://avatars.discourse-cdn.com/v4/letter/w/f1d935/32.png) [@wpoling\_953](https://forums.toadworld.com/u/wpoling_953)\
**Post date:** [April 15, 2013, 9:00am UTC](https://forums.toadworld.com/t/toad-teradata-to-sql-server/7696/3 "2013-04-15T09:00:11Z")

</div>

I figuered it out, needed a dbo in between the DB name and the table name, sheesh.  
Thanks

WHP

---

<div class="post-metadata">

**Author:** ![itlnstln](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@itlnstln](https://forums.toadworld.com/u/itlnstln)\
**Post date:** [April 15, 2013, 9:02am UTC](https://forums.toadworld.com/t/toad-teradata-to-sql-server/7696/4 "2013-04-15T09:02:05Z")

</div>

T-SQL is, IMO, the easiest syntax (other than some date stuff), but the table owner qualification is a little weird.

---

<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:** [April 15, 2013, 1:59pm UTC](https://forums.toadworld.com/t/toad-teradata-to-sql-server/7696/5 "2013-04-15T13:59:18Z")

</div>

It looks like you are using ODBC to connect to SQL Server. You will get a lot more features in the product if you use the Native SQL Server connection. From the Connections Drop down choose SQL Server as the connection type.

You will get better code completion to help you with the syntax.

Debbie
