Below is my complete code from the data tab:
Code: Select all
## Push Data into the SNO table (StartingInventory)
vsModel = ''| Model|'' ;
ItemCode = ''| Items|'';
Location = ''| Locations|'' ;
TranType = ''| HoldType|'';
Quantity = Value;
UserID = ''| V2|'';
CreateDate = ''| vsCreateTime|'';
asciioutput('temp.txt',Expand( 'INSERT INTO [SNO].[dbo].[StartingInventory] ( [Model], [ItemCode], [Location], [TranType], [Quantity], [UserID], [CreateDate] ) VALUES ( ''%vsModel%'', ''%ItemCode%'', ''%Location%'',''%TranType%'',''%Quantity%'',''%UserID%'', ''%CreateDate%'' )' ) );
ODBCOutput('ODS', Expand( 'INSERT INTO [SNO].[dbo].[StartingInventory] ( [Model], [ItemCode], [Location], [TranType], [Quantity], [UserID], [CreateDate] ) VALUES ( ''%vsModel%'', ''%ItemCode%'', ''%Location%'',''%TranType%'',''%Quantity%'',''%UserID%'', ''%CreateDate%'' )' ) );
"INSERT INTO [SNO].[dbo].[StartingInventory] ( [Model], [ItemCode], [Location], [TranType], [Quantity], [UserID], [CreateDate] ) VALUES ( 'Electro-Vinlys', '79', 'Plaquemine','silo',' 2000.000','Admin', '2012-04-09' )"
When I copy this code into SQL Server Management Studio and remove the double quotes from the statement it loads the data. Any help on how to remove the double quotes will be greatly appreciated.
Regards,
Desi