This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @nrRows INT; | |
SET @nrRows=1000000; | |
--drop table if exists tmp; | |
create table tmp | |
( | |
idString varchar(36) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH cte | |
AS (SELECT | |
1 AS n -- anchor member | |
,Cast(Cast(CRYPT_GEN_RANDOM(4) as INT) as Float) AS rnd | |
UNION ALL | |
SELECT | |
n + 1 -- recursive member | |
,Cast(Cast(CRYPT_GEN_RANDOM(4) as INT) as Float) | |
FROM cte |