Viewing 15 posts - 16 through 30 (of 240 total)
Off the top of my head (like the rest of my hair), it looks like you cannot count on 'len (last_name) - 9)' being greater than zero for every value...
October 6, 2005 at 8:41 am
Make stored procedures out of at least one of them, and use the EXEC verb to execute it.
October 6, 2005 at 7:59 am
Hmmm. That's quite a list of constraints. Can't lock out other users. Can't use a cursor. Can't add a trigger.
Well, I'll take another stab. This goes row by row, but...
October 6, 2005 at 7:56 am
Something else to consider is using a trigger on 'myTable' to isolate the new identity values, all of which will be contained in the 'inserted' virtual table. I should have...
October 6, 2005 at 7:26 am
Hmmm. It might not work as coded, but not for the reasons you suggest, or so I think.
The BEGIN TRANSACTION locks out other users while you are inserting, so once...
October 6, 2005 at 7:22 am
You might have to try something like this, but I hope there's an easier way:
CREATE PROCEDURE dbo.myProc ( @id INT)
AS
CREATE TABLE #holdtable
(cntr INT NOT NULL PRIMARY...
October 6, 2005 at 6:57 am
Off the top of my head, I'm thinking NULL should have worked if the accepting table column allows NULL, and in any event if it didn't, that's a whole nother...
October 5, 2005 at 1:38 pm
Can you show some of the data?
I think I could have given you a better query earlier. Try:
SELECT * FROM tableA WHERE ISNULL (FieldNameA, '') = '' OR ISNULL...
October 5, 2005 at 1:09 pm
Interesting problem, I plan to stick around until someone answers it. My gut response would have been to say, impossible, that can't happen. On second thought, however, I'm wondering if...
October 5, 2005 at 12:34 pm
I'm not a lumberjack, but I'm still okay.
October 5, 2005 at 12:08 pm
At the moment, I would doubt that all the data coming in adheres to your specified format. Run something like the following:
SELECT * FROM tableA WHERE ISNULL (FieldNameA,...
October 5, 2005 at 12:04 pm
For me, nothing ever topped, "How not to be seen".
October 5, 2005 at 11:49 am
Viewing 15 posts - 16 through 30 (of 240 total)