Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8750217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:49:42+00:00 2026-06-13T12:49:42+00:00

From the results of the SQL Server stored procedure ‘sp_help’ we get a DataSet

  • 0

From the results of the SQL Server stored procedure ‘sp_help’ we get a DataSet containing a couple of tables. Seven if i am correct. One of them contains information about the constraints. Each foreign keys is documented by two consecutive rows in that table. The first row contains the constraint type, it’s name and other details. It’s followed by an empty row except for one column, ‘constaint_keys’ that contains the column names references of the constraint.

Other constraint types are described in one single row.

Any idea on how to “flatten” this information, using Linq, in a way that we can be sure that any couple made of two rows is really made of rows {n, n + 1}

Thank you for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:49:43+00:00Added an answer on June 13, 2026 at 12:49 pm

    You can use Enumerable.Range() to get the range of indexes you want to work with:

    var unflattenedConstraints = constraintsTable.Rows;
    var constraints = from index in Enumerable.Range(0, unflattenedConstraints.Count / 2)
                                              .Select(x => x * 2)
                      let row1 = unflattenedConstraints[index]
                      let row2 = unflattenedConstraints[index + 1]
                      // Combine the rows
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Similar to Insert into a temp table from a stored procedure on Sql Server
I am trying to call a SQL Server stored procedure from my Python code,
I have written a stored procedure in sql server 2005 that searches for results.
I have created a stored procedure in SQL Server, which runs immediately from Management
In MS SQL Server if I want to check the results from a Stored
How to get the dynamic select results of EXECUTE within PL/SQL from Oracle sqlplus
I have an application that needs to return search results from a SQL Server
I've created following stored procedure in my SQL server 2005 database for general pagination:
When calling a stored procedure from vb.net is there a default SQL timeout time
I have a small issue with a stored procedure in SQL Server 2005. RepInfoID(primary),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.