Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2007, 04:50 AM
Registered User
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to prrao
Default plz help with sql server 2005

i was doing a program which connects to and retrieves info frm database.
i was doing program using vs 2005 , and i had to create a database .
i clicked on server explorer---data connections--add new database.

i used (.) as server and windows authentication, and database name as "stud".


"an error has occured while establishing connection to server.When connecting to sql server 2005,this failyre may be caused by fact that under default settings,SQL server does not allow remote connections.(provider named pipes provider,error:40 , could not open connection to sql server"
is there any change needed in SQL server config manager(start-all progs--sql server2005-config mngr.)

any help greatly appreciated.



prrao
 
Old June 26th, 2007, 05:14 AM
Registered User
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to prrao
Default

all my programming in ado.net has come to a standstill because i cannot to sqlserver2005
plz moderator, or fellow programmer , help me out.

thanks in advance.

prrao
 
Old June 26th, 2007, 12:59 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

For new installation of SQL server 2005 you need to set it to permit external connections.

Start -> Programs -> Microsoft SQL Server 2005 -> Configuration Tools -> SQL Server Configuration Manager

SQL Native Client Configuration
  -> Client Protocols

Choose the protocols you want to enable. I have TCP/IP and Named Pipes enabled and I can connect to my server.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
reg conn to sql server 2005 from vb.net 2005.. veda SQL Server 2005 2 July 1st, 2008 12:16 AM
Conflict in SQL Server 2000 and SQL Server 2005 ayan.mukherjee SQL Language 0 June 30th, 2008 03:34 AM
Password Field in Sql Server 2005 Plz help zrtv SQL Server 2005 2 January 7th, 2008 06:26 PM
migrating from sql server 2000 to sql server 2005 abinashpatra SQL Server 2005 2 December 1st, 2006 03:45 PM
New to SQL Server 2005 vaasmru SQL Server 2005 3 October 5th, 2006 10:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.