Viewing 15 posts - 1 through 15 (of 17 total)
GilaMonster (12/19/2012)
If this is just for experimentation, that's fine. If this is a design for an app, just don't do this. You're opening yourself to all sorts...
December 19, 2012 at 1:45 am
Bhuvnesh (12/19/2012)
xmozart.ryan (12/19/2012)
Bhuvnesh (12/18/2012)
xmozart.ryan (12/18/2012)
DECLARE @query varchar(255)
SET @query = (select t_sql from t_test)
select * from (@query)
but i got err. msg "Must declare the variable '@query'"
What yiu actually need here...
December 19, 2012 at 12:42 am
Bhuvnesh (12/18/2012)
xmozart.ryan (12/18/2012)
DECLARE @query varchar(255)
SET @query = (select t_sql from t_test)
select * from (@query)
but i got err. msg "Must declare the variable '@query'"
What yiu actually need here the query...
December 19, 2012 at 12:12 am
rhythm.varshney (12/17/2012)
xmozart.ryan (12/17/2012)
but b'coz i dont understand too much about instead of...
December 17, 2012 at 3:10 am
i knew it, those triggers is works until i added the Instead Of Update trigger on that table,,,
but b'coz i dont understand too much about instead of update function,...
December 17, 2012 at 2:17 am
CREATE TRIGGER tg_update_stok_dn_reject ON dbo.t_delivery_notes
FOR UPDATE
AS
/*
fungsi: update status stok '40'-Good Received from Customer, I0050=in from customer reject
author: erlansyah
*/
DECLARE @DNid bigint
DECLARE @DNno varchar(15)
DECLARE @mat_code varchar(15)
DECLARE @unit_conv...
December 17, 2012 at 2:03 am
but, i've created a lot of trigger that used for updated using INSERTED and take no effect..
:doze:
December 17, 2012 at 1:57 am
dwain.c (7/24/2012)
If you just want to do it as an exercise, that's fine. But...
July 25, 2012 at 4:18 am
Kingston Dhasian (7/25/2012)
I have presented below the code to do it using...
July 25, 2012 at 3:16 am
dwain.c (7/24/2012)
OK apology accepted.The real question is do you have something that works and does it perform satisfactorily?
yup..
here's the code..
SELECT purchase_id,mat_code,qty,require_by,require_desc,scheduled,
SUM(ISNULL((CASE WHEN datepart(day, require_date) = 1 THEN qty ELSE '0'...
July 24, 2012 at 8:18 pm
dwain.c (7/24/2012)
Read my mantra and avoid loops when they're not necessary. It is better...
July 24, 2012 at 8:06 pm
dwain.c (7/24/2012)
July 24, 2012 at 7:34 pm
dwain.c (7/23/2012)
Sample data can be done with an INSERT like as follows:
INSERT INTO dbo.Table
SELECT 1,2,3,4 -- As...
July 24, 2012 at 12:36 am
dwain.c (7/23/2012)
xmozart.ryan (7/23/2012)
dwain.c (7/23/2012)
;WITH Tally (n) AS (
ROW_NUMBER() OVER...
July 23, 2012 at 11:42 pm
dwain.c (7/23/2012)
;WITH Tally (n) AS (
ROW_NUMBER() OVER (ORDER BY...
July 23, 2012 at 8:52 pm
Viewing 15 posts - 1 through 15 (of 17 total)