Roy Harvey
3/21/2007 12:19:00 PM
The tool you used to create the view is defective in supporting TOP
(100) PERCENT.
In SQL Server 2000 there is an undocumented, unsupported, and
unreliable behavior that TOP (100) PERCENT was exploiting. It was
never a good idea, never could be counted on, and stopped working in
SQL Server 2005. TOP (100) PERCENT has no place in a view.
Remove the TOP (100) PERCENT and the ORDER BY clause and you should be
able to create the view.
Roy Harvey
Beacon Falls, CT
On Wed, 21 Mar 2007 04:50:28 -0700, Maurizio - Roma - Italy
<MaurizioRomaItaly@discussions.microsoft.com> wrote:
>Is a very simple test view:
>
>CREATE VIEW Testview AS
>SELECT TOP (100) PERCENT dbo.Anagrafica.*
>FROM dbo.Anagrafica
>ORDER BY Anagrafica
>GO
>
>But the problem is the same creating view from SQL Studio Managenment Design
>tool.
>
>Thank you.
>
>Maurizio Salvatelli
>
>"Uri Dimant" wrote:
>
>> Maurizio
>>
>> Can you showe us the entire CREATE VIEW.... script?
>>
>>
>> "Maurizio - Roma - Italy" <MaurizioRomaItaly@discussions.microsoft.com>
>> wrote in message news:F2E1C5BE-3C1A-4880-9C6E-824DB16DA078@microsoft.com...
>> >I receive this error when i try to create and save a new view on in one
>> > database of my server. The message is:
>> >
>> > "Impossible to resolve the expression for the tie or the associated object
>> > schema"
>> >
>> > I try to create the view with t-sql and also with SQL Management Studio.
>> > I access to the database with dbo permission.
>> > I can create a new table without errors...
>> >
>> > With other database i don't have this problem.
>> >
>> > What i can check?
>> >
>> > Than you
>> >
>> > Maurizio Salvatelli
>>
>>
>>