Hi
Are you using named instances of SQL Server?
First check whether u r able to connect to SQL Server to
SQL Enterpraise manager
HTH
Ravikanth
[color=blue]
>-----Original Message-----
>I am running an asp.net application on my development
>machine (Win2K, .NET framework). This prog connects to[/color]
a[color=blue]
>SQL Server (on another machine).
>When I run the following code it errors with the[/color]
following[color=blue]
>message: "SQL Server does not exist or access denied"
>
>Dim strConnect As String = Application("CO NN")
>Dim cnIntranet As New SqlConnection(s trConnect)
>Try
> cnIntranet.Open ()
>Catch ex As SqlException
> Response.Write( ex.Message & "<BR>")
> Return
>End Try
>
>'Where
>'Application(" CONN")
>= "server=servern ame;database=db name;uid=loginn ame;pwd=ab[/color]
cd[color=blue]
>efg"
>
>However if I copy the project up to the production
>Intranet server (Win2k) it works fine (pointing at the
>same sql server as when it doesn't work).
>I haven't done anything on the SQL server to allow[/color]
access[color=blue]
>from the production Intranet server but it works from
>there, but not my local IIS.
>
>I know this is probably a basic security problem but
>having searched the internet I can't find a soln.
>
>Regards
>.
>[/color]
Are you using named instances of SQL Server?
First check whether u r able to connect to SQL Server to
SQL Enterpraise manager
HTH
Ravikanth
[color=blue]
>-----Original Message-----
>I am running an asp.net application on my development
>machine (Win2K, .NET framework). This prog connects to[/color]
a[color=blue]
>SQL Server (on another machine).
>When I run the following code it errors with the[/color]
following[color=blue]
>message: "SQL Server does not exist or access denied"
>
>Dim strConnect As String = Application("CO NN")
>Dim cnIntranet As New SqlConnection(s trConnect)
>Try
> cnIntranet.Open ()
>Catch ex As SqlException
> Response.Write( ex.Message & "<BR>")
> Return
>End Try
>
>'Where
>'Application(" CONN")
>= "server=servern ame;database=db name;uid=loginn ame;pwd=ab[/color]
cd[color=blue]
>efg"
>
>However if I copy the project up to the production
>Intranet server (Win2k) it works fine (pointing at the
>same sql server as when it doesn't work).
>I haven't done anything on the SQL server to allow[/color]
access[color=blue]
>from the production Intranet server but it works from
>there, but not my local IIS.
>
>I know this is probably a basic security problem but
>having searched the internet I can't find a soln.
>
>Regards
>.
>[/color]
Comment