I'm trying to connect to a SQL 2000 db that is on another server then the
web server.
I setup and ID and PWD to access the SQL db via the code and it works
locally and when I put the
everything on the web server I get an Access denied to SQL Database.
what is causing this, what do i need to change 7 1204
1. Make sure you have mixed mode security (rerun install if not) - sounds
like you have this
2. Check what libraries you have available. In most instances, you want
TCP/IP to avoid having to contact SQL via named pipes (and its install on
the web server). You can install this library on the server through the
install routine. By default, I believe it is not installed.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************
Think Outside the Box!
************************************************
"Mike" <an*******@discussions.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... I'm trying to connect to a SQL 2000 db that is on another server then the web server. I setup and ID and PWD to access the SQL db via the code and it works locally and when I put the everything on the web server I get an Access denied to SQL Database.
what is causing this, what do i need to change
we did what you recommend below and still getting the login failed error
message.
here is my connection string, how can i make this point to a DSN instead of
the actual server name right now.
I need to get this app up and running quickly and been going through this
permission issue for 2 days
dim ds as DataSet
Dim MyConnection As SqlConnection
Dim MyCommand As SqlDataAdapter
MyConnection = New
SqlConnection("server=SQLServer;database=MRL_SSC;U ID=ID;PWD=password")
MyCommand = New SqlDataAdapter("select * from Form", MyConnection)
DS = New DataSet()
MyCommand.Fill(DS, "Form")
MyDataGrid.DataSource = DS.Tables("Form").DefaultView
MyDataGrid.DataBind()
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote
in message news:es*************@TK2MSFTNGP10.phx.gbl... 1. Make sure you have mixed mode security (rerun install if not) - sounds like you have this 2. Check what libraries you have available. In most instances, you want TCP/IP to avoid having to contact SQL via named pipes (and its install on the web server). You can install this library on the server through the install routine. By default, I believe it is not installed.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Mike" <an*******@discussions.microsoft.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... I'm trying to connect to a SQL 2000 db that is on another server then
the web server. I setup and ID and PWD to access the SQL db via the code and it works locally and when I put the everything on the web server I get an Access denied to SQL Database.
what is causing this, what do i need to change
Try this, just to be safe:
Change from server=SQLServer
to server={IP Address of Server}
Since you are using SqlConnection, the rest of the string looks fine. If
that does not work, post the actual wording of the error message, as it may
give some additional clues.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************
Think Outside the Box!
************************************************
"Mike" <an*******@discussions.microsoft.com> wrote in message
news:uj****************@TK2MSFTNGP11.phx.gbl... we did what you recommend below and still getting the login failed error message. here is my connection string, how can i make this point to a DSN instead
of the actual server name right now. I need to get this app up and running quickly and been going through this permission issue for 2 days
dim ds as DataSet Dim MyConnection As SqlConnection Dim MyCommand As SqlDataAdapter
MyConnection = New SqlConnection("server=SQLServer;database=MRL_SSC;U ID=ID;PWD=password")
MyCommand = New SqlDataAdapter("select * from Form", MyConnection)
DS = New DataSet() MyCommand.Fill(DS, "Form")
MyDataGrid.DataSource = DS.Tables("Form").DefaultView MyDataGrid.DataBind()
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM>
wrote in message news:es*************@TK2MSFTNGP10.phx.gbl... 1. Make sure you have mixed mode security (rerun install if not) -
sounds like you have this 2. Check what libraries you have available. In most instances, you want TCP/IP to avoid having to contact SQL via named pipes (and its install
on the web server). You can install this library on the server through the install routine. By default, I believe it is not installed.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Mike" <an*******@discussions.microsoft.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... I'm trying to connect to a SQL 2000 db that is on another server then the web server. I setup and ID and PWD to access the SQL db via the code and it works locally and when I put the everything on the web server I get an Access denied to SQL Database.
what is causing this, what do i need to change
ok I'll give that a shot.
does having the IP make of difference then the actual name of the server? If
so why?
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote
in message news:uA**************@tk2msftngp13.phx.gbl... Try this, just to be safe:
Change from server=SQLServer to server={IP Address of Server}
Since you are using SqlConnection, the rest of the string looks fine. If that does not work, post the actual wording of the error message, as it
may give some additional clues.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Mike" <an*******@discussions.microsoft.com> wrote in message news:uj****************@TK2MSFTNGP11.phx.gbl... we did what you recommend below and still getting the login failed error message. here is my connection string, how can i make this point to a DSN instead of the actual server name right now. I need to get this app up and running quickly and been going through
this permission issue for 2 days
dim ds as DataSet Dim MyConnection As SqlConnection Dim MyCommand As SqlDataAdapter
MyConnection = New SqlConnection("server=SQLServer;database=MRL_SSC;U ID=ID;PWD=password")
MyCommand = New SqlDataAdapter("select * from Form",
MyConnection) DS = New DataSet() MyCommand.Fill(DS, "Form")
MyDataGrid.DataSource = DS.Tables("Form").DefaultView MyDataGrid.DataBind()
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote in message news:es*************@TK2MSFTNGP10.phx.gbl... 1. Make sure you have mixed mode security (rerun install if not) - sounds like you have this 2. Check what libraries you have available. In most instances, you
want TCP/IP to avoid having to contact SQL via named pipes (and its install on the web server). You can install this library on the server through
the install routine. By default, I believe it is not installed.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Mike" <an*******@discussions.microsoft.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > I'm trying to connect to a SQL 2000 db that is on another server
then the > web server. > I setup and ID and PWD to access the SQL db via the code and it
works > locally and when I put the > everything on the web server I get an Access denied to SQL Database. > > what is causing this, what do i need to change > >
> does having the IP make of difference then the actual name of the server?
If so why?
Depends on the network relationship of the 2 machines. IP address always
works.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Mike" <an*******@discussions.microsoft.com> wrote in message
news:On**************@TK2MSFTNGP11.phx.gbl... ok I'll give that a shot.
does having the IP make of difference then the actual name of the server?
If so why?
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM>
wrote in message news:uA**************@tk2msftngp13.phx.gbl... Try this, just to be safe:
Change from server=SQLServer to server={IP Address of Server}
Since you are using SqlConnection, the rest of the string looks fine. If that does not work, post the actual wording of the error message, as it may give some additional clues.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Mike" <an*******@discussions.microsoft.com> wrote in message news:uj****************@TK2MSFTNGP11.phx.gbl... we did what you recommend below and still getting the login failed
error message. here is my connection string, how can i make this point to a DSN
instead of the actual server name right now. I need to get this app up and running quickly and been going through this permission issue for 2 days
dim ds as DataSet Dim MyConnection As SqlConnection Dim MyCommand As SqlDataAdapter
MyConnection = New SqlConnection("server=SQLServer;database=MRL_SSC;U ID=ID;PWD=password")
MyCommand = New SqlDataAdapter("select * from Form", MyConnection) DS = New DataSet() MyCommand.Fill(DS, "Form")
MyDataGrid.DataSource = DS.Tables("Form").DefaultView MyDataGrid.DataBind()
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote in message news:es*************@TK2MSFTNGP10.phx.gbl... > 1. Make sure you have mixed mode security (rerun install if not) - sounds > like you have this > 2. Check what libraries you have available. In most instances, you want > TCP/IP to avoid having to contact SQL via named pipes (and its
install on > the web server). You can install this library on the server through the > install routine. By default, I believe it is not installed. > > -- > Gregory A. Beamer > MVP; MCP: +I, SE, SD, DBA > > ************************************************ > Think Outside the Box! > ************************************************ > "Mike" <an*******@discussions.microsoft.com> wrote in message > news:%2****************@TK2MSFTNGP12.phx.gbl... > > I'm trying to connect to a SQL 2000 db that is on another server then the > > web server. > > I setup and ID and PWD to access the SQL db via the code and it works > > locally and when I put the > > everything on the web server I get an Access denied to SQL
Database. > > > > what is causing this, what do i need to change > > > > > >
OK i have the IP address in the connection string, the ID and PWD setup on
the db server, and i'm still getting access denied.
Any suggestions, I'm totally stumped now
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uE**************@TK2MSFTNGP12.phx.gbl... does having the IP make of difference then the actual name of the
server? If so why? Depends on the network relationship of the 2 machines. IP address always works.
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Mike" <an*******@discussions.microsoft.com> wrote in message news:On**************@TK2MSFTNGP11.phx.gbl... ok I'll give that a shot.
does having the IP make of difference then the actual name of the
server? If so why?
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote in message news:uA**************@tk2msftngp13.phx.gbl... Try this, just to be safe:
Change from server=SQLServer to server={IP Address of Server}
Since you are using SqlConnection, the rest of the string looks fine.
If that does not work, post the actual wording of the error message, as
it may give some additional clues.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Mike" <an*******@discussions.microsoft.com> wrote in message news:uj****************@TK2MSFTNGP11.phx.gbl... > we did what you recommend below and still getting the login failed error > message. > here is my connection string, how can i make this point to a DSN instead of > the actual server name right now. > I need to get this app up and running quickly and been going through this > permission issue for 2 days > > dim ds as DataSet > Dim MyConnection As SqlConnection > Dim MyCommand As SqlDataAdapter > > > MyConnection = New >
SqlConnection("server=SQLServer;database=MRL_SSC;U ID=ID;PWD=password") > > > MyCommand = New SqlDataAdapter("select * from Form", MyConnection) > > DS = New DataSet() > MyCommand.Fill(DS, "Form") > > MyDataGrid.DataSource = DS.Tables("Form").DefaultView > MyDataGrid.DataBind() > > > > > > > > "Cowboy (Gregory A. Beamer) [MVP]"
<No************@comcast.netNoSpamM> wrote > in message news:es*************@TK2MSFTNGP10.phx.gbl... > > 1. Make sure you have mixed mode security (rerun install if not) - sounds > > like you have this > > 2. Check what libraries you have available. In most instances, you want > > TCP/IP to avoid having to contact SQL via named pipes (and its install on > > the web server). You can install this library on the server
through the > > install routine. By default, I believe it is not installed. > > > > -- > > Gregory A. Beamer > > MVP; MCP: +I, SE, SD, DBA > > > > ************************************************ > > Think Outside the Box! > > ************************************************ > > "Mike" <an*******@discussions.microsoft.com> wrote in message > > news:%2****************@TK2MSFTNGP12.phx.gbl... > > > I'm trying to connect to a SQL 2000 db that is on another server then > the > > > web server. > > > I setup and ID and PWD to access the SQL db via the code and it works > > > locally and when I put the > > > everything on the web server I get an Access denied to SQL Database. > > > > > > what is causing this, what do i need to change > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Harry |
last post by:
Using Oracle 8i enterprise on win 2000 (sp3)
Installed the standard configuration & whenever I make a connection it
takes about 10 secs. It's running on a P1900 with 1gb Ram so no reason
there...
|
by: Mark |
last post by:
OK. Here we go. I have an ASP.NET application that does many hits to a SQL Server DB on a separate server. When I first created this application (2 years ago) and was very new to ASP/ASP.NET, to...
|
by: Rajeev Tipnis |
last post by:
http://support.microsoft.com/default.aspx?scid=kb;en-
us;819450
Questions:
1) Is this patch (fix) applicable to the .NET 1.1
Framework as well? That is, if we have Framework 1.1 (On...
|
by: Lenny Shprekher |
last post by:
Hi,
I am getting issues that Oracle collecting opened sessions (connections)
from my webservice using regular System.Data.OleDb.OleDbConnection object.
I am guessing that this is connection...
|
by: galico |
last post by:
Hi All,
We are having a very strange problem with the above. We have designed an
application in ASP.NET 2.0 that uses the enterprise library data application
blocks amongst others. We seem to be...
| |
by: sam44 |
last post by:
Hi,
At startup the user log on and chooses the name of a client from a
dropdownlist, which then changes dynamically the connection string (the
name of the client indicates which database to use)....
|
by: =?Utf-8?B?RFNJU3VwcG9ydA==?= |
last post by:
Hi,
I have this ASP.NET application developed with VS.NET 2003 VB.NET and
deplyed on Windows 2K server IIS 5.
This application uses the following:
- Oracle 10G databse
- MS Data Access Block...
|
by: Fred Zuckerman |
last post by:
I have a A2K database that includes some linked tables (these links are SQL
views).
Sometimes there are "issues" with the SQL server and the users receive a
timeout error whenever they try to...
|
by: fniles |
last post by:
I am using VS2003 and connecting to MS Access database.
When using a connection pooling (every time I open the OLEDBCONNECTION I use
the exact matching connection string),
1. how can I know how...
|
by: hal9000cr |
last post by:
We are running into some problems with the execution of DB2 stored
procedures when their isolation level is set to:
set transaction isolation level READ UNCOMMITTED, READ WRITE;
This is a web...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |