ADO data shape

priyanka burujwale 0 Reputation points
2024-12-03T14:43:43.8233333+00:00

Hello, I need help in migrating old VB6-classic asp application.

This application uses ADO Data Shaping Query like below and this query can not be executed through SQL server management studio. I want to transform this query to normal query which can get executed on SQL server management studio or use this SHape query in stored procedure

SHAPE {SELECT CustomerID, ContactName FROM Customers}   APPEND ({SELECT OrderID, OrderDate, CustomerID FROM Orders} AS chapOrders   RELATE customerID TO customerID)  
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,213 questions
Access
Access
A family of Microsoft relational database management systems designed for ease of use.
420 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 68,411 Reputation points
    2024-12-03T16:13:40.19+00:00

    Shape is an Access database feature that returned hierarchical record sets. SqlServer is a pure relational engine and only returns sets (expect for xml or json results).

    you probably want to look an ORM like entity framework which maps sets into hierarchies.

    https://learn.microsoft.com/en-us/ef/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.