I have a table of data with about 3 mill records, all are text fields. I want to move them into an empty table with the correct indexes and primary keys. I need to transform some of the data on the insert. I am using the following code.CREATE PROCEDURE sp_editimportdata
AS
insert into [sales and use returns]([main acct],[sub acct] ,
[tax type] ,period ,source ,[transaction date]... [[tax due],remitted )
select disc.col001, disc.col002 , disc.col003 ,
disc.col004 , disc.col005 ,
convert (datetime,disc.col006) ,..
(convert(money,disc.col047)) ,
(convert(money,disc.col048))
from disc
I run this Stored Proc and I keep getting the following error:
Server: Msg 1105, Level 17, State 2, Procedure sp_EditImportData, Line 3
Could not allocate space for object '(SYSTEM table id: -3252013)' in database 'TEMPDB' because the 'DEFAULT' filegroup is full.
Is there a better way for me to do this or is there a problem with my code.
Phil
AS
insert into [sales and use returns]([main acct],[sub acct] ,
[tax type] ,period ,source ,[transaction date]... [[tax due],remitted )
select disc.col001, disc.col002 , disc.col003 ,
disc.col004 , disc.col005 ,
convert (datetime,disc.col006) ,..
(convert(money,disc.col047)) ,
(convert(money,disc.col048))
from disc
I run this Stored Proc and I keep getting the following error:
Server: Msg 1105, Level 17, State 2, Procedure sp_EditImportData, Line 3
Could not allocate space for object '(SYSTEM table id: -3252013)' in database 'TEMPDB' because the 'DEFAULT' filegroup is full.
Is there a better way for me to do this or is there a problem with my code.
Phil