Viewing 15 posts - 4,936 through 4,950 (of 7,187 total)
The only thing I can think of is that a trigger on table A is deleting some of the rows, or modifying what is copied to table A.
John
November 17, 2011 at 3:05 am
Donald Bouchard (11/16/2011)
November 16, 2011 at 8:55 am
drew.allen (11/16/2011)
November 16, 2011 at 8:51 am
Why not have one row in the DeptShopped table for each customer who has shopped in each department? That's the tried and trusted way of doing it, and it...
November 16, 2011 at 8:24 am
That UPDATE statement won't loop through the rows in @Dept - it will use the first row in @Depts that it finds and then stop. That explains why the...
November 16, 2011 at 7:53 am
OK, I see - severity up to 10 is information or warning; 11 or greater is error. Have you tried an onInformation event handler instead? If that doesn't...
November 16, 2011 at 7:22 am
If the stored procedure is raising an error, would the OnError event handler work, instead of OnWarning?
John
November 16, 2011 at 4:17 am
Does the column(s) indexed in index ID 7 contain any NULLs? This would explain the difference, although it doesn't explain why it disappears after you rebuild the index.
John
November 16, 2011 at 2:34 am
Can you show us the exact queries you're running to get the counts, please?
Thanks
John
November 16, 2011 at 2:06 am
If it's a datetime column, won't this work?
CONVERT(datetime,MyCol,120)
John
November 15, 2011 at 9:59 am
If you think that would be useful, then by all means add it. But I wouldn't use third-party add-ins to achieve something that can be done with out-of-the-box functionality.
John
November 15, 2011 at 4:53 am
If you create your staging table with an identity column, you can do something like this:
INSERT INTO Table1 (colA, colB, colC,...)
SELECT (colA, colB, colC,...)
FROM MyStagingTable
WHERE IDCol <= 500
INSERT INTO Table2...
November 15, 2011 at 3:55 am
I don't know, because you haven't said on what criteria the record set will be split. There are transformations you may be able to use, such as the Conditional...
November 15, 2011 at 3:35 am
Import all the records into a staging table, then use whatever logic is necessary to move the first 500 records to one table and the rest to the other.
John
November 15, 2011 at 3:24 am
What goes into the parentheses at the end of the INSERT line is a list of the columns into which the rows will be inserted. If the columns in...
November 11, 2011 at 5:50 am
Viewing 15 posts - 4,936 through 4,950 (of 7,187 total)