Creo que esto te servirá.
Código sql:
Ver originalDECLARE @TABLE TABLE( alumnos VARCHAR(10))
INSERT INTO @TABLE VALUES( 'hugo')
INSERT INTO @TABLE VALUES( 'paco' )
DECLARE @alumnos VARCHAR(10)
DECLARE @createSQLtable AS nvarchar(100)
DECLARE example_cursor CURSOR FOR
SELECT DISTINCT alumnos
FROM @TABLE
OPEN example_cursor
FETCH NEXT FROM example_cursor
INTO @alumnos
WHILE @@FETCH_STATUS = 0
BEGIN
SET @createSQLtable = 'create table ['+ @alumnos +'](COLUMNA1 INT)'
EXEC sp_executesql @createSQLtable
FETCH NEXT FROM example_cursor
INTO @alumnos
END
CLOSE example_cursor
DEALLOCATE example_cursor
Saludos