p
используется в качестве параметра для анонимной функции, которую вы предоставляете repeat()
. (Ознакомьтесь с обзором MDN функций в JavaScript )
Вы можете так же легко назначить неанонимную (т. Е. Именованную) функцию для вызова repeat
, как функции являются первоклассными в JavaScript
function foo(i) {
test_array.push(i);
}
repeat(5, foo); // => test_array now holds [1, 2, 3, 4, 5] just like before
Файл LDF содержит журнал транзакций базы данных. См., Например, http://www.databasedesign-resource.com/sql-server-transaction-log.html для полного объяснения. Есть способы уменьшить файл транзакции; например, см. http://support.microsoft.com/kb/873235 .
The LDF is the transaction log. It keeps a record of everything done to the database for rollback purposes.
You do not want to delete, but you can shrink it with the dbcc shrinkfile
command. You can also right-click on the database in SQL Server Management Studio and go to Tasks > Shrink.
ldf saves the log of the db, certainly doesn't saves any real data, but is very important for the proper function of the database.
You can however change the log model to the database to simple so this log does not grow too fast.
Check this for example.
Check here for reference.