Microsoft Content Management Server - Re: Reading ConnectionString from registry

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2004 > Re: Reading ConnectionString from registry





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Reading ConnectionString from registry
Stefan [MSFT]

2004-08-18, 5:52 pm

Hi Steve,

actually this connection string is written in UTF-16 - thats the reason that
only every second char seems to be valid.
Actually every char has 16 bit here. Just in case you would like to adjust
your algorithm.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Steve" <Steve@discussions.microsoft.com> wrote in message
news:DDF05ACD-02A7-4950-B5FD-1839D68B3A03@microsoft.com...
> And here's a little .vbs I wrote to display it.
>
> bytearray = WScript.CreateObject("WScript.Shell").RegRead( _
> "HKLM\SOFTWARE\NCompass\Resolution Content Server" & _
> " \Configuration\0\Local\Database\Connecti
onString")
> for i = 0 to ubound(bytearray)-3 step 2
> ConnectionString = ConnectionString & chr(bytearray(i) xor &HFF)
> next
> wscript.echo ConnectionString
>
> Hope it helps someone.
> -Steve



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com