Viewing 15 posts - 3,241 through 3,255 (of 6,036 total)
Which DEPTID you need - from inserted or from deleted?
December 10, 2007 at 7:26 pm
Steve Stout (12/10/2007)
December 10, 2007 at 6:16 pm
I have a lot of 'bad' data that has to be allowed for 🙁
LEFT JOIN to dbo.Product will do just that.
But can you explain what that "bad" data will mean?
Bad...
December 10, 2007 at 5:46 pm
This will do everything:
[Code]
INSERT INTO OrderItems (
OrderID,
ItemID,
Qty,
QtyDelivered,
QtyToSend,
item_price,
item_cost,
comments,
filemaker_discount,
filemaker_price_per_item_after_discount,
import_item,
filemaker_id
)
SELECT
F.order_key,
P.id,
F.quantity_received + F.quantity_to_ship,
F.quantity_received,
F.quantity_to_ship,
F.price_per_item
F.cost,
comments,
discount,
price_per_item_after_discount,
'1',
id
From dbo.posted_order_items_from_filemaker2 F
INNER JOIN dbo.Products P ON P.ProductCode =...
December 10, 2007 at 4:59 pm
Henk Schreij (12/10/2007)
What I want is something likea patindex to find the char and then stuff it with a -.
Something like
PATINDEX ('%[^a-z 0-9...
December 10, 2007 at 2:00 pm
No bad experience.
Except when trigger is badly written.
Like your one. 😉
You do insert inside of INSTEAD OF INSERT.
Besides it does not make much sense, if suddenly nested trigger are allowed...
December 10, 2007 at 1:22 pm
Why CAST is not correct?
December 9, 2007 at 2:56 pm
SQL33 (12/8/2007)
December 8, 2007 at 2:37 pm
No sorting or ordering is necessary .. just a select retrieving the nth sequence number for each custlink.
Man, sequence exists only on ordered arrays.
If there is no order then...
December 8, 2007 at 6:04 am
AVB (12/7/2007)
John,I would say that your answer of NO is probably correct. Although I am no SQL master so maybe there is a way around it...
Simple scalar function which returns...
December 7, 2007 at 7:08 pm
The reason is tempdb can be a source of contention and you are guaranteeing disk access. If you send in an XML document, especially in 2005, there's a chance it...
December 7, 2007 at 2:02 pm
[Code]
SELECT CASE WHEN Total = 1 THEN 'TOTAL' ELSE CONVERT(varchar(10), YearMonthDay) END, Sales
FROM (
SELECT YMDH/100 AS YearMonthDay, GROUPING(MySourceTable.YMDH/100) AS Total,
CONVERT(varchar(30), convert(money, SUM(Sales)),1) AS Sales
From MySourceTable
GROUP BY YMDH/100 WITH ROLLUP
)...
December 6, 2007 at 4:53 pm
SQL33 (12/6/2007)
December 6, 2007 at 3:14 pm
I agree with Sergiy. I think about the physical order data appears in the table.
There is no such thing as "physical order data appears in the table".
Physical order of data...
December 6, 2007 at 2:54 pm
to show what ID ranges are already used so the users can pick from the unused ones.
So, users actually need unused ID's, not used ones?
:hehe:
Why don't you want to...
December 6, 2007 at 2:51 pm
Viewing 15 posts - 3,241 through 3,255 (of 6,036 total)