General Discussions

MSH and sqlserver – klumsy

Klumsy

Administrator

Posts: 1061
From: Port Angeles, WA, USA
Registered: 10-25-2001
i thought i may as well post this here as well,
since i hang here and this place is meant to be about coding

for a while i have wanted to try to use MSH from SQL server, and last
night i finally decided to give it ago..

here are some examples of msh that is running in my code:


select dbo.sqlmsh('$b = 0 ; 1..10 | foreach {$b = $b * $_ }; $b ')


select CAST ( dbo.sqlmsh('[xml]"hello"') AS XML)


select * from dbo.multimshhash('$a = @{this = 5;that= 10; 2 =
[DateTime]::Now; filterthisout = "dont see this"}; $a')
where name not like 'filter%'


select * from dbo.multimsh('9,8,3,4,4,3,3,2,2,5 | sort | gu')
where mshitem > 5


to read more about it go to my blog entry.
http://www.karlprosser.com/coder/?p=10


i'm keen to get feedback and see if others are interested in helping
turn this proof of concept into something solid.


------------------
Karl /GODCENTRIC
Visionary Media
the creative submitted to the divine.
Husband of my amazing wife Aleshia
Klumsy@xtra.co.nz

D-SIPL

Moderator

Posts: 1345
From: Maesteg, Wales
Registered: 07-21-2001
I've been watching the Monad project since you gave me the heads up on it last year. I would love to start playing with it some more.

--D-SIPL

------------------
"One World. One Web. One Program." -Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" -Adolf Hitler

CoolJ

Member

Posts: 354
From: ny
Registered: 07-11-2004
You peeked my interest in this too. I decided to download it and try it out. It is very nice!

I also walked through this ohh so easy to follow tutorial:
http://arstechnica.com/guides/other/msh.ars
..very easy to follow

now I just need to decide what I'm going to use it for..

Klumsy

Administrator

Posts: 1061
From: Port Angeles, WA, USA
Registered: 10-25-2001
yeah thats a great walkthrough. i often send people its way

i've just made another host for MSH today.. i'm making a new post here, and on my blog for it.

------------------
Karl /GODCENTRIC
Visionary Media
the creative submitted to the divine.
Husband of my amazing wife Aleshia
Klumsy@xtra.co.nz