Viewing 9 posts - 16 through 24 (of 24 total)
Finally, I got it running and capture the result. The changes are in bold characters.
BEGIN
BEGIN TRY
...
October 16, 2008 at 3:45 pm
I think I start to have a glimpse of what's going on. I created a smaller SP for testing and the begin try - end try block looks like this:
BEGIN
BEGIN...
October 16, 2008 at 12:43 pm
Well, yes, that's a good idea. However, first I should start with a Visual Studio Ent. debugger, which I don't have.
October 16, 2008 at 11:56 am
MySQL is the last place where I'd try to fix these dates.
How can you fix invalid dates like 2008-02-30 or 2005-06-31 in there? MySQL accepts those dates with a warning....
October 15, 2008 at 9:02 am
Yup, everything turned out fine.
Thanks a bunch for the support.
October 14, 2008 at 2:35 pm
Oops, now it's really working IF I try to add the unique constraint on date_created, as well. That's much better.
October 14, 2008 at 2:05 pm
I just tested your whole scenario and it turns out that it doesn't quite work as you expected.
I have the table:
CREATE TABLE [dbo].[testumasii](
[id] [int] IDENTITY(1,1) NOT NULL,
[date_created] [smalldatetime] NOT NULL,
...
October 14, 2008 at 2:02 pm
What you're saying over there doesn't work at all for the intended purpose - smalldatetime/datetime/bigdatetime uniqueness enforcement.
Yes, indeed, I have the unique index on date_created (smalldatetime NOT NULL)...
October 14, 2008 at 1:22 pm
That could work, I see only one problem: if I have one transaction with multiple inserts, how is this going to behave?
To my understanding, there's no handling in triggers using...
October 14, 2008 at 11:42 am
Viewing 9 posts - 16 through 24 (of 24 total)