I have an WinForms application which creates tables dynamically based on a given table such as:
SELECT * INTO TempTable FROM MyTable WHERE 1=2
I want those Temp tables
to be created under a specific filegroup
though using the above syntax.
The syntax to create the table under a filegroup is:
CREATE TABLE [dbo].[TempTable](
[RECORDID] [numeric](10, 0) NOT NULL,
--etc etc
) ON [TempFileGroup] TEXTIMAGE_ON [TempFileGroup]
Is it possible to use my syntax above to create the table under the specific filegroup?