I have this simple query made in SQL Server Management Studio, in Views - New View...
[pre]SELECT CountyID, CountyName
FROM dbo.Counties[/pre]
But as soon as I add: [tt]ORDER BY CountyID[/tt] at the end, the Management Studio adds
[pre]SELECT [red]TOP (100) PERCENT[/red] CountyID, CountyName
FROM dbo.Counties
ORDER BY CountyID[/pre]
And I cannot get rid of TOP (100) PERCENT, unless I delete ORDER BY CountyID
I can change it to TOP (10) and get rid of PERCENT, but as soon as I delete all of that, Studio adds it anyway.
Why?
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson
[pre]SELECT CountyID, CountyName
FROM dbo.Counties[/pre]
But as soon as I add: [tt]ORDER BY CountyID[/tt] at the end, the Management Studio adds
[pre]SELECT [red]TOP (100) PERCENT[/red] CountyID, CountyName
FROM dbo.Counties
ORDER BY CountyID[/pre]
And I cannot get rid of TOP (100) PERCENT, unless I delete ORDER BY CountyID
I can change it to TOP (10) and get rid of PERCENT, but as soon as I delete all of that, Studio adds it anyway.
Why?
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson