472,958 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Cannot create new SQL database.....

I have Visual Studio 2005 Pro. I installed SQL Express 2005 and rebooted.
But, when I right click on "Data Connections" in the Server Explorer and
choose "Create New SQL Server Database..." and attempt to create a new
database on the local PC, I get the following error "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 default
settings SQL Server does not allow remote connections. (provider:
NamedPipes Provider, error:40 - Could not open a connection to SQL Server)".

Any idea what this is?
Jul 1 '06 #1
7 3909
You might get some information by looking in the latest error log in the
c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG directory. It looks
like your connection is trying to use named pipes to connect and named pipes
are disabled by default in SQL Express so you might try enabling named pipes
with the SQL Server Configuration Manager.(network configuration/protocols)
You may also have to allow SQL Server to open connections through the XP
firewall but that's usually not necessary.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"wally" <wa***@mart.comwrote in message
news:7P*****************@bignews2.bellsouth.net...
>I have Visual Studio 2005 Pro. I installed SQL Express 2005 and rebooted.
But, when I right click on "Data Connections" in the Server Explorer and
choose "Create New SQL Server Database..." and attempt to create a new
database on the local PC, I get the following error "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 default
settings SQL Server does not allow remote connections. (provider:
NamedPipes Provider, error:40 - Could not open a connection to SQL
Server)".

Any idea what this is?

Jul 2 '06 #2
Thanks for the pointers......but no luck.

To make sure that my installation of SQL Express was good, I uninstalled SE
and deleted the directory it leaves behind.

I restarted the dev box, downloaded SE Basic from
http://msdn.microsoft.com/vstudio/express/sql/download/ and reinstalled it
with the client tools selected.

I tried again.....same error.

I enabled both TCP/IP and Named Pipes, restarted the dev box and got the
same error.

I disabled the Windows firewall and tried again.....same error.

At this point, I am at a loss as to what the problem could be.
"Roger Wolter[MSFT]" <rw*****@online.microsoft.comwrote in message
news:uH**************@TK2MSFTNGP05.phx.gbl...
You might get some information by looking in the latest error log in the
c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG directory. It
looks like your connection is trying to use named pipes to connect and
named pipes are disabled by default in SQL Express so you might try
enabling named pipes with the SQL Server Configuration Manager.(network
configuration/protocols) You may also have to allow SQL Server to open
connections through the XP firewall but that's usually not necessary.

>
--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"wally" <wa***@mart.comwrote in message
news:7P*****************@bignews2.bellsouth.net...
>>I have Visual Studio 2005 Pro. I installed SQL Express 2005 and rebooted.
But, when I right click on "Data Connections" in the Server Explorer and
choose "Create New SQL Server Database..." and attempt to create a new
database on the local PC, I get the following error "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 default
settings SQL Server does not allow remote connections. (provider:
NamedPipes Provider, error:40 - Could not open a connection to SQL
Server)".

Any idea what this is?


Jul 2 '06 #3
@!#@#!@$!@.......The answer is that you CANNOT connect to SQL Express using
the machine name (nevermind that is what is shown in the drop down for the
connection and SQL Express is running as a service that could be queried).
You must manually add "\SQLExpress" (i.e. "machineName\SQLExpress") to be
able to connect to it.

Now just why didn't those brilliant Microsoft minds code that OR AT LEAST
LET US KNOW ABOUT IT?

"wally" <wa***@mart.comwrote in message
news:eF*******************@bignews6.bellsouth.net. ..
Thanks for the pointers......but no luck.

To make sure that my installation of SQL Express was good, I uninstalled
SE and deleted the directory it leaves behind.

I restarted the dev box, downloaded SE Basic from
http://msdn.microsoft.com/vstudio/express/sql/download/ and reinstalled it
with the client tools selected.

I tried again.....same error.

I enabled both TCP/IP and Named Pipes, restarted the dev box and got the
same error.

I disabled the Windows firewall and tried again.....same error.

At this point, I am at a loss as to what the problem could be.
"Roger Wolter[MSFT]" <rw*****@online.microsoft.comwrote in message
news:uH**************@TK2MSFTNGP05.phx.gbl...
>You might get some information by looking in the latest error log in the
c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG directory. It
looks like your connection is trying to use named pipes to connect and
named pipes are disabled by default in SQL Express so you might try
enabling named pipes with the SQL Server Configuration Manager.(network
configuration/protocols) You may also have to allow SQL Server to open
connections through the XP firewall but that's usually not necessary.


