Re: SQL Express: is there a commandline way to set the default static port of a named instance?



Anyone have some thoughts on this?

"Keith" <keith@xxxxxxx> wrote in message
news:e3YF57O5HHA.5160@xxxxxxxxxxxxxxxxxxxxxxx
OK,

This morning I thought "Hey, I bet I can change the instance's registry
values for the tcp ports!" and bypass all this other stuff. I changed
them using regedit and everything seems to work fine, so I wrote some C#
code to do to test it out and

"UnauthorizedAccessException: Cannot write to Registry Key."
StackTrace = " at
System.ThrowHelper.ThrowUnauthorizedAccessException(ExceptionResource
resource)\r\n at Microsoft.Win32.RegistryKey.SetValue(String name,
Object value, RegistryValueKind valueKind)\r\n at
Microsoft.Win32.RegistryKey.SetValue(String name, Object va...

I'm not sure what to do about this since the exception contains no helpful
information.

Suggestions?


.



Relevant Pages

  • RE: HELP WITH DELETING A CONFIG KEY THINGY
    ... Hey, the problem is when my computer cuts on, i can't use my mouse to click ... > Did you backup the Registry before "tinkering" with it? ... try to do a Restore of your system to a day before you messed it up. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: auto inline complete
    ... Hey Jan, thanks for the help, I have not seen or tried these registry tricks ... I'm a Norton kind of guy. ... This is very frustrating, I used to just key into the address bar the first ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • My Music Icon (from start menu) goes to wrong folder
    ... Hey guys, I'm new here, and have done some searching to see if this has ... I think this happened when I attempted to make my "my music" folder ... I figure I may have to get in to the registry to set this back to ...
    (microsoft.public.windowsxp.general)
  • Re: SQL Express: is there a commandline way to set the default static port of a named instance?
    ... This morning I thought "Hey, I bet I can change the instance's registry ... values for the tcp ports!" ... and bypass all this other stuff. ... Cannot write to Registry Key." ...
    (microsoft.public.sqlserver.security)
  • Re: How can I deploy a custom Quick Launch toolbar with a Group Po
    ... You can use the DesktopStandard PolicyMaker Registry Extension to deploy registry data, ... "JTLIII" wrote in message ... > Hey I just had an idea. ...
    (microsoft.public.windows.group_policy)