Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing MSDE's Security Mode
Message
From
13/02/2003 16:51:02
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Changing MSDE's Security Mode
Miscellaneous
Thread ID:
00752928
Message ID:
00752928
Views:
49
By default, MSDE is configured to use Windows authentication.
I want to use SQL-DMO to change this to SQL-Server/Windows authentication,
but havent found any better way to do it.

* My code...
clear
oSQLApp = CreateObject('SQLDMO.Application')
oServer = osqlapp.ServerGroups(1)
nRegServ = oserver.RegisteredServers.Count
FOR i = 1 TO nRegServ
oChange = oserver.RegisteredServers.item(i)
? oChange.UseTrustedConnection = 0
ENDFOR 
From SQL-DMO Reference Help
When 0, a connection initiated by a Microsoft client application for SQL Server using an instance of SQL Server in the registry listing will use SQL Server Authentication. Configure authentication using the Login and Password properties.

When 1, a connection initiated by a Microsoft client application for SQL Server using an instance of SQL Server in the registry listing will use Windows® Authentication.

In this PC SQL-Server is configured to use SQL-Server authentication, so it's value is 0 but the code above returns .F.
Why ?


Thanks in Advance

Peter
Next
Reply
Map
View

Click here to load this message in the networking platform