3
Answers

error-40 sql exception

krishna prasad

krishna prasad

16y
5.4k
1
Hai all...

I am  getting this following error when i try to connect to the database....

An error has ocured while establishing a connection to the server.When connecting to sql server 2005,this failure  may  be caused by the fact that that under the default settings SQL server 2005 does not allow remote connections.(Providre:Named Pipes Provider,Error:40-could not open a connection to sql server)

Help me please....
Answers (3)
0
shimtanny

shimtanny

NA 440 0 20y
Hi Cell[, ] Cells = null; This line doesn't make an instance. It's just a declaration. It declares an tow dimensional array with Cell objects. Unfortunately the variable name was choosen the same as the class. Maybe it looks more clear the following way: Cell[,] myCells = null; Here is an example with another type than Cell: int[,] a = new int[2,5]; Simon