Viewing 15 posts - 61 through 75 (of 113 total)
if the parent table uses an identity field for the primary key, you can assign a variable to the identity inserted with the scope_identity() function.
March 1, 2011 at 12:59 pm
Here are the steps:
1) drop the foreign keys
2) Add the identity column to the table
3) Add a field to the related tables to hold the new identity column
4) Update the...
March 1, 2011 at 8:46 am
Instead of using LEFT(RTRIM(LTRIM(ARMNAME)),25)
use
LEFT(RTRIM(LTRIM(ARMNAME))+SPACE(25),25)
You'll end up with 25 characters everytime.
March 1, 2011 at 8:24 am
SQL Server 2005 only has the datetime field type. A date type field was added in SQL 2008.
Your conversion should give you a date with all zeros for the...
March 1, 2011 at 8:20 am
yeah that looks like homework. If it is, ask your classmates or teacher.
drop the cursors and rethink your approach.
February 25, 2011 at 5:47 am
I would ask why you need to use a temp table at all. The CTE option described would likely help (but again we need the details.
February 24, 2011 at 1:43 pm
Let us know how it goes!
February 23, 2011 at 5:55 pm
Sounds like historical records without dates or status flags 🙂
Anyway, I hope the new version works well for you. A non-clustered index on those two fields should dramatically speed...
February 23, 2011 at 5:48 pm
I'm with you on that one. I didn't want to clutter up the quick answer, but that is a great question. I think i'm afraid to hear the...
February 23, 2011 at 4:32 pm
Well let's hope it helps. Just based on the numbers you replied back with they should at least look at other "options".
February 23, 2011 at 1:13 pm
This query should do what you are looking for (i think...i'm not entirely sure what you are looking for):
(I also don't see why you need the RAWH table, but i...
February 23, 2011 at 1:08 pm
Viewing 15 posts - 61 through 75 (of 113 total)