I have a very complex SQL query that I execute in SQL Server Management Studio. As the query is running, I notice that my harddisk is filling up, until the point it's completely full (I'm talking a 10+GB increase in data).
I tried finding where this data is located, but can't find any large files and trying to find it by modified data through Explorer does not gives me thousands of folders and files. I went through a lot of them, but have a hard time identifying what I'm looking for.
So where does SQL Server typically hold all this data when executing a query?
ps. I know I need to do something about the query itself, but for now I need to know where data is stored.
select
only query (you are reading data) or ainsert/update/delete
(you are modifying the data) query ?