Viewing 15 posts - 1 through 15 (of 17 total)
Edit:
I think Ive got it now. I was selecting the TSQL:Statement Completed event instead of SP:Statement Completed Event.
Fantastic. I see what you mean about the output.
Thanks for your help everyone.
July 24, 2008 at 4:38 am
Thanks for the input. Unfortunately the Statement Completed still doesnt help me.
The problem is that the trace only shows one entry (ie the original stored proc being called).
In actually fact,...
July 23, 2008 at 1:28 pm
My mistake you're right actually.
We have some in house software which takes all our stored procs, adds WITH ENCRYPTION to them, adds them to a db, then scripts the db...
April 22, 2008 at 3:53 am
Failed aswell.
Incorrect syntax near 't2'
However. If I replace the first bit:
DELETE FROM
with
SELECT * FROM
Do I get a list of the correct records im wishing to delete
June 14, 2006 at 3:39 am
Hmmm
Unfortunately that didnt work either. 0 rows affected.
And I definitely have 2 rows in table2 that arent in table1.
June 14, 2006 at 3:14 am
So do I duplicate the first half in the second half?
select cutomer_id,max(orderdate) from mytable group by customer_id
UNION
select customer_id,max(orderdate) from mytable where custorders.id not in
select cutomer_id,max(orderdate) from mytable group by customer_id
I...
May 12, 2006 at 8:46 am
Actually I just solved it, but probably alot longer way around.
I did
DELETE FROM TableB WHERE EXISTS (SELECT * FROM TableA WHERE TableA.ID=TableB.ID)
INSERT INTO TableB SELECT * FROM TableA
I guess basically...
April 24, 2006 at 4:04 am
Hello again,
I've run into abit of a problem with this query.
To summarise all the above, here's the final query:
DECLARE @Current table (StoreName varchar(50) not null, sales money not null)
INSERT @Current...
October 5, 2005 at 4:22 am
Noel,
Actually I fixed it another way.
The original declaration had:
DECLARE @Current table (StoreName varchar(50) not null, sales int not null)
I changed the int to money:
DECLARE @Current table (StoreName varchar(50) not null,...
October 5, 2005 at 2:37 am
Unfortunately that doesnt work.
If I had to the second half of the sp, I get an aggregate error message on the a.StoreName and b.Sales
SELECT a.StoreName, SUM(a.Sales * 1.0) as ThisPeriod,...
October 4, 2005 at 3:27 pm
Actually, just one final thing.
The results I get look something like this:
Store ThisPeriod LastYear
StoreA 20 ...
October 4, 2005 at 2:03 pm
Viewing 15 posts - 1 through 15 (of 17 total)