>>
--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"wally" <wa***@mart.comwrote in message
news:7P*****************@bignews2.bellsouth.net.. .
>>>I have Visual Studio 2005 Pro. I installed SQL Express 2005 and
rebooted. But, when I right click on "Data Connections" in the Server
Explorer and choose "Create New SQL Server Database..." and attempt to
create a new database on the local PC, I get the following error "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 default settings SQL Server does not allow remote connections.
(provider: NamedPipes Provider, error:40 - Could not open a connection to
SQL Server)".

Any idea what this is?



Jul 2 '06 #4
Wally,

Have you installed in past some Beta SQL server products, than you have to
look in the mydocuments folders, it is possible that there are than some
orphaned files. Set those temportaly an other place and try to install
SQLExpress again.

Cor

"wally" <wa***@mart.comschreef in bericht
news:eF*******************@bignews6.bellsouth.net. ..
Thanks for the pointers......but no luck.

To make sure that my installation of SQL Express was good, I uninstalled
SE and deleted the directory it leaves behind.

I restarted the dev box, downloaded SE Basic from
http://msdn.microsoft.com/vstudio/express/sql/download/ and reinstalled it
with the client tools selected.

I tried again.....same error.

I enabled both TCP/IP and Named Pipes, restarted the dev box and got the
same error.

I disabled the Windows firewall and tried again.....same error.

At this point, I am at a loss as to what the problem could be.
"Roger Wolter[MSFT]" <rw*****@online.microsoft.comwrote in message
news:uH**************@TK2MSFTNGP05.phx.gbl...
>You might get some information by looking in the latest error log in the
c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG directory. It
looks like your connection is trying to use named pipes to connect and
named pipes are disabled by default in SQL Express so you might try
enabling named pipes with the SQL Server Configuration Manager.(network
configuration/protocols) You may also have to allow SQL Server to open
connections through the XP firewall but that's usually not necessary.


>>
--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"wally" <wa***@mart.comwrote in message
news:7P*****************@bignews2.bellsouth.net.. .
>>>I have Visual Studio 2005 Pro. I installed SQL Express 2005 and
rebooted. But, when I right click on "Data Connections" in the Server
Explorer and choose "Create New SQL Server Database..." and attempt to
create a new database on the local PC, I get the following error "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 default settings SQL Server does not allow remote connections.
(provider: NamedPipes Provider, error:40 - Could not open a connection to
SQL Server)".

Any idea what this is?



Jul 2 '06 #5
Thanks for the help Cor, but the name thing was the issue.
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:uA**************@TK2MSFTNGP03.phx.gbl...
Wally,

Have you installed in past some Beta SQL server products, than you have to
look in the mydocuments folders, it is possible that there are than some
orphaned files. Set those temportaly an other place and try to install
SQLExpress again.

Cor

"wally" <wa***@mart.comschreef in bericht
news:eF*******************@bignews6.bellsouth.net. ..
>Thanks for the pointers......but no luck.

To make sure that my installation of SQL Express was good, I uninstalled
SE and deleted the directory it leaves behind.

I restarted the dev box, downloaded SE Basic from
http://msdn.microsoft.com/vstudio/express/sql/download/ and reinstalled
it with the client tools selected.

I tried again.....same error.

I enabled both TCP/IP and Named Pipes, restarted the dev box and got the
same error.

I disabled the Windows firewall and tried again.....same error.

At this point, I am at a loss as to what the problem could be.
"Roger Wolter[MSFT]" <rw*****@online.microsoft.comwrote in message
news:uH**************@TK2MSFTNGP05.phx.gbl...
>>You might get some information by looking in the latest error log in the
c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG directory. It
looks like your connection is trying to use named pipes to connect and
named pipes are disabled by default in SQL Express so you might try
enabling named pipes with the SQL Server Configuration Manager.(network
configuration/protocols) You may also have to allow SQL Server to open
connections through the XP firewall but that's usually not necessary.


>>>
--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"wally" <wa***@mart.comwrote in message
news:7P*****************@bignews2.bellsouth.net. ..
I have Visual Studio 2005 Pro. I installed SQL Express 2005 and
rebooted. But, when I right click on "Data Connections" in the Server
Explorer and choose "Create New SQL Server Database..." and attempt to
create a new database on the local PC, I get the following error "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 default settings SQL Server does not allow remote
connections. (provider: NamedPipes Provider, error:40 - Could not open a
connection to SQL Server)".

Any idea what this is?



Jul 2 '06 #6
Wally,

Sorry I did not look well to your follow up. AFAIK does a dot this as well.

Cor

"wally" <wa***@mart.comschreef in bericht
news:uY*******************@bignews6.bellsouth.net. ..
Thanks for the help Cor, but the name thing was the issue.
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:uA**************@TK2MSFTNGP03.phx.gbl...
>Wally,

Have you installed in past some Beta SQL server products, than you have
to look in the mydocuments folders, it is possible that there are than
some orphaned files. Set those temportaly an other place and try to
install SQLExpress again.

Cor

"wally" <wa***@mart.comschreef in bericht
news:eF*******************@bignews6.bellsouth.net ...
>>Thanks for the pointers......but no luck.

To make sure that my installation of SQL Express was good, I uninstalled
SE and deleted the directory it leaves behind.

I restarted the dev box, downloaded SE Basic from
http://msdn.microsoft.com/vstudio/express/sql/download/ and reinstalled
it with the client tools selected.

I tried again.....same error.

I enabled both TCP/IP and Named Pipes, restarted the dev box and got the
same error.

I disabled the Windows firewall and tried again.....same error.

At this point, I am at a loss as to what the problem could be.
"Roger Wolter[MSFT]" <rw*****@online.microsoft.comwrote in message
news:uH**************@TK2MSFTNGP05.phx.gbl...
You might get some information by looking in the latest error log in
the c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG directory.
It looks like your connection is trying to use named pipes to connect
and named pipes are disabled by default in SQL Express so you might try
enabling named pipes with the SQL Server Configuration Manager.(network
configuration/protocols) You may also have to allow SQL Server to open
connections through the XP firewall but that's usually not necessary.


--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"wally" <wa***@mart.comwrote in message
news:7P*****************@bignews2.bellsouth.net ...
>I have Visual Studio 2005 Pro. I installed SQL Express 2005 and
>rebooted. But, when I right click on "Data Connections" in the Server
>Explorer and choose "Create New SQL Server Database..." and attempt to
>create a new database on the local PC, I get the following error "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 default settings SQL Server does not allow remote
>connections. (provider: NamedPipes Provider, error:40 - Could not open
>a connection to SQL Server)".
>
Any idea what this is?
>




Jul 2 '06 #7
On Sun, 2 Jul 2006 01:12:26 -0400, "wally" <wa***@mart.comwrote:
>@!#@#!@$!@.......The answer is that you CANNOT connect to SQL Express using
the machine name (nevermind that is what is shown in the drop down for the
connection and SQL Express is running as a service that could be queried).
You must manually add "\SQLExpress" (i.e. "machineName\SQLExpress") to be
able to connect to it.

Now just why didn't those brilliant Microsoft minds code that OR AT LEAST
LET US KNOW ABOUT IT?
Wally,

The machineName\instanceName thing is well documented in assorted
places. But there is just so much information around that it may not
be easy to find, particularly if you don't know that you need to look
for it.

Andrew Watt MVP
Jul 2 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sangbae | last post by:
I cannot create table using adodbapi. I have no problem with SELECT etc. But I can create table using win32com.client directly. I don't know why. Could you give some advice, please? This...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
22
by: Smutny30 | last post by:
Hello, I am preparing a database that will store 10 n * GBs - 100 n * GBs of data. I calculated to have 1,2 GB of bufferpools. I run the DB2 v. 8.2.1 alone on 4 GB box. I obtain : ...
10
by: ibm_97 | last post by:
Hi, all I'm new to DB2 world. DB2 8.1 enterprise on Win XP. Installation (typical method) is fine. I log in as 'abc' user (admin user) to do the installation. Now I have 'db2admin' user. ...
6
by: sambuela | last post by:
How can I write message to the file located in the wwwroot directory? It seems that IIS protect these files. Let make me cannot do the I/O writing sucessfully. I try to open file's write...
1
by: bennett | last post by:
I'm trying to write an ASPX page that uses an OleDbDataAdapter to get data from a SQL Server database. When I test the connection, it returns success, and when I preview the data using the...
3
by: fyi85 | last post by:
I am trying to create a server on the same machine running the same instance. This is v8.1.5 on Windows 2003 Server. The instance is set to FEDERATED=YES The server will be created for database...
2
by: Bjørn Johansen | last post by:
Hi, I'm new at DB2, and have just installed a DB2 Version 9 Enterprise trial. Had no visible problems installing the database, but I cannot create the sample Database, or any other database. ...
1
by: Sue | last post by:
I just installed the free DB2 Express. I am going through the wizard and I am unable to create a database. I keep getting the error "create database path does not exist". The log file says "An...
11
by: craigtomo | last post by:
i have changed my login .php file to the following this file is opened directly and is not called from any other file <?php // dBase file $host=""; // Host name $username=""; // Mysql...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.