Viewing 15 posts - 4,186 through 4,200 (of 5,588 total)
PHXHoward (5/13/2010)
([YearE]== '00' ? NULL : (DT_DATE)
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 8:06 pm
You might want to look at sys.all_sql_modules... it's the replacement for syscomments
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 6:08 pm
It's close. It should be:
DELETE FROM Products FROM Products AS P1 JOIN NewProducts AS P2 ON P1.id = P2.id
Note that the first FROM is optional, so it also could be:
DELETE...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 5:03 pm
With variables Year (int32), Month (int32), Day (int32), use this:
(DT_DATE) (
(DT_STR, 4, 1252) @[User::Year] + "-" + ...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 5:00 pm
Robb Melancon (5/13/2010)
So in the end the QUpdate is about 75% faster than the Cursor.
Only 75%? I would have expected much better... closer to 90%. What else is...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 2:20 pm
I've used both. Both are excellent products.
ERwin has continually increased their price to where, IMO, it's not worth it anymore.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 2:13 pm
h2sut (5/13/2010)
Hello: This worked!! I really appreciate your help on this i cant thank you a enough. Thanks againbe bless
I would caution you: if you can't explain...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 2:11 pm
CirquedeSQLeil (5/13/2010)
Gianluca Sartori (5/13/2010)
I think Celko does nothing to be pleasant, but Peter's reply is terrific.That is not uncommon. He carries his soapbox everywhere he goes.
That he does. But...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 1:13 pm
First, if you're going to use the FROM clause in an UPDATE statement, you MUST include the table being updated.
Since the field being updated is coming from a PK...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 10:35 am
urzsuresh (5/13/2010)
tag table
Tag TableName FieldName
abc wc s_name
lbl ...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 10:23 am
Robb Melancon (5/13/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 10:10 am
Lowell (5/13/2010)
TheSQLGuru (5/13/2010)
>>they're a last resortNo, forums are NOT the last resort!
TheSQLGuru is right! this forum is one of my first items on my list of resources!
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 9:39 am
Ninja's_RGR'us (5/13/2010)
Steve Jones - Editor (5/13/2010)
What's the code?The move shouldn't lock of the server. That makes me suspect coincidence and there's another issue.
Glad to see I'm not insane :w00t:.
Here's...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 9:25 am
Toreador (5/13/2010)
So how would you get the identity values of the rows you'd...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 4:52 am
Good Excellent question. Learned quite a bit in the 2nd link (INSTEAD OF trigger).
FYI, in the explanation, it should be the string 'AnotherString' to be replaced with 'Stub', not 'TestString'.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 4:49 am
Viewing 15 posts - 4,186 through 4,200 (of 5,588 total)