Skip to content

Conversation

@barneynicholls
Copy link

Hi, I noticed that the insert and identity on/off statements when pulling from a view often got mixed up and would appear randomly within the output.

I identified the issue being the @results table not having a primary key therefore the results wouldn't necessarily be returned in a specific order.

By adding an IDENTITY column then setting that as the Primary Key the issue was resolved.

Thanks for sql it's been a great help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants