Friday, March 30, 2012
Installing MSDE 2000a
XP SP2 but can only connect with the login "Trusted NT connection" and not
with the sa login. Can someone please give me the correct command to type to
install with sql or mixed authentication.
http://support.microsoft.com/default...b;en-us;319930
look at the heading "Enable Mixed Mode Authentication After Installation"
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"cwsjnr" wrote:
> I have downloaded MSDE 2000a and installed it from the run command on Windows
> XP SP2 but can only connect with the login "Trusted NT connection" and not
> with the sa login. Can someone please give me the correct command to type to
> install with sql or mixed authentication.
Wednesday, March 21, 2012
Installed OK but cannot logon
I get 'Connection failed SQL State 08001 Error 17
I'm using the SA userid and password I entered upon installing
I'm attempting this via Visual Studio 2003
What could the problem be?
-David
hi David,
mscertified wrote:
> I just installed MSDE (got successful install msg in Log) but now
> cannot logon. I get 'Connection failed SQL State 08001 Error 17
> I'm using the SA userid and password I entered upon installing
> I'm attempting this via Visual Studio 2003
> What could the problem be?
is this a local or remote connection?
try connecting via oSql.exe and verify the full exception you are prompted
with
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.16.0 - DbaMgr ver 0.61.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
Monday, March 19, 2012
Installation/Connection problems with MS Desktop Engine
setup SAPWD="strongpassword" SECURITYMODE=SQL as the instructions described.
I've tried with the double quotes and without. I've tried on a machine
running Windows 2000 and XP (home addition). I tried updating the XP
machine with XP service pack.
No matter what I try, it apperas to install fine. When I attenpt to connect
to the engine (through the ASP.Net Web Matrix), I select SQL Server
Authentication. I then enter "SA" (No quotes, I've tried both upper and
lower case) as the user and the strongpassword that I used as the parameter
when installing. Everytime I get the same message.
Unable to connect to the database server. SQL Server does not exist or
access denied. ConnectionOpen (Connect()).
I can tell the engine is running because its icon in the tray is running.
What am I missing?
Steve,
You may have installed with SA and strong password (Sql authentication) but I believe the install defaults to Windows authentication.
Follow the below to make sure ... (excerpt from KB-322336)
******
If you are not sure how to verify the authentication mode of your MSDE installation, you can check the corresponding registry entry. By default, the value of the Windows LoginMode registry subkey is set to 1 for Windows Authentication. When Mixed Mode authentication is enabled, this value is a 2.
a.. The location of the LoginMode subkey depends on whether you installed MSDE as the default MSDE instance or as a named instance. If you installed MSDE as the default instance, the LoginMode subkey is located in the following registry subkey:
HKLM\Software\Microsoft\MSSqlserver\MSSqlServer\Lo ginMode
b.. If you installed MSDE as a named instance, the LoginMode subkey is located in the following registry subkey:
HKLM\Software\Microsoft\Microsoft SQL Server\%InstanceName%\MSSQLServer\LoginMode
NOTE: Before you switch authentication modes, you must set a sa password to avoid exposing a potential security hole
******
Hope this helps,
Tunji
"Steve Wash" <swash1@.home.com> wrote in message news:79GdnaCfS4T2AtbcRVn-tQ@.comcast.com...
Actually, it appears to install fine. I used the command line parameters
setup SAPWD="strongpassword" SECURITYMODE=SQL as the instructions described.
I've tried with the double quotes and without. I've tried on a machine
running Windows 2000 and XP (home addition). I tried updating the XP
machine with XP service pack.
No matter what I try, it apperas to install fine. When I attenpt to connect
to the engine (through the ASP.Net Web Matrix), I select SQL Server
Authentication. I then enter "SA" (No quotes, I've tried both upper and
lower case) as the user and the strongpassword that I used as the parameter
when installing. Everytime I get the same message.
Unable to connect to the database server. SQL Server does not exist or
access denied. ConnectionOpen (Connect()).
I can tell the engine is running because its icon in the tray is running.
What am I missing?
Friday, February 24, 2012
Installation issue? error: 40 - could not open a connection to SQL Server
Hi,
I am running XP Professional SP2. I have tried to install both SQL 2005 Developer (on this machine) and SQL 2005 Enterprise (on my other laptop), seemingly with success, but get the following error message when I try to connect to the local host using SSMS:
TITLE: Connect to Server
Cannot connect to .
ADDITIONAL INFORMATION:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
There is obviously something I'm doing fundamentally wrong in the install process - I'd be grateful for any help you guys can offer!
Laura
You might try this,
on the server, using the "Server Configuration Manager" Expand to find the Protocols used for your server.
Now I am only going by my own recent experience which is limited. I am using TCP/IP so if you are, ensure that TCP/IP is enabled.
Then right Click on TCP/IP and on the IP Address Tab make sure it is Active. Then I believe you need to use TCP Port 1433 but make sure you don't put it in the "Dynamic Port" space.
You can check that your server is Listening on this port by going to a command line and typing "netstat -a" no quotes, this should show you a list of which ports it is listening on.. you should then see 1433 as one of them....
If not you need to ask someone smarter than me which shouldn't be hard to find .....
Also, using the SQL Surface area config program, make sure you are using TCP and not just Named Pipes (Whatever they are ?), this is where you wold also ensure that you can allow remote connections or just local connections.
I had this same problem yesterday and this fixed it.
hope this help
|||Thank you very much for this - however, I already had both TCP/IP and Named pipes enabled.
However, after doing your cmd line thing, it has become apparent that my server is not listening on that port. How do I make it listen, bar the shouting that I'm already doing or do I need to switch the default port to something that the server is listening to?
Many thanks,
Laura
|||On the IP/Tab that I mentioned above, did you specify Port 1433 ?|||Yes.|||Hi Laura, you mentioned above that you already had IP and Named Pipes enabled.
I just want to verify a couple of things, because there seems to be a few places that these need to be set.... Bear with me if I seem to be covering something we have already covered.
Firstly, using the "SQL Server Configuration Manager" under "Protocols for <you server name>". your TCP/IP is enabled here ?
Secondly, Right click on the word TCP/IP under the protocol Name column and choose Properties.
I will just list the settings I have on my system,
Enabled = Yes
Keep Alive = 30000
Listen All = Yes
No Delay = No
Now go to the "IP Address" Tab on the same window. and here are my settings.
under IP1 Active = Yes
Enabled = Yes
IP Address = <IP of your Server>
TCP Dynamic Ports = <Blank>
TCP Port = 1433
under IP2 Active = Yes
Enabled = Yes
IP Address = <IP of your Server>
TCP Dynamic Ports = <Blank>
TCP Port = 1433
Under IPALL
TCP Dynamic Ports = <Blank>
TCP Port = 1433
Next, using the "SQL Server Surface Area Configuration" program and selecting the link to "Surface Area Configuration for Surface Area Configuration" Expand the "Database Engine" section and ensure that the
"Local and Remote connections" radio button is set on. and that you are using either "TCP/IP and Named Pipes" or just "TCP/IP Only".
Other than that just ensure that each of your SQL Services are running..
Once again. You probably have checked all this already, It's just that one of your posts above mentioned that you had IP enabled and I wanted to make sure that you had everything else set as well.
One other thing I just though about is - ensure that your firewall is allowing the correct traffic through. I am not very knowledgeable about that so maybe someone else can respond on that issue. My Network guru isn't here today.
Also, where I mentioned the TCP Dynamic Ports above. I believe mine were originally set by Default to 0 (Zero),
I actually had to BLANK those out. it seems that if they are 0 (Zero) it wants to take some default port to listen on.
I hope something here helps you...
let me know if not, and we can try to look into something else...
tattoo
|||All that seems to have done the trick - I didn't seem to need to change anything but having gone into it and come out again seems to have done the trick. Goodness only knows what it's problem was...Many thanks for all your help and support, L
|||
Glad you got it working......
tattoo
|||hello
Is there anyone to solve my query,as i have gone through the post and tried to solve my connection use,but cold not solve it.
under Sql server configuration Manager in Native Client configuration in Client protocols for TCP/IP i am getting the below
option.and checking my TCP/IP connection through netstat -a.I checked Sql server Area configuration it doesn't show any
error.Even then i am encontering same error.please help me.
Default 1433
Enabled Yes
Keep Alive 30000
Keep Alive Interval 1000
Ranjith, Can you verify that your Dynamic Port field is Blank and NOT Zero
Installation issue? error: 40 - could not open a connection to SQL Server
Hi,
I am running XP Professional SP2. I have tried to install both SQL 2005 Developer (on this machine) and SQL 2005 Enterprise (on my other laptop), seemingly with success, but get the following error message when I try to connect to the local host using SSMS:
TITLE: Connect to Server
Cannot connect to .
ADDITIONAL INFORMATION:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
There is obviously something I'm doing fundamentally wrong in the install process - I'd be grateful for any help you guys can offer!
Laura
You might try this,
on the server, using the "Server Configuration Manager" Expand to find the Protocols used for your server.
Now I am only going by my own recent experience which is limited. I am using TCP/IP so if you are, ensure that TCP/IP is enabled.
Then right Click on TCP/IP and on the IP Address Tab make sure it is Active. Then I believe you need to use TCP Port 1433 but make sure you don't put it in the "Dynamic Port" space.
You can check that your server is Listening on this port by going to a command line and typing "netstat -a" no quotes, this should show you a list of which ports it is listening on.. you should then see 1433 as one of them....
If not you need to ask someone smarter than me which shouldn't be hard to find .....
Also, using the SQL Surface area config program, make sure you are using TCP and not just Named Pipes (Whatever they are ?), this is where you wold also ensure that you can allow remote connections or just local connections.
I had this same problem yesterday and this fixed it.
hope this help
|||Thank you very much for this - however, I already had both TCP/IP and Named pipes enabled.
However, after doing your cmd line thing, it has become apparent that my server is not listening on that port. How do I make it listen, bar the shouting that I'm already doing or do I need to switch the default port to something that the server is listening to?
Many thanks,
Laura
|||On the IP/Tab that I mentioned above, did you specify Port 1433 ?|||Yes.|||Hi Laura, you mentioned above that you already had IP and Named Pipes enabled.
I just want to verify a couple of things, because there seems to be a few places that these need to be set.... Bear with me if I seem to be covering something we have already covered.
Firstly, using the "SQL Server Configuration Manager" under "Protocols for <you server name>". your TCP/IP is enabled here ?
Secondly, Right click on the word TCP/IP under the protocol Name column and choose Properties.
I will just list the settings I have on my system,
Enabled = Yes
Keep Alive = 30000
Listen All = Yes
No Delay = No
Now go to the "IP Address" Tab on the same window. and here are my settings.
under IP1 Active = Yes
Enabled = Yes
IP Address = <IP of your Server>
TCP Dynamic Ports = <Blank>
TCP Port = 1433
under IP2 Active = Yes
Enabled = Yes
IP Address = <IP of your Server>
TCP Dynamic Ports = <Blank>
TCP Port = 1433
Under IPALL
TCP Dynamic Ports = <Blank>
TCP Port = 1433
Next, using the "SQL Server Surface Area Configuration" program and selecting the link to "Surface Area Configuration for Surface Area Configuration" Expand the "Database Engine" section and ensure that the
"Local and Remote connections" radio button is set on. and that you are using either "TCP/IP and Named Pipes" or just "TCP/IP Only".
Other than that just ensure that each of your SQL Services are running..
Once again. You probably have checked all this already, It's just that one of your posts above mentioned that you had IP enabled and I wanted to make sure that you had everything else set as well.
One other thing I just though about is - ensure that your firewall is allowing the correct traffic through. I am not very knowledgeable about that so maybe someone else can respond on that issue. My Network guru isn't here today.
Also, where I mentioned the TCP Dynamic Ports above. I believe mine were originally set by Default to 0 (Zero),
I actually had to BLANK those out. it seems that if they are 0 (Zero) it wants to take some default port to listen on.
I hope something here helps you...
let me know if not, and we can try to look into something else...
tattoo
|||All that seems to have done the trick - I didn't seem to need to change anything but having gone into it and come out again seems to have done the trick. Goodness only knows what it's problem was...Many thanks for all your help and support, L
|||
Glad you got it working......
tattoo
|||hello
Is there anyone to solve my query,as i have gone through the post and tried to solve my connection use,but cold not solve it.
under Sql server configuration Manager in Native Client configuration in Client protocols for TCP/IP i am getting the below
option.and checking my TCP/IP connection through netstat -a.I checked Sql server Area configuration it doesn't show any
error.Even then i am encontering same error.please help me.
Default 1433
Enabled Yes
Keep Alive 30000
Keep Alive Interval 1000
Ranjith, Can you verify that your Dynamic Port field is Blank and NOT Zero