
what's wrong with these sentences below?
Dim cnn As New SqlConnection("server=zjx2000\testsqlsvr;User=zjx; pwd=680228;database=WroxJokeShop")
Dim cmd As New SqlCommand("getdepartments", cnn)
cmd.CommandType = CommandType.StoredProcedure
cnn.Open()
...
when it step to "cnn.open()",I got an error "server not exist or refuse to access",something like that,but in a Access adp,the same connection string is ok! My english is poor,I hope you understand what I say.Thanks for your reply!