Click here to Skip to main content
15,893,337 members
Home / Discussions / Database
   

Database

 
Questionbreadcrump to xml tree - categorypathes to treeview Pin
starlight7126-Apr-06 11:03
starlight7126-Apr-06 11:03 
QuestionReporting Service / SQL 2005 Pin
devvvy26-Apr-06 4:19
devvvy26-Apr-06 4:19 
QuestionSQL Connection problems Pin
achrafus26-Apr-06 2:28
achrafus26-Apr-06 2:28 
QuestionInsert in a table Pin
alee15.10.8826-Apr-06 1:17
alee15.10.8826-Apr-06 1:17 
AnswerRe: Insert in a table Pin
Colin Angus Mackay26-Apr-06 2:53
Colin Angus Mackay26-Apr-06 2:53 
AnswerRe: Insert in a table Pin
Eric Dahlvang26-Apr-06 6:28
Eric Dahlvang26-Apr-06 6:28 
Questionpassing an entire table to a stored procedure for update Pin
randprin25-Apr-06 23:09
randprin25-Apr-06 23:09 
QuestionSQL Server does not exist or access denied Pin
vicky45725-Apr-06 14:15
vicky45725-Apr-06 14:15 
Hi,

I have a big trouble with connecting a SQL server database... Frown | :(
The code for connecting SQL server database I used to connect to other SQL server database is as following:

Dim cnReg As SqlConnection
cnReg = New SqlConnection(ConfigurationSettings.AppSettings("MyConnection"))
cnReg.Open()
Dim dsReg As New DataSet
Dim comReg As New SqlCommand
With comReg
.CommandType = CommandType.Text
.CommandText = strSQL
.Connection = cnReg
End With
Dim daReg As New SqlDataAdapter(comReg)
daReg.Fill(dsReg, "Temp")
cnReg.Close()

In Web.config file
<appSettings>
<add key="MyConnection" value="Persist Security Info=False;Data Source=64.119.38.128;User ID=myid; Password=mypassword;Initial Catalog=mydb;" />
</appSettings>

The above code works correctly for my other projects. For my current project, since this hosting company doesn't allow external access SQL server database, I need to use server name, instead of server IP address, for the Data Source, so I change the setting in web.config as following:

<appSettings>
<add key="MyConnection" value="Persist Security Info=False;Data Source=whsql-v09.prod.mesa1.secureserver.net;User ID=myid; Password=mypassword;Initial Catalog=mydb;" />
</appSettings>

When I try to run the application, I got the error:
System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.

I am using .NET Framework 1.1 and have SQL server service manager installed on my testing machine. Also, have McAfee personal Firewall installed.

I think, it's probably because there is something wrong with the setting on my local machine. I have spent the whole day trying to find out the problem, but still couldn't solve it...

Can anybody give me some ideas about how to solve the problem? Any advices and help would be very appreciated!

Thanks,

-- modified at 20:16 Tuesday 25th April, 2006
AnswerRe: SQL Server does not exist or access denied Pin
Jerry Hammond25-Apr-06 18:22
Jerry Hammond25-Apr-06 18:22 
GeneralRe: SQL Server does not exist or access denied Pin
vicky45726-Apr-06 5:41
vicky45726-Apr-06 5:41 
QuestionBoth OUTPUT and Records from Sproc Pin
netsurf197025-Apr-06 12:31
netsurf197025-Apr-06 12:31 
Questionsqlexpress 2005 deployment problem Pin
User 91483325-Apr-06 3:15
User 91483325-Apr-06 3:15 
AnswerRe: sqlexpress 2005 deployment problem Pin
Paddy Boyd25-Apr-06 3:19
Paddy Boyd25-Apr-06 3:19 
GeneralRe: sqlexpress 2005 deployment problem Pin
User 91483325-Apr-06 3:44
User 91483325-Apr-06 3:44 
GeneralRe: sqlexpress 2005 deployment problem Pin
Paddy Boyd25-Apr-06 3:46
Paddy Boyd25-Apr-06 3:46 
GeneralRe: sqlexpress 2005 deployment problem Pin
User 91483325-Apr-06 21:07
User 91483325-Apr-06 21:07 
Questionplease help me Pin
manish2424-Apr-06 22:33
manish2424-Apr-06 22:33 
AnswerRe: please help me Pin
CWIZO25-Apr-06 21:46
CWIZO25-Apr-06 21:46 
QuestionHow to create dbs in Sql server 2005? Pin
sivakumarUSTRI24-Apr-06 21:01
sivakumarUSTRI24-Apr-06 21:01 
AnswerRe: How to create dbs in Sql server 2005? Pin
Frank Kerrigan25-Apr-06 0:35
Frank Kerrigan25-Apr-06 0:35 
AnswerRe: How to create dbs in Sql server 2005? Pin
Jerry Hammond25-Apr-06 4:42
Jerry Hammond25-Apr-06 4:42 
Questionlog file Pin
Krishnatv24-Apr-06 20:55
Krishnatv24-Apr-06 20:55 
AnswerRe: log file Pin
Colin Angus Mackay24-Apr-06 22:10
Colin Angus Mackay24-Apr-06 22:10 
QuestionSQL Server 2000 Database backup Pin
WDI24-Apr-06 20:30
WDI24-Apr-06 20:30 
AnswerRe: SQL Server 2000 Database backup Pin
Colin Angus Mackay24-Apr-06 20:39
Colin Angus Mackay24-Apr-06 20:39 

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.