Click here to Skip to main content
15,886,026 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server 2008: Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation? Pin
Eddy Vluggen23-Apr-10 0:39
professionalEddy Vluggen23-Apr-10 0:39 
GeneralRe: SQL Server 2008: Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation? Pin
Rafferty Uy23-Apr-10 4:49
Rafferty Uy23-Apr-10 4:49 
QuestionSSIS failed with error 43% in Windows scheduler but no problem manually running the batch file... Pin
nataliedw22-Apr-10 14:44
nataliedw22-Apr-10 14:44 
NewsNew SQL Azure features now available Pin
GoAzure22-Apr-10 9:29
GoAzure22-Apr-10 9:29 
NewsNew OData Service for SQL Azure Uses AppFabric Pin
GoAzure22-Apr-10 9:19
GoAzure22-Apr-10 9:19 
Question"Connecting to sql server files" error Pin
#realJSOP21-Apr-10 5:17
mve#realJSOP21-Apr-10 5:17 
AnswerRe: "Connecting to sql server files" error Pin
Tim Carmichael21-Apr-10 5:44
Tim Carmichael21-Apr-10 5:44 
AnswerRe: "Connecting to sql server files" error Pin
Luc Pattyn21-Apr-10 6:08
sitebuilderLuc Pattyn21-Apr-10 6:08 
Hi John,

IMO the relevant part of http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/6615124e-5501-4fb2-b498-638d3a7f01c6[^]

is this:

I encountered the same error message while trying to create a data connection from Visual Studio 2005 using the Server Explorer.

This is what I did:



# 1. Started Visual Studio 2005

# 2. Opened the Server Explorer (View | Server Explorer)

# 3. Right-clicked the Data Connections node

# 4. Selected Create New SQL Server Database... from the context menu

# 5. Selected my computer from the Server Name dropdown list

# 6. Selected authentication method (Use Windows Authentication)

# 7. Typed a name in the New Database Name field

# 8. Hit the OK button



That's when I received the following error message



An error has occured 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)



It made absolutely no sense. I wasn't trying to connect to a remote computer. I was simply trying to connect to the SQL Server 2005 Express Edition which was installed on my local computer during the Visual Studio 2005 installation.



After numerous attempts on several computers, I finally realized what I was doing wrong. By adding the database instance name to the server name (# 5), it actually worked. Instead of selecting <server name=""> from the dropdown list, I entered <server name="">\SQLExpress manually. That was obviously the problem.



SQL Server 2005 Express Edition is obviously installed as a named instance, since one has to provide the instance name in addition to the server name (even when there is only one instance running on the requested server).

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


GeneralRe: "Connecting to sql server files" error Pin
#realJSOP21-Apr-10 7:02
mve#realJSOP21-Apr-10 7:02 
AnswerRe: "Connecting to sql server files" error Pin
dan!sh 22-Apr-10 5:03
professional dan!sh 22-Apr-10 5:03 
GeneralRe: "Connecting to sql server files" error Pin
Luc Pattyn22-Apr-10 5:30
sitebuilderLuc Pattyn22-Apr-10 5:30 
GeneralRe: "Connecting to sql server files" error Pin
dan!sh 22-Apr-10 8:55
professional dan!sh 22-Apr-10 8:55 
GeneralRe: "Connecting to sql server files" error Pin
Luc Pattyn22-Apr-10 9:04
sitebuilderLuc Pattyn22-Apr-10 9:04 
Questionstoring only single value in primary key table and storing multiple values in foreign key table Pin
developerit21-Apr-10 4:06
developerit21-Apr-10 4:06 
AnswerRe: storing only single value in primary key table and storing multiple values in foreign key table Pin
Corporal Agarn21-Apr-10 4:41
professionalCorporal Agarn21-Apr-10 4:41 
AnswerRe: storing only single value in primary key table and storing multiple values in foreign key table Pin
Ashfield21-Apr-10 5:21
Ashfield21-Apr-10 5:21 
QuestionReturning 2 output parameters in Stored Procedure Pin
Dayekh21-Apr-10 1:17
Dayekh21-Apr-10 1:17 
AnswerRe: Returning 2 output parameters in Stored Procedure Pin
Ashfield21-Apr-10 2:36
Ashfield21-Apr-10 2:36 
GeneralRe: Returning 2 output parameters in Stored Procedure Pin
Dayekh21-Apr-10 4:15
Dayekh21-Apr-10 4:15 
GeneralRe: Returning 2 output parameters in Stored Procedure Pin
Ashfield21-Apr-10 5:19
Ashfield21-Apr-10 5:19 
QuestionGoofy Question About SQL Server Pin
Roger Wright20-Apr-10 16:26
professionalRoger Wright20-Apr-10 16:26 
AnswerRe: Goofy Question About SQL Server Pin
Luc Pattyn20-Apr-10 16:50
sitebuilderLuc Pattyn20-Apr-10 16:50 
JokeRe: Goofy Question About SQL Server Pin
Mycroft Holmes20-Apr-10 16:53
professionalMycroft Holmes20-Apr-10 16:53 
GeneralRe: Goofy Question About SQL Server Pin
Roger Wright22-Apr-10 14:47
professionalRoger Wright22-Apr-10 14:47 
AnswerRe: Goofy Question About SQL Server Pin
Mycroft Holmes20-Apr-10 16:51
professionalMycroft Holmes20-Apr-10 16:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.