The Gurus Guide to SQL Server Stored Procedures, XML, and HTML [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

The Gurus Guide to SQL Server Stored Procedures, XML, and HTML [Electronic resources] - نسخه متنی

Ken Henderson

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








Updatable Views


As mentioned earlier, there are a number of factors that affect whether a view without an INSTEAD OF trigger is updatable. Because you control how updates occur with views that have INSTEAD OF triggers, these restrictions don't apply to them. Otherwise, for a view to allow updates, the following criteria must be met:


Aggregate functions, the TOP, GROUP BY, UNION, or DISTINCT clauses/keywords, are not allowed.


Derived columns (columns constructed from complex expressions) cannot be updated.


SELECT lists consisting entirely of nontabular expressions are not allowed.



Again, the bottom line is that the server must be able to translate an update to a row in the view into an update to a row in a base table. If it can't do this, you can't update the view.

/ 223