Skip to content

Fix for issue of results table not returning data in insert order#20

Open
barneynicholls wants to merge 1 commit intodrumsta:masterfrom
barneynicholls:master
Open

Fix for issue of results table not returning data in insert order#20
barneynicholls wants to merge 1 commit intodrumsta:masterfrom
barneynicholls:master

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