Viewing 15 posts - 841 through 855 (of 1,347 total)
The problem (or advantage, depending on your viewpoint) of DTS is that it often provides a half dozen different ways to do something.
Define a Connection object, and run an Execute...
December 15, 2005 at 11:27 am
An alternative to the variable columns problem is to use more T-SQL and less DTS.
eg:
SELECT *
INTO TempTableName
FROM OpenRowSet('MSDASQL', 'Driver={ [Insert DBF driver specifics here] }'
INSERT INTO PermanentTable
(FirstName, LastName, ....)
SELECT FirstName,...
December 14, 2005 at 3:59 pm
>>In first SQl query task i have set the Output parameter as Rowset
This is the wrong setting. It should be "Row Value" if you want to assign individual Select statement...
December 14, 2005 at 3:00 pm
Which implies some need to use row-at-a-time cursor like processing in VBScript, versus set-based T-SQL UPDATEs to the data ? What exactly are you trying to do ?
December 14, 2005 at 2:55 pm
Any particular reason why you're doing all this in VBScript, versus using the DTS designer to add a connection and a couple of Execute SQL tasks ?
December 14, 2005 at 2:08 pm
Have you verified that tables FIN and FinancialCSV contain those columns ?
Also, take a close look at this:
set @sql = N'if object_id(''.dbo.IKBFinStg'') is not null drop table .dbo.IKBFinStg'
exec sp_executesql @sql
What...
December 14, 2005 at 2:05 pm
Yes. You use the expression in the SELECT list. The expression is the CASE ... WHEN ... END construct:
case SLPBXLT.SLBTYP when 7 then 'CR'
when 8 then 'CR'
when 9 then...
December 14, 2005 at 12:59 pm
Why all the dynamic SQL ?
Are you sure of database context. I see a bunch of 2-part naming on objects, without a database context, so is it possible you're executing...
December 14, 2005 at 12:43 pm
CREDIT is the last column in your INSERT list
The expression that you have added to add the logic of 7,8,9 = "CR" is the third column in your SELECT list.
Ordinal...
December 14, 2005 at 12:40 pm
I'd say the design is flawed. The purpose of the ALTER TABLE is to add an IDENTITY column to data that has just been loaded. Don't fight the tool.
Create a...
December 14, 2005 at 12:36 pm
Your original question listed 9 columns in the INSERT list, but many more in the SELECT list. The number of columns in both must match, so we should start by...
December 14, 2005 at 12:15 pm
The Excel driver does not support deleting worksheet rows. Since you don't want to recreate the destination XLS file, your other option is to use an ActiveX script task, and...
December 13, 2005 at 4:11 pm
What is your line terminator set to ? Have you opened the text file in a hex/binary editor and verified that you are getting the expected line terminator ?
eg: we've...
December 13, 2005 at 3:37 pm
Actually, that's not the most efficient way. For a smalldatetime, it is stored internally as two 2-byte integers.
You can convert a date to a float, Floor() it to get the...
December 13, 2005 at 3:18 pm
If it's just 1 package, open it up on 1 server and "Save As ..." on the other server.
If it's multiple packages, get the DTSBackup2000 tool:
December 13, 2005 at 2:55 pm
Viewing 15 posts - 841 through 855 (of 1,347 total)