Viewing 7 posts - 1 through 7 (of 7 total)
pps: you're not executing PowerShell with xp_cmdshell. You're just starting an .exe file in a shell.[/quote]
You are absolutely correct here. I was working on a project few weeks ago involving...
October 14, 2013 at 11:03 am
I guess if you have a problem with using xp_cmdshell then Koen suggestion is quite good. You could create a generic job and write a stored procedure dynamically changing a...
October 14, 2013 at 3:03 am
Hi Koen
Thanks a lot for you comment.
The reason why I haven't used SQL job agent is because this solution has been implemented for a client using SQL server with...
October 14, 2013 at 2:55 am
I got it. Nested XML that's the right answer.
Thanks for all your help.
Final solution:
select
'04' as "@PaediatricCriticalCareStructure",
p.CriticalCareLocalIdentifier,
p.CriticalCareStartDate,
(select
p.ActivityDate,
...
January 17, 2013 at 2:36 am
Thanks again.
Nearly there. Still got a problem to put together in one group: ActivityDate & CriticalCareActivityCode
See the code below.
Mike
SELECT
'04' as...
January 17, 2013 at 2:04 am
Think I got in now (see the code below).
It's going to be painful to build dynamic pivot / SQL for the purpose of this task.
Any other solutions anyone?
Mike
select distinct
...
January 16, 2013 at 10:01 am
Thanks for you reply.
Ok. lets say that I've got dynamic pivot what do I do next?
Do I have to create dynamic sql to include all CriticalCareAcivityCodes?
Have a look at new...
January 16, 2013 at 9:55 am
Viewing 7 posts - 1 through 7 (of 7 total)