Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SHAPE command chokes SQL Engine

Status
Not open for further replies.

jtrapat1

Programmer
Jan 14, 2001
137
US
I'm trying to run this parent/child sql SHAPE command against SQL Server 7 thru query analyzer but I'm getting an error:

[Microsoft][ODBC SQL Server Driver]Syntax error or access violation

The query is:

SHAPE {SELECT BillNum, Sponsor, Title, CommitteeDate, OriginalCommittee FROM Bill} AS rsBill
APPEND ({SELECT BillNum, Requester FROM Requests}
RELATE BillNum TO BillNum ) AS rsRequests

Can anyone help?
I tried it with dbo. in front of each field but it gave me the same error.

Thanks in advance.
 
In chape and in appent you should have the same number of selected items. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top