2010-07-26 6 views

Répondre

4
Insert into propertybagid default values 
0
INSERT INTO <tablename> DEFAULT VALUES; 
1
INSERT T DEFAULT VALUES 

Ou insérer plusieurs lignes (jusqu'à 2048 à la fois en utilisant la table spt_values)

SET IDENTITY_INSERT t ON 
INSERT INTO t (id) 
SELECT Number + COALESCE(IDENT_CURRENT('t'),0) + 1 
FROM master.dbo.spt_values 
where type='p' and number < 2048 
SET IDENTITY_INSERT t OFF 
Questions connexes