|
-
Jun 3rd, 2003, 02:05 PM
#1
Thread Starter
Frenzied Member
SQL Server Enterprise Manager
I am using Win XP and have installed MSDE. How and where do I find the SQL Server Enterprise Manager, where I can change the security settings?
-
Jun 3rd, 2003, 02:49 PM
#2
Frenzied Member
MSDE does not come with the Enterprise Manager user interface...in order to perform the activities you are asking you would need to upgrade to sql server...you could try this (I have never used it) it may achieve want you are wanting.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Jun 3rd, 2003, 03:03 PM
#3
Thread Starter
Frenzied Member
Is it possible to download this ASPEnterpriseManager? I have looked all places but didn't had any luck on finding it.
-
Jun 3rd, 2003, 04:40 PM
#4
Frenzied Member
you can go here
The server has to be accessible over the internet...my assumption is that your MSDE is not accessible over the internet though...Therefore this won't help. about the only other thing you could do is learn osql and isql...
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Jun 4th, 2003, 01:01 AM
#5
Thread Starter
Frenzied Member
Ok, thanks a lot. Maybe the best thing would be to install SQL Server 2000?
-
Jun 4th, 2003, 08:26 AM
#6
Addicted Member
You can change security settings using SQLDMO ie. from mixed to windows only. I have some code that does that if you need it.
SQLDMO examples and help are provided with SQL Server.
Also, if you want to check out a free MSDE managment tool with all source code you might want to check out :
http://www.asql.biz/DbaMgr.shtm
The source code is a bit rough but once you sift through to what you want, it is a good guide to help developing your own MSDE "Enterprise Manager".
Cheers
Jack
-
Jun 4th, 2003, 08:37 AM
#7
Thread Starter
Frenzied Member
Great it is just what I need. I need some code that sets the Authentication to "SQL Server and Windows", do you have that code? I'm running an ASP.Net application with the MSDE.
-
Jun 4th, 2003, 09:01 AM
#8
Addicted Member
Sorry...posted to early..see next post
Last edited by Jackalx25; Jun 4th, 2003 at 10:22 AM.
-
Jun 4th, 2003, 10:19 AM
#9
Addicted Member
Am not sure about ASP.net, this code is from a VB6 application, modified and stripped of error handling to make it a bit easier to follow.
Here it is anyhow, might still be useful.
First, set a reference to Microsoft SQLDMO Object Library.
The steps are:
1. Connect to the instance of SQL Server or MSDE in this case
2. Change the intergrated security level
3. Stop and restart the server
4. Disconnect and clean up
Here is the code:
Code:
Option Explicit
Private mobjServer As SQLDMO.SQLServer
Private Const strServ as string = "(local)" 'your server name
Private Sub cmdConnect_Click() Step 1 - Connect
Set mobjServer = New SQLDMO.SQLServer
mobjServer.Name = strServ
With mobjServer ' Connection method 1. if using windows authentication
.LoginTimeout = -1
.LoginSecure = True
.AutoReConnect = False
.Connect strServ
End With
' OR Connection method 2. if using SQL Server authentication
With mobjServer
.LoginTimeout = -1
.LoginSecure = False
.AutoReConnect = False
.Connect strServ, "Username","Password"
End With
Msgbox "Connected"
End Sub
Private Sub cmdChangeMode_Click() Step 2 - Change intergrated security mode
With mobjServer
.IntegratedSecurity.SecurityMode = 2 1 = Windows only, 2 = Mixed mode
.Disconnect Step 3 - Stop and restart server so changes are made
.Stop
End With
'You need to put a timer or loop in before you re-start as it takes a few seconds for
the server to stop
timStatus.Interval = 2000
timStatus.Enabled = True
End Sub
Private Sub timStatus_Timer()
CheckState
End Sub
Private Sub CheckState()
Dim eStatus As SQLDMO_SVCSTATUS_TYPE
eStatus = mobjServer.Status
Select Case eStatus
Case SQLDMOSvc_Stopped
Msgbox "Stopped"
mobjServer.Start True, strServ
When TRUE, an attempt is made to connect on successful start.
When FALSE, no attempt is made to connect after successful start.
Case SQLDMOSvc_Running
timStatus.Enabled = False
Msgbox "Started"
End Select
End Sub
You find out the security mode when connected using;
Private Sub cmdCommand1_Click()
Msgbox mobjServer.IntegratedSecurity.SecurityMode
End Sub
Step 4 - Disconnect and clean up
mobjServer.Disconnect
Set mobjServer = Nothing
Cheers
Jack
Last edited by Jackalx25; Jun 4th, 2003 at 10:30 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|