Viewing 15 posts - 4,936 through 4,950 (of 7,191 total)
Is that syntax error coming from SQL Server or from the Cmd Exec? Please post the exact error message.
Thanks
John
November 17, 2011 at 9:18 am
1. You must know the file name and path in order to import it in the first place, mustn't you?
2. You'll need to set the task so it doesn't cause...
November 17, 2011 at 5:26 am
Here is your clue:
EXEC @retVal = xp_cmdshell @TmpPurgeCommand, no_output;
IF (@retVal = 1) -- Error occured
BEGIN
RAISERROR (50001, -- Message id.
16, -- Severity,
1, -- State,
N'xp_cmdshell call in [dbo].[adminManagePartition_Trace] failed. Purge not complete.');...
November 17, 2011 at 5:17 am
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
Viewing 15 posts - 4,936 through 4,950 (of 7,191 total)