http://weblogs.asp.net/jgalloway/archive/2007/04/25/sql-using-go-100-to-execute-a-batch-100-times.aspx
이런 팁이 있었다니. 크하하하하 ^___^
>> 잼나다 ^___^ 요런 트릭도 있다니.ㅋㅋㅋ
이런 팁이 있었다니. 크하하하하 ^___^
SET NOCOUNT ON
GO
CREATE TABLE dbo.TEST (ID INT IDENTITY (1,1), ROWID uniqueidentifier)
GO
-- 1000번의 배치실행한다.
INSERT INTO dbo.TEST (ROWID) VALUES (NEWID())
GO 1000
SELECT *
fROM TEST
>> 잼나다 ^___^ 요런 트릭도 있다니.ㅋㅋㅋ
'SQL Server 2005' 카테고리의 다른 글
Login failed for user ’sa’ because the account is currently locked out. The system administrator can unlock it. (0) | 2009.05.13 |
---|---|
::fn_dblog(null, null); (0) | 2009.04.16 |
identity overflow 검사하기 (0) | 2009.03.25 |
XML execution plans out as SQLPlan files (0) | 2009.03.24 |
sp_depends (0) | 2009.03.13 |