Viewing 15 posts - 31 through 45 (of 90 total)
You will likely have to look at the data from your source before import to see why there is errant data. But first you might try importing the data into...
June 10, 2004 at 11:21 am
It would be helpful to see the schemea for the customer master table. It could be that some columns are set to not allow nulls, or possibly there is a...
June 7, 2004 at 10:29 am
you should be able to remove the WHERE clause from your derived table and use it in your JOIN. You are already partially doing this. Try this:
SELECT uu.History_Duty_ID, uu.Day_Date, uu.Employee_No,...
May 25, 2004 at 4:59 pm
From SQL Server Books Online:
In queries that include a correlated subquery(also known as a repeating subquery), the subquery depends on the outer query for its values. This means that the...
May 20, 2004 at 3:24 pm
Sukhoi, I have never had a problem using @@IDENTITY in the way that I described. However, please don't dismiss Jeff's suggestion of using scope_identity(). It can replace @@IDENTITY in the same...
May 20, 2004 at 10:42 am
Hi,
You can use @@IDENTITY to obtain the inserted ID value:
INSERT INTO MASTERTABLE(val1,val2)Values('hello','world')
declare @MyID int
Select @MyID = @@IDENTITY
INSERT INTO CHILDTABLE(ForeignKey,val1)Values(@MyID,'value')
Good Luck
May 20, 2004 at 3:04 am
You can dynamically change the name of a text file. One option is to use the ActiveX Script Task in your DTS to perform this name change. Example:
'**********************************************************************
' Visual Basic...
May 19, 2004 at 7:17 pm
I could be wrong about this as I've never attempted it, but if she performed a backup of the Transaction Logs, (assuming they have not been truncated) and then performed...
May 19, 2004 at 11:28 am
My Bad. It hasn't been depracated. Something I heard. I shouldn't go around spreading rumors.
May 18, 2004 at 6:10 pm
My Bad. It hasn't been depracated. Something I heard. I shouldn't go around spreading rumors.
May 18, 2004 at 6:10 pm
It sounds like you need to increase the CommandTimeout Property of your Command object. Or, possibly the ConnectionTimeout Property of the Connection object if you are using one.
Pete
May 18, 2004 at 5:33 pm
I'm not sure on that one. But if you are using a VB COM object, you may wish to use the DTS.BulkInsertTask object to perform your batch processing. You can use...
May 18, 2004 at 5:28 pm
It may be possible, if your transaction logs have not been truncated, to perform a backup now and then perform a restore to a point in time.
To restore...
May 18, 2004 at 5:04 pm
I think I've figured it out. T-SQL treats the sub-query as a correlated sub-query when a field does not exist. I'm not sure if this is a feature of the optimizer, or...
May 18, 2004 at 4:50 pm
Viewing 15 posts - 31 through 45 (of 90 total)