PDA

View Full Version : بروزآوری کرسر



sarami
یک شنبه 25 دی 1384, 12:59 عصر
آیا امکان بروز رسانی (reguery) نمودن کرسرها در sql مثل رکورد ست VB میسر می باشد. در حال حاضر برای اینمنظور کرسر را تخریب نموده و مجددا آنرا تعریف می کنم یکی از دوستان یه بزرگواری کنه ما رو خلاص کنه از این وضعیت. به عبارت دیگه منظورم اینه که cursor داینامیک باشه نه استاتیک

AminSobati
دوشنبه 26 دی 1384, 00:12 صبح
برگرفته از Books Online:

Dynamic cursors are the opposite of static cursors. Dynamic cursors reflect all changes made to the rows in their result set when scrolling through the cursor. The data values, order, and membership of the rows in the result set can change on each fetch. All UPDATE, INSERT, and DELETE statements made by all users are visible through the cursor. Updates are visible immediately if they are made through the cursor using either an API function such as SQLSetPos or the Transact-SQL WHERE CURRENT OF clause. Updates made outside the cursor are not visible until they are committed, unless the cursor transaction isolation level is set to read uncommitted.

چرا از Dynamic در Declare استفاده نمیکنید؟

sarami
دوشنبه 26 دی 1384, 02:56 صبح
راستش مهمترین دلیلش شاید این باشه که سواد مون پائینه.ممنون امین جان