Viewing 15 posts - 256 through 270 (of 508 total)
eh936 (2/15/2011)
tfifield (2/15/2011)
February 16, 2011 at 12:10 pm
Here's a quick and dirty example of what I use for this sort of thing. Assuming you have a table called MyTable and it has a column called UpdateCount:
UPDATE...
February 16, 2011 at 11:54 am
Craig Farrell (2/15/2011)
tfifield (2/15/2011)
Craig Farrell (2/14/2011)
Service Broker isn't used much because its complexity is threefold.
Craig,
Do you know of a decent tutorial on it? I've been meaning to get into...
February 16, 2011 at 11:27 am
abacrotto,
Thank you for your reply. Yes, the creation of the table could be done set-based, however, it is only done once so I don't pay much attention to performance...
February 16, 2011 at 10:51 am
Thanks for letting me know. I thought your requirement was to list the actual orders for those customers. Of course your query works fine and is very simple...
February 15, 2011 at 12:22 pm
It probably gave you an ambiguous column name error since I forgot to specify a table alias in the join in the CTE.
INNER JOIN Customers C ON
O.CustomerID...
February 15, 2011 at 11:32 am
Craig Farrell (2/14/2011)
Service Broker isn't used much because its complexity is threefold.
Craig,
Do you know of a decent tutorial on it? I've been meaning to get into Service Broker for...
February 15, 2011 at 11:03 am
eh936,
The only way I know of to get the order info from just customers with 15 or more orders is to first determine which customers have that many orders and...
February 14, 2011 at 12:16 pm
Linked servers can work for this type of thing if it's just specific data that needs to be distributed, such as changes to orders or customer information.
You want to look...
February 14, 2011 at 11:40 am
Sometimes dates are a bit messy for checking which records need to be updated somewhere else. The 3 ms. gap in the DATETIME data type can mess you up....
February 10, 2011 at 12:03 pm
I pretty much don't allow Remote Desk Top and SSMS to be run on production servers unless I specifically want to work as a dedicated console on the server. ...
February 7, 2011 at 12:20 pm
TheSQLGuru (2/2/2011)
siluctc (2/1/2011)
@lalit sir.. the plan is now to use linq or clr store procedure. Can u suggest which one is better and why.
DO NOT USE LINQ TO SQL, and...
February 3, 2011 at 3:24 pm
Craig Farrell (2/2/2011)
tfifield (2/2/2011)
February 3, 2011 at 2:59 pm
Kumar,
You may want to try something like this. It's the best way I've found to join back to the same record set to the one just prior or just...
February 3, 2011 at 2:29 pm
I've done some bench mark tests comparing ROW_NUMBER() to doing a CROSS APPLY with a TOP 1 type of construct. Even if the TOP 1/CROSS APPLY has a covering...
February 2, 2011 at 4:46 pm
Viewing 15 posts - 256 through 270 (of 508 total)