-- Collection of code snippets by Arne Vajhøj 
-- posted to eksperten.dk, usenet and other places (2002-now) 
USE test
GO
CREATE TABLE texttest (
    id INTEGER PRIMARY KEY,
    content NTEXT
)
GO
INSERT INTO texttest VALUES (1,N'abc')
GO
INSERT INTO texttest VALUES (2,N'def')
GO
SP_GRANTLOGIN 'ARNEPC3\IUSR_ARNEPC3'
GO
SP_GRANTDBACCESS 'ARNEPC3\IUSR_ARNEPC3'
GO
GRANT SELECT ON texttest TO [ARNEPC3\IUSR_ARNEPC3]
GO
