du gør dette i SSMS-appen, ikke SQL. Vælg på værktøjslinjen Forespørgsel --> Resultater til --> Resultater til fil