Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





37000[Microsoft][ODBC SQL Server Driver][SQL Server]Login Failed- User: Reason: Not Associated With


I have sql6.5 push replication to many remote subscribers.
Need add one subscriber sql6.5 "XYZ"(all are in the same domain), got error of <<37000[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed- User: Reason: Not associated with a trusted SQL Server connection>>.

I apply the same settings for "XYZ" sql executive like other subscribers with domainuserABC and assign it as the target server "XYZ" admin group. There is no problem in stop and restart the "XYZ" sql executive service. But at the time from the publisher to subscribe the XYZ, the task list show above error.
MSSQLServer service logon with System Account option.

This is a production issue, and I have spent around 2 days already.
Thanks for help
David




View Complete Forum Thread with Replies

Related Forum Messages:
37000[Microsoft][ODBC SQL Server Driver][SQL Server]Login Failed- User: Reason: Not Associated Wit
I have sql6.5 push replication to many remote subscribers.
Need add one subscriber sql6.5 "XYZ"(all are in the same domain), got error of <<37000[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed- User: Reason: Not associated with a trusted SQL Server connection>>.

I apply the same settings for "XYZ" sql executive like other subscribers with domainuserABC and assign it as the target server "XYZ" admin group. There is no problem in stop and restart the "XYZ" sql executive service. But at the time from the publisher to subscribe the XYZ, the task list show above error.
MSSQLServer service logon with System Account option.

This is a production issue, and I have spent around 2 days already.
Thanks for help
David

View Replies !
Error String: [Microsoft][ODBC SQL Server Driver][SQL Server]Login Failed For User '(null)'. Reason: Not Associated With A Trus
 

Hi all

This Job ran yester day fine,to day It got failed with this error

any suggestion to troubleshoot problem is appreciated.

 
DTSRun OnError:  DTSStep_DTSTransferObjectsTask_1, Error = -2147203052 (80044814)

   Error string:  [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

   Error source:  Microsoft SQL-DMO (ODBC SQLState: 28000)

   Help file:  SQLDMO80.hlp

   Help context:  1131

 

Error Detail Records:

 

Error:  0 (0); Provider Error:  0 (0)

   Error string:  [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

   Error source:  Microsoft SQL-DMO (ODBC SQLState: 28000)

   Help file:  SQLDMO80.hlp

   Help context:  1131

 

DTSRun OnFinish:  DTSStep_DTSTransferObjectsTask_1

DTSRun:  Package execution complete.

 

View Replies !
[Microsoft][ODBC SQL Server Driver][SQL Server]Login Failed For User 'ErrorLog'.
Hi, all

recently, I use the following script(somebody else) to create a database on a remote server: the script is as follow:
/*************************/
CREATE DATABASE [ErrorLog]
GO

Use ErrorLog

CREATE TABLE [dbo].[Errors] (
[ID] [int] IDENTITY (1, 1) NOT NULL ,
[SessionID] [char] (12) NULL ,
[RequestMethod] [char] (5) NULL ,
[ServerPort] [char] (5) NULL ,
[HTTPS] [char] (3) NULL ,
[LocalAddr] [char] (15) NULL ,
[HostAddress] [char] (15) NULL ,
[UserAgent] [varchar] (255) NULL ,
[URL] [varchar] (400) NULL ,
[CustomerRefID] [varchar] (20) NULL ,
[FormData] [varchar] (2000),
[AllHTTP] [varchar] (2000),
[ErrASPCode] [char] (10) NULL ,
[ErrNumber] [char] (11) NULL ,
[ErrSource] [varchar] (255) NULL ,
[ErrCategory] [varchar] (50) NULL ,
[ErrFile] [varchar] (255) NULL ,
[ErrLine] [int] NULL ,
[ErrColumn] [int] NULL,
[ErrDescription] [varchar] (1000) NULL ,
[ErrAspDescription] [varchar] (1000) NULL ,
[InsertDate] [datetime] NOT NULL
) ON [PRIMARY]



--Create the user "ErrorLog"

if not exists (select * from master.dbo.syslogins where loginname = N'ErrorLog')
BEGIN
declare @logindb nvarchar(132), @loginlang nvarchar(132) select @logindb = N'Navigator', @loginlang = N'us_english'
if @logindb is null or not exists (select * from master.dbo.sysdatabases where name = @logindb)
select @logindb = N'master'
if @loginlang is null or (not exists (select * from master.dbo.syslanguages where name = @loginlang) and @loginlang <> N'us_english')
select @loginlang = @@language
exec sp_addlogin N'ErrorLog', 'secret', @logindb, @loginlang
END
GO

if not exists (select * from dbo.sysusers where name = N'ErrorLog' and uid < 16382)
EXEC sp_grantdbaccess N'ErrorLog', N'ErrorLog'
GO

Grant select, insert On Errors to ErrorLog
/***************************/
in my *.asp program, I used the following string to connect to the database on the remote server.
/********
con.open "dsn=ErrorLog;uid=ErrorLog;pwd=secret;"
********/
the following message comes up:
/********/
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'ErrorLog'.
/*********/
what is the problem here?
when I set up dsn ErrorLOG, I used "abc" userID and password "XXX" which is our server database administrator assigned to me. I tested connection in odbc, it is OK
I just don't get, ther user ErrorLog already had login id and granted access to database errorlog. any clue, please help!
Betty

View Replies !
ERROR=[Microsoft][ODBC SQL Server Driver][SQL Server]Login Failed For User &#39;NT AUTHORITYANONYMOU
Im trying to log onto SQL 7 database using Windows NT Authentication from an ASP application running on a domain server and im getting this error:

ERROR=[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITYANONYMOUS LOGON'.

An account has been setup in SQL 7 which is the account being used from windows 2000 login.

Can anyone help please

thanks

View Replies !
28000: [Microsoft][ODBC SQL Driver][SQL Server] Login Failed
This one may stump the experts....  Feel like a challenge?

The application is VB 4.0, running on a SQL 6.5 DB.    The company downsized and only one pc was left to access the application/database, which is mission critical (don't get me started ;-)   The current administrator rebuilt this pc and in the process  application no longer connects to the DB. 

The error received is 28000: [Microsoft][ODBC SQL Driver][SQL Server] Login failed

Here is where is gets strange.  The I've tested from the pc and while I can connect with the appropiate ODBC source driver when using MS Access, when attempting the same with MS Query it gets weird.  The tables are displayed,  but attempting to access the data results in the following error:  incorrect syntax near 'sps.dbo'.

Attempting the same from another PC resulted in the ability to access the tables and the data. 

I removed the File and System and User DSNs that referenced the subject database and recreated them. They test fine, but the problem discribed above persists.  Has anyone else experienced a similar problem?  

 

View Replies !
28000[Microsoft][ODBC SQL Server Driver][SQL Server] Login Failed
The following error occurs whenever I attempt to start the distribution task which starts up using login 'repl_subscriber' ---> 28000[Microsoft][ODBC SQL Server Driver][SQL Server] Login failed <--- Now, I have publishing/subscriber operations going on with other SQL Servers and they are working. I am able to use ISQL/W and connect using repl_subscriber, sa, Administrator, repl_publisher from either of the 2 SQL Servers involved with the problem. All SQL Servers (4) are running 6.5; (3) have SP5a applied. (1) has only 6.5 w/o any SP applied. ODBCPING works fine to both SQL Servers involved using sa, Administrator, repl_subscriber, repl_publisher logins. All logins are set to using 'US_English' as the default language. All are in the same NT Domain. All are using named pipes for the default client library --- of the 2 involved, the named pipes versions are not the same. All are configured for Standard Login security. Does anyone know exactly what I am missing?

T.J. Roberts
mailto:roberts@organize-it.com

View Replies !
[S0001][unixODBC][Easysoft][ODBC SQL Server Driver][SQL Server]Login Failed For User 'test1'
Hello,

I am new to SQL Server, sorry for my ignorance !!!

I have installed SQL Server 2005 Express on my desktop (Win 2000 Pro.)

I have created a new database.

I just created a new login/user (SQL Authentication) and when I try to login, it

errors out:

[S0001][unixODBC][Easysoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'test1'

I believe the error is from SQL Server and not from ODBC driver.

I am also only able to connect by using my own userid (the one that I am connected to my desktop): domainuserid, and then I am only able to connect to 'master' db:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/usr/local/etc>isql SQLSERVER_POS -v
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL> use pcspos
[S0001][unixODBC][Easysoft][ODBC SQL Server Driver][SQL Server]Could not locate entry in sysdatabases for database 'pcspos'. No entry found with that name. Make sure that the name is entered correctly.
[ISQL]ERROR: Could not SQLExecute
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

View Replies !
Entreprise Manager Error Message: &"[Microsoft][ODBC SQL ServerDriver][SQL Server]Login Failed For User '#####'. The User Is Not Associatedwith A Trusted SQL Server Connection.(28000,18452)&"
Can anyone give a quick description of the meaning of this message andwhat needs to be done to get a connection.I'm running DBArtisan with SQLServer 2000 client SP4 installed.I also get the same message with MS Enterprise Manager so this iscoming out of the actual ODBC connection attempt.Thanks in advance!

View Replies !
Login Failed- User: Reason: Not Defined As A Valid User Of A Trusted SQL Server Connection.
Hi,

i'm a newbie in SQL. I can't connect to SQL 6.5 server using ASP ADO. Below is the program code

<%
set conn=server.createobject("adodb.connection")
conn.open "dsn=Central;uid=sa;pwd="
%>

An error message appears
Login failed- User: Reason: Not defined as a valid user of a trusted SQL Server connection.

I've already created a ODBC System DSN named Central
parameter Server Local and used Trusted connection checked.

Then under sql Manager there is a sa with a blank password.

Please help.

View Replies !
Login Failed For User 'TBD'. Reason: Not Associated With A Trusted SQL Server Connection.
I am setting up a shopping cart and I get the following error message -- Login failed for user 'TBD'. Reason: Not associated with a trusted SQL Server connection. It is probably a Web.Config issue abut am not sure how to edit the file.

<appSettings>

<add key="DBProvider" value="MSSQL" />
<add key="DBConn" value="data source=xx.xx.xx.xx;initial catalog=AspDotNetStorefront31;user id=TBD;password=TBD;persist security info=True;packet size=4096" />

</appSettings>

View Replies !
Login Failed For User ''. Reason: Not Associated With A Trusted SQL Server Connection.
Hello,

I have some problem here. I have a sql server installed on one machine and I have another development machine for my asp application. How could I actually access the asp application and sql server at the same time from another machine within the network. I kept on getting the error message above.

Thank you for your help :)

View Replies !
Login Failed For User ''. Reason: Not Associated With A Trusted SQL Server Connection.
Hi,

 

I have 2 windows 2003 server, i instllaed sql server 2005 enterprise edition on the first one (Mixed Mode), and i am trying to install sql server reporting 2000 on the second one,

I installed the sql 2000 connectivity only on the second one , and i installed the sql server sp4 also,  while installing reporting services i used the sql login account (sa,pwd)

i got the following error :

Cannot connect to sql server instance ...

Login failed for user ''. Reason: Not associated with a trusted SQL Server connection.

NB1: Allow Remote connection is enabled on sql server 2005.

NB2: I tried to connect from server 2 to server 1 from odbc and it worked  properly with (sa,pwd) i have only a problem from reporting server.

Please any help?

Tarek Ghazali

SQL Server MVP

 

View Replies !
Login Failed For User ''. Reason: Not Associated With A Trusted SQL Server Connection
Hello, here we have 2 developers, one developer has sql 2005 in his machine, the connection string has Integrated Security=SSPI, that developer can connect to the application, the other user gets that error when he tries to execute the application froms its own IIS.

The sql server has windows authentication,  I want that the application uses one account, I tried to create one account, and give db_owner to it on the database, then I changed the connection string and  it happens the same thing.

TKS

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
hi, 

there are two win2003 servers in the same workgroup. one has mssql 2000 server and other one has asp.net 2.0 web application connecting that mssql server. mssql server Authentication is SQL Server and Windows but when i try to connect using sql authentication with uid and pwd, i get the error;
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

searched a lot about it but couldnt find any solutions. the win2003 server which hosts mssql server has active directory. is this could be the problem? thanks in advance.

 ametedit :here is my connection string;"data source=192.168.16.1;initial catalog=SOLAR4;Trusted_Connection=yes;UID=Sql_user;PWD=123;"sql_user is dbowner of Solar4 database.

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection
I dont believe that no one can help me in this damn error,Please, I'm gonne lose my job offer If I didnt fix this. I have spent 7 days searching with no use !!
I use ASP.NET 2.0 with C# to develop an intranet site, it was working perfectly when i was on Visual Studio, when i tried to publish the site it gave me that error.
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
the web application on IIS server, windows 2003 - the database on a different server windows 2003, sql server 2000.
Regaeding that we have proxy server, one firewall.
I tried to do the following steps with no use :(
1. Create a Domain Account with priveleges similar NETWORKSERVICE (windows server 2003).2. Grant this Domain Account (DomainName/NETWORKSERVICE ) access in the SQL Server Database for the necessary databases (created a new login for this user and gave it the privillage creator, read, write)3. <identity impersonate="true" userName="DomainNameUserName" password="password" />The second method is to simply set identity impersonate to true and assign the username and password in the IIS.1. Type inetmgr from your command prompt and give enter.2. This would open the IIS Control Panel.3. Expand the appropriate nodes and select the Virtual Directory of your application.4. Right Click and select Properties.5. Switch to the Directory Security Tab.6. Under Anonymous access and authentication control click Edit7. Check the Enable Anonymous access in case you want people to access the application without logging in with Windows Logon Screen.8. Uncheck the Allow IIS to control password and enter the DomainName/UserName and Password in the respective boxes. Usually IIS uses IUSER_MACHINENAME credentials for Anonymous access.9. Uncheck if any other authentication mode is checkedI did the previous step exactly like that. and the error still come.I remind you again we have a proxy server with one firwallI dont running under https X
My connection string is:    <add name="LocalSqlServer" connectionString="Data Source=database server IP; Initial Catalog=database name; Integrated Security=True"; UID="sa" ; pwd="password";      providerName="System.Data.SqlClient" />Please find me a solution

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
Basic setup

IIS 6 with ASP.Net 2.0, Integrated Windows Authentication turned on (anonymous turned off)
SQL Server 2000 with Windows Only Authentication on (SQL Server authentication turned off)
web.config file contains the following relevant entries:<identity impersonate="true" /><authentication mode=Windows" />
connection string:Data Source=[server name]; Integrated Security=SSPI; Initial Catalog=[database name];
When I run my query on my development server, it runs perfectly. When I run it on the production server (which is just an exact xcopy of the development web site), I get the "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection" error. I have verified that the settings I listed above are the same on both sites. What else should I check for?
I placed some test code on the page that outputs the current logged on user and the current asp.net user, and everything seems fine (both usernames are the same - the expected domainusername of the impersonated user who logged in to the site), so I don't know why the database would say the user was null. My test code for outputting the user is below:
string authUserName = User.Identity.Name;string aspUserName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;Response.Write("You are: " + authUserName + "<br/>");Response.Write("This page runs as: " + aspUserName);

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection
Hi I have am developing on xp machine with iis 5.1 and trying to connect to a seperate windows 2003 machine with mssql 2000 installed.I would like to use a trusted connection and I added an asp account on the sql server with permissions to the database and also edited the security tab on IIS to have this account. I unchecked allow IIS to control this password.  When I look in the event viewer on my local machine I get an error:Process information:     Process ID: 2388     Process name: aspnet_wp.exe     Account name: MACHINENAMEASPNET  Exception information:     Exception type: SqlException     Exception message: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.    Any Ideas as to how I can fix this? 

View Replies !
I Am Also Getting: Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
Hi, am having the error above in my Subject Line.  I seem to have the problem on my host web service, they have IIS 6.0 on a 2003 Server, and SQL 2000 and SQL 2005 on another server that I connect to seperately.  I am using asp.net 2.0 and SQL 2000 Desktop version.  I am in the very basic beginning of this website development, all I am trying to accomplish here is to enter in a login and password and be redirected to another webpage.  This works on my local laptop with XP Pro, but when I try it on the server that I host my website on, I am getting this error.  Im not sure on what is going wrong here so I am at the mercy of asp gods of this site , below is some more info. 
 
web.config
<?xml version="1.0"?><!--     Note: As an alternative to hand editing this file you can use the     web admin tool to configure settings for your application. Use    the Website->Asp.Net Configuration option in Visual Studio.    A full list of settings and comments can be found in     machine.config.comments usually located in     WindowsMicrosoft.NetFrameworkv2.xConfig --><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <appSettings><add key="ConnectionString2" value="sqlXXX.XXXXXXXXXXX.com;uid=My_ID;pwd=My_Password;database=azwduser" />       </appSettings> <connectionStrings><remove name="LocalSqlServer"/>  <add name="LocalSqlServer" connectionString="Data Source=sqlXXX.XXXXXXXXXXX.com;Initial Catalog=AZWDUSER;Integrated Security=True" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web>  <!--             Set compilation debug="true" to insert debugging             symbols into the compiled page. Because this             affects performance, set this value to true only             during development.
            Visual Basic options:            Set strict="true" to disallow all data type conversions             where data loss can occur.             Set explicit="true" to force declaration of all variables.        -->  <authorization>   <allow roles="Admin"/>  </authorization>  <roleManager enabled="true"/>  <compilation debug="true" strict="false" explicit="true"/>  <pages>   <namespaces>    <clear/>    <add namespace="System"/>    <add namespace="System.Collections"/>    <add namespace="System.Collections.Specialized"/>    <add namespace="System.Configuration"/>    <add namespace="System.Text"/>    <add namespace="System.Text.RegularExpressions"/>    <add namespace="System.Web"/>    <add namespace="System.Web.Caching"/>    <add namespace="System.Web.SessionState"/>    <add namespace="System.Web.Security"/>    <add namespace="System.Web.Profile"/>    <add namespace="System.Web.UI"/>    <add namespace="System.Web.UI.WebControls"/>    <add namespace="System.Web.UI.WebControls.WebParts"/>    <add namespace="System.Web.UI.HtmlControls"/>   </namespaces>  </pages>  <!--            The <authentication> section enables configuration             of the security authentication mode used by             ASP.NET to identify an incoming user.         -->  <authentication mode="Forms">   <forms loginUrl="login.aspx" defaultUrl="rdp.aspx"/>  </authentication>  <membership>   <providers>    <remove name="AspNetSqlMembershipProvider"/>    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>   </providers>  </membership>  <!--            The <customErrors> section enables configuration             of what to do if/when an unhandled error occurs             during the execution of a request. Specifically,             it enables developers to configure html error pages             to be displayed in place of a error stack trace.-->        <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">            <error statusCode="403" redirect="NoAccess.htm" />            <error statusCode="404" redirect="FileNotFound.htm" />        </customErrors>         </system.web></configuration>
 
Am I missing somthing here?
 Chrissrbytes@yahoo.com

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection
Hello,since now we had the SQL Server(2000,SP4) and the IIS on one Windows 2003 Server running. Now we shared both. One Server for SQL Server and one for the IIS. But now we always get this error Message:Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connectionHas anyone an idea how we can solve the problem ? On the IIS Integrated Windows Authentication is activated.GreetingsBN

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
This code is giving me this error
using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Text;
 
 
namespace WebApplication1
{
/// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{

SqlConnection con;
string sql;
SqlDataAdapter adExisting;

//con = new SqlConnection("Data Source=slon12d11012";User ID=nnichol1;);
//con = new SqlConnection("Initial Catalog=DACari;Data Source=slon12d11012;User ID=nnichol1;Password=xxxxx");
//con = new SqlConnection("Data Source=slon12d11012;Initial Catalog=DACari;Integrated Security=SSPI;");
//con = new SqlConnection("Server=slon12d11012;Database=DACari;Trusted_Connection=yes;");

con = new SqlConnection("Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DACari;Data Source=slon12d11012;Packet Size=4096;Workstation ID=WLON110355965;");



sql = "select 'RCRF' as DacType, R.Id, R.AmendmentInstructions as Comments, 'Comment' as TypeOfComment, D.ExternalID as RiskId,D.AmendedByUserId as UserId, D.AmendedDateTime";
sql+="from dbo.ITRR_RCRFDetailComments R, RCRFDetail D";
sql+="where R.Id *= D.Id";
sql+="and R.AmendmentInstructions *=D.AmendmentInstructions";
sql+="union";
sql+="select 'RCRF' as DacType, R.Id, R.ApproverComments as Comments,'RejectedComment' as TypeOfComment,D.ExternalID as RiskId, D.AmendedByUserId as UserId, D.AmendedDateTime";
sql+="from ITRR_RCRFApproverComments R, RCRFDetail D";
sql+="where R.Id *= D.Id";
sql+="and R.ApproverComments *=D.ApproverComments";
sql+="union";

sql+="select 'DAC' as DacType, R.Id, R.Comments, 'Comment' as TypeOfComment,D.RiskId, D.AmendedByUserId as UserId, D.AmendedDateTime from ITRR_DacDetailComments R, DacDetail D";
sql+="where R.Id *= D.Id";
sql+="and R.Comments *=D.Comments";
sql+="union";
sql+="select 'DAC' as DacType, R.Id, R.RejectedComments as Comments,'RejectedComment' as TypeOfComment,D.RiskId, D.AmendedByUserId as UserId, D.AmendedDateTime";
sql+="from ITRR_DacDetailRejectedComments R, DacDetail D";
sql+="where R.Id *= D.Id";
sql+="and R.RejectedComments *=D.RejectedComments";

sql+="union";

sql+="select 'CAP' as DacType, R.CapId, R.Comments, 'Comment' as TypeOfComment, D.CurrentRiskId,D.AmendedByUserId as UserId, D.AmendedDateTime from dbo.ITRR_CAPDetailComments R, CapDetail D";
sql+="where R.CapId *= D.CapId";
sql+="and R.Comments *=D.Comments";
sql+="union";
sql+="select 'CAP' as DacType, R.CapId, R.RejectedComments as Comments,'RejectedComment' as TypeOfComment,D.CurrentRiskId, D.AmendedByUserId as UserId, D.AmendedDateTime";
sql+="from ITRR_CapDetailRejectedComments R, CapDetail D";
sql+="where R.CapId *= D.CapId";
sql+="and R.RejectedComments *=D.RejectedComments";

sql+="union";

sql+="select 'MODAC' as DacType, R.Id, R.MiddleOfficeComments as Comments, 'MiddleOfficeComment' as TypeOfComment, D.RiskId,D.AmendedByUserId as UserId, D.AmendedDateTime";
sql+="from ITRR_MODacDetailComments R, MODacDetail D";
sql+="where R.Id *= D.Id";
sql+="and R.MiddleOfficeComments *=D.MiddleOfficeComments";
sql+="union";
sql+="select 'MODAC' as DacType, R.Id, R.RequestorComments as Comments,'RequestorComment' as TypeOfComment,D.RiskId, D.AmendedByUserId as UserId, D.AmendedDateTime";
sql+="from ITRR_RequestorComments R, MODacDetail D";
sql+="where R.Id *= D.Id";
sql+="and R.RequestorComments *= D.RequestorComments";

adExisting = new SqlDataAdapter(sql,con);
con.Open();
DataSet ds = new DataSet();
try
{
adExisting.Fill(ds,"Existing");
}
catch
{
throw;
}
finally
{
con.Close();
}




/**
System.Data.SqlClient.SqlConnection conn =
new System.Data.SqlClient.SqlConnection ();
// TODO: Modify the connection string and include any
// additional required properties for your database.
conn.ConnectionString =
"integrated security=SSPI;data source=slon12d11012;" +
"persist security info=False;initial catalog=DACari";
try
{
conn.Open();
// Insert code to process data.
}
catch (Exception ex)
{
Response.Write("Failed to connect to data source"+ex.ToString());
}
finally
{
conn.Close();
}
**/
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}

Server Error in '/WebApplication1' Application.


Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.Source Error:



Line 75:
Line 76: adExisting = new SqlCommand(sql,con);
Line 77: con.Open();
Line 78: DataSet ds = new DataSet();
Line 79: trySource File: c:inetpubwwwrootwebapplication1webform1.aspx.cs    Line: 77 Stack Trace:



[SqlException: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in c:inetpubwwwrootwebapplication1webform1.aspx.cs:77
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731



Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection
Hi i installed msde with follwoing attributes for a project DotnetNUke..C:sql2ksp3MSDE>Setup.exe SAPWD="password "INSTANCENAME="DNNV3" SECURITYMODE=SQLin my web.config file here is what i am using==><appSettings>    <add key="SiteSqlServer" value="Server=(local);Database=DNNV3;uid=;pwd=password;" />   but i am getting below error...can anyone PLEASE help me on this.thanks a lotInstalling DotNetNukeUpgrade Error: ERROR: Could not connect to database specified in connectionString for SqlDataProvider
 
--------------------------------------------------------------------------------
Server Error in '/dotnetnuke' Application. --------------------------------------------------------------------------------
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more

View Replies !
Login Failed For User 'username'. Reason: Not Associated With A Trusted SQL Server Connection.
This is the error I get below. What did I do wrong?

Login failed for user 'useranme' exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'dnn'. Reason: Not associated with a trusted SQL Server connection.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqlException: Login failed for user 'dnn'. Reason: Not associated with a trusted SQL Server connection.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +484
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
DotNetNuke.AdminDB.ExecuteSQLScript(String strScript)
DotNetNuke.Global.Application_Start(Object Sender, EventArgs E)

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
Anyone,I have a user "john" whose machine is part of the "job" domain. He istrying to establish an odbc connection to an MS SQL 2000 server on the"school" domain. He uses Windows authentication to establish the odbcconnection however it gives the error "Login failed for user '(null)'.Reason: Not associated with a trusted SQL Server connection."I am guessing that the odbc connection is trying to pass thecredentials of jobjohn to the sql server. And since the sql serveris on the school domain it expects the credentials of schooljohn. Isthere anyway to specify the username and password so that this willwork even though the servers are on different domains without havingto trust the domains? Thanks in advance forany help on this!!Tony

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Conn
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection

Newbie here, so thanks in advance for any help. SQL Server 2000 on Windows 2000, Mixed Mode authentication IS enabled.

System DSN set on 8 workstations, a mix of 2000 - 98 and XP Pro

App uses DSN connection, specifies sa user and password. DSN's all set up the same, Client config is TCP/IP, SQL Server also set to only accept TCP/IP.

Trying to authenticate using SQL Server Authentication. XP Pro machines generate the above error. 98 and 2000 machines connect flawlessly.

I am stumped. Have read the MS knowledgebase articles, read threads here. Nothing seems to apply. It's an Internet app, so using Windows Authentication is not desired. I just don't understand why XP pukes while the other MS platforms connect just fine.

If anyone has any thoughts, I'd appreciate suggestions!

Thanks

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
 

My company is using classic asp pages for clients to sign in. A COM object is used in the page to do members and lists management job. The database server(SQL 2000) and web server(Windows server 2000) are on different machine.
 
Now I am laungching a project which wrap the COM into class so that we can upgrade our existing webforms to .net based. The folder which runs the .net website is set as anonymous access, and the username is set to a domian user as "POOHCORNERUM52API". I ran an asp page which is ok.
 
However if I runs an .aspx page even with very simply sentences It runs into error page like:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
 
I googled on the internet, some pages suggest that .net pages are running under aspnet account, we need to impersonate to run that page with €śPOOHCORNERUM52API€? account, but the problem still exists even we do that impersonating like this:
 

<identity userName="poohcornerUM52API" impersonate="true" password="xxxxxxx" />
 
And on the SQL server I can see the user poohcornerUM52API is existed in the logins:
 
POOHCORNERUM52API          Windoes User        Permit            master        English
 
I ran the SQL profile to filter those with fail logins, and the event is captured however the field NTUserName and LoginName fields are empty.
 
Since I have done the impersonating, the page is running with the user "POOHCORNERUM52API", why those two fields are empty? I guess that is why the error come from.
 
If any one can help me out of this problem will be greatly appreciated.
 

View Replies !
Err Msg: Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
Hi, I have been working on this for a few days now.  Read enough searchs on line.  Still not working.
 
I have a web IIS 6.0 server and sql server 2005 both on the same Windows 2003 server.  I have an ASP.net 2.0 application try to access the database, getting the error message as describer above.
 
By the way, the app is an internet application, so can not using window integrated security.
 
The config for the ASP .net application is like this:
Enable anonymous access using the IWAM_machine local account.

None of the authentication method is checked.
The app pool is also set to use the identity of the IWAM_machine account.
 
In sql server, using the mixed mode acess.
Added the IWAM_machine account, granted the account access to the databases needed
 
The app web config is set as:

<identity impersonate="true"/>

<authentication mode="Forms">

<forms name="ApplicationAB.ASPXAUTH" loginUrl="/ApplicationAB/login.aspx" />

</authentication>
 

<appSettings>

<add key="conString" value="Data Source=XXX.XX.XX.XXX;Initial Catalog=MyDB;Integrated Security=SSPI"/>

</appSettings>

 
 
Could you please help?!!  I am really frustrated with this.
 
Thanks a million.

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
I am receiving the following message when connecting via query analzyer to SQL server using windows authentication.(error 18452). I have a login created with the sys admin server role on the server. When I connect using SQL authentication it works.

I added myself to the local admin group on the server, this allows it to work. The same situation is seen with another user.

I am using windows 2000 sp4 server and SQL 2000 SP3, connecting from NT4. I get the same issue if I use TCP or named pipes. We have been using SQL security but are moving to windows authentication - but this issue is stopping us.

I have checked and upgraded my version of MDAC to match the server version 2.7 (sp1)


Any help would be much appreciated.


Thanks

Ian

View Replies !
Err Msg: Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
I have a single user receiving this error msg on a web page of our Intranet web app after they change their password.  The user can access the web app just fine until they interact with this particular page.  This page accesses the database while data is entered via an ADO connection.  (Classis ASP)

Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

The user has recently received a new desktop and the problem persists.  The database login account created for the user has been deleted and recreated with no change.

We are running SQL Server 2000 with SQL Server and Windows Authentication enabled.

Connection string: Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ProductionDatabase Data Source=ProductionServer

Our solution has been to change the user's password back to their old password.

Any ideas?

Thanks.

Edit:  I am not entirely sure this is a SQL Server issue but I am starting here.

View Replies !
Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection
HI,
 
Im have deployed a report to my RS2005 server and when i run it I get the error

An error has occurred during report processing.

Cannot create a connection to data source 'test'.

Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.


My datasources ''test'' is as follows ="Data Source=" & Parameters!ServerName.Value & ";Initial Catalog=master"





 
It is not a shared datasource


For complete source code and explanation of the problem, I am trying to replicate this excercise posted on this hyperlink
 
http://www.sqlservercentral.com/articles/Reporting+Services/61339/#
 
I have modified the  DBA_REP.RDS datasource to point to a server on my network and set up the , I have got the report rendering within Visual Studio but when i deploy I get the above error...can someone please advise?
 
to get the example working..make sure you
1. change the default server under the servername parameter
2. change dataset2 to be a storedprocedure and not text command
3. create the sql_server table
 

View Replies !
Perplexed: Login Failed For User '(null)'. Reason: Not Associated With A Trusted SQL Server Connection.
I am having problems with my app.  I am developing an app on my local PC.   I am using IIS locally to test it in Visual Studio.My application is hitting a SQL Server on a remote machine.I have a drop-down list that works find when testing from my local PC.  But when I have remote users test this application I get the following error when it tries to run the code that gets the contents of the drop-down list from the SQL Server:System.Data.SqlClient.SqlException: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.Here is my connection string from web.config: </code>
<add key="dbconnect" value="Server=SQLSERVERWEB;Database=WebDB;Trusted_Connection=True" /></code>And my info about impersonation:<code>
<identity impersonate="true" />
<authentication mode="Windows" /> </code>And the VB code from my Application:
</code>
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
Label1.Text = User.Identity.Name
ddlDepartments.DataSource = Dep()
ddlDepartments.DataTextField = "DepartmentName"
ddlDepartments.DataValueField = "DepartmentID"
ddlDepartments.DataBind()
End If
End SubPublic Function Dep() As SqlDataReader
Dim dbConnection As New SqlConnection(ConfigurationSettings.AppSettings("dbconnect"))
Dim dbCommand As New SqlCommand("sp_retrieve", dbConnection)
dbCommand.CommandType = CommandType.StoredProcedure
Try
dbConnection.Open()
Dim Results As SqlDataReader = dbCommand.ExecuteReader(CommandBehavior.CloseConnection)
Return Results
Catch ex As Exception
Label1.Text = ex.ToString()
End Try
End Function</code>I have IIS running under an account that is on both the SQL Server and on the IIS server and have granted dbo, read, write rights to the account. I have tried disabling anonymous access, and the other authentication routines and it still does not seem to work.   Why will this work fine on mylocal PC remote PCs can't retrieve data from the SQL Server?

View Replies !
Aspclassic On IIS7 SQL 2005. ODBC SQL Server Driver[SQL Server]Cannot Open Database &&"&&" Requested By The Login. The Login Failed
 
Hi all,

Have just tried my sql server 2005 connected asp classic website on II7 for the first time and have gotten some errors.
First off I have unchecked show friendly errors in IE and have enabled ASP to send error messages to the browser.

My error I get is when I execute a basic .asp page:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "mydatabasename" requested by the login. The login failed.
/index.asp, line 10 which is dbConnect.Open cstring


from this peice of code:

sub dbOpen()
  set dbConnect = Server.CreateObject("ADODB.Connection")
  cstring = "DSN=mysqldsn; Trusted Connection=yes"            
  dbConnect.Open cstring
end sub

I have gone into ODBC and have setup both a user dsn and file dsn that equals mysqldsn and points to my database (I know you only need to set up one DSN but I'm not sure which)

I also notice under mywebsite home panel there is a connection string option. Do I do anything with that?


Definatley a lot more to it than XP's II6!

Any help or advice would be greatly appreciated.

View Replies !
Login Failed For User , The User Is Not Associated With A Trusted Sql Server Connection. (microsoft SQL Server,Error:18452)
Login Failed for user , the user is not associated with a trusted sql server connection. (microsoft SQL Server,Error:18452)

 
hi ,
i am getting the above error message once in a while maybe two or 3 times a week , and then it goes away in 10 to 15 minutes or 5 minutes ,
 
our mode is set to mixed and we are able to connect and use both sql and windows , but once in a while ,  it will give us the above message when we try connecting throught sql server management studio client (using sql 05) using windows login , although it lets us connect using sql login while the windows login is denied, and after a while it lets us connect with both.
 
occurs randomly on some days , we run our servers on VM ware virtual machines using windows 2003 r2 enterprise 64  bit  with sp2 with esx 301 virtual machine.
 
would appericate any feedback on this thanks
 
 

View Replies !
Microsoft.Data.Odbc.OdbcException: ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]
Hi Everybody,


On localhost this application works fine but when I put on remote server. I am getting following errors. For both localhost and server, I am using same remote sql 2000. I will appreciate any help.

Thanks,

Arif



Server Error in '/' Application.
--------------------------------------------------------------------------------

ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ')'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.Data.Odbc.OdbcException: ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ')'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[OdbcException: ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ')'.]
Microsoft.Data.Odbc.OdbcConnection.HandleError(IntPtr hHandle, SQL_HANDLE hType, RETCODE retcode) +27
Microsoft.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method) +838
Microsoft.Data.Odbc.OdbcCommand.ExecuteNonQuery() +80
Calgary.venues.Page_Load(Object sender, EventArgs e) in c:inetpubwwwrootCalgarySitevenuesvenues.aspx.vb:32
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

View Replies !
Login Failed For User &&"David&&". Reason: Not Associated With A Trusted SQL Server Connection.
I am very new to SQL Server Express, so I watched the video on how to create permissions in SQLSE. I did what I seen, and I still cannot connect to the specifed database.

I did create a login account in the main part using SQL Auth., then I create a login account in the database, and set its role as dbowner.

After all that I disconnected the object explorer and tried to use the account that I just made and it didnt work, I also went to VBE and tried to connect from within the database explorer and I got the same error above.

I can go to a different pc and try to connect with the same result.

I did watch the video again to make sure that I didnt miss up and what I did was right by the video.

I did try to set another name and user account with no prevail.

Where did I miss up?

Davids Learning

View Replies !
Login Failed For User 'sa'. (Microsoft SQL Server, Error: 18456)
I just upgraded SQL Server 2000 to 2005 without any errors.  Afterwards, I tried registering with sa and it failed.  I registered with another sysadmin login to get into most of my databases, but  I need sa to work for my backup software Idera SQLSafe to login to the database.

Does anyone have any experience or recommendations?  I know my password is correct.

 

Mindy

View Replies !
Login Failed For User &&<user_name&&>. (Microsoft SQL Server, Error: 18456)
Please help I keep getting this message when I log on to my data base. Not sure what state 1 relates too
 
TITLE: Connect to Server
------------------------------
Cannot connect to <server_name>
------------------------------
ADDITIONAL INFORMATION:
Login failed for user <user_name>. (Microsoft SQL Server, Error: 18456)
 
------------------------------
BUTTONS:
OK
------------------------------
Server Name: <server~name>Error Number: 18456
Severity: 14
State: 1
Line Number: 65536

View Replies !
Login Failed For The User'xxxx'(Microsoft SQL Server 2005. Error:18456)
hi,
i am getting the following error message while i am trying to login to the SQL Server 2005 on my vista laptop. i installed the server with dual authentication modes.

Login failed for the user'xxxx'(Microsoft SQL Server 2005. Error:18456)

if you have solution for my problem please send a reply as early as possible.

thanks,
ravi kishore.ch

View Replies !
Login Failed: Reason: User &#39;_&#39; Not Defined As A Valid User Of Trusted
Our server has integrated security setup, upon startup of the server,
we have a continuous flow of error msg:
Login Failed: Reason: User '_' not defined as a valid user of trusted
connection.
The timing of these messages only around 30 seconds apart
The only incident from Technet I can find is Q186314, but we don't have replication setup, anyone knows where I can look into ?
I recycle the server but didn't help.
I appreciate any help I can get ..
Thanks.

View Replies !
Error : &&"cannot Open User Default Database. Login Failed. Login Failed For User 'server/user'
 

i'm using the Enterpirse library logger to write logs into a database.
When choosing connection string i choose the database i want in the "connection properties" dialog box and
push 'Test connection' button.
everything goes well.
 
then i open the SQL Server Management studio express and connect to the databse to check some things,
from that point on , when i push the 'Test Connection' button in the Enterprise library i get the error:

 
"cannot open user default database. Login failed. login failed for user My'server/MyuserName'"

 
even when i close the sql server manager , it is still stuck - the connection test doesn't work anymore....
it only work when i restart the computer.
 
why ?

View Replies !
Login Failed - Reason: The User Is Disabled
Hi,

I am having a problem with sql server 2005. I would like to access the database but unfortunately I disabled the account I am using to login. Can somebody tell me how can I enable it if possible?

 

Thanks

View Replies !
ODBC Error: [Microsoft][ODBC SQL Server Driver]Communication Link Failure
Hi

When I open design table in 2000 Enterprise Manager and clicked on Index properties tab ,I am getting following error "ODBC error: [Microsoft][ODBC SQL Server Driver]Communication link failure"

Please help me.

thanks in advance

mike

View Replies !
Link Server Error: Login Failed For User 'Domainuser'. (Microsoft SQL Server, Error: 18456)
 
Hi,
 
I am trying to create a linked server between 2 SQL Server 2005 boxes.
When I create the linked server I specify a login for the connection.
The strange part is that I get the following error when it goes to test the connection:
 
The test connection to the linked server failed
Login failed for user 'Domainuser'. (Microsoft SQL Server, Error: 18456)
 
 
I can use the SQL mangement studio to conenct to the database using this same login.
The login has all the server roles assigned to it also.
 
Can anyone shed some light as to what may be the problem?
 
 
Thanks,
 
 

View Replies !
Login Failed For User '%.*ls'. Reason: The Password Of The Account Must Be Changed.
 

Hi All,
 
I have a sql server database user with Password must change, and I get this error when i use ODBC connection wizard,
 






18488


Login failed for user '%.*ls'. Reason: The password of the account must be changed.
 
where would the windows shows up to change it similary we do when we connect through Management studio and provide new password.
 
Any idea.

View Replies !
Server: MSg 17, Level 16, State 1 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server Does Not Exist Or Access Denied
Hi,

When I am trying to access SQL Server 2000 database from another machine i got this error

Server: MSg 17, Level 16, State 1 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied

but I could access the database on same server and in that server i could access other databases in different server.

 

 

View Replies !
Login Failed For User 'dd_user'. Reason: The Password Of The Account Must Be Changed.
 

Any idea why this happened and what do i have to do to reslove it?
 



Code Snippet
Login failed for user 'dd_user'.  Reason: The password of the account must be changed.
 
 

View Replies !
Help! SQL Server Error - [Microsoft][ODBC SQL Server Driver][SQL Server] Invalid Object Name ...
Dear all,On Win2000 server with SP3, I am trying to access a SQL Server 7.0database, "TestDB", from VB6 via a SQL Server ODBC system DSN using ADO2.7. In SQL Server Enterprise Manager, there is a login named "Tester".In its property window, NO "Server Roles" was assigned but its"Database Access" was set to "TestDB". This login was also made as theuser of "TestDB" with "public", "db_datareader" and "db_datawriter"selected as its "Database role membership". All the tables I am tryingto access in "TestDB" were created under "Tester".My code is like:Set conn = New ADODB.Connectionconn.Open "DSN=TestDSN;UID=Tester;PWD=test"Set cmd = New ADODB.Commandcmd.ActiveConnection = conncmd.CommandText = SQLset rs = cmd.Execute()If I set the SQL to something like "SELECT * FROM tbl_test", I alwaysget an error of "-2147217865" saying "[Microsoft][ODBC SQL ServerDriver][SQL Server] Invalid object name tbl_test". If I set the SQL to"SELECT * FROM Tester.tbl_test", everything runs properly. Could anyoneplease kindly advise why the first SQL is not working? Or in otherwords, why must I prefix the table name with its owner while the DBconnection is already made under that owner name? Thanks in advance.Tracy

View Replies !
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server Does Not Exist Or Access Deni
Hi..

when I use MSSQL in local ASP files , it is fine.

But If I try to connect another ASP file that is hosted by another machine, I get the following error!

[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

in local I connect to my sql like below

Server=AAA*DDDDDDD

when I connect to mssql from another machine I try that

Server=IP/AAA*DDDDDDD
Server=IP

View Replies !
1[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server Does Not Exist Or Access Denied.
Hi,
 
when I was sending 50 simultaneous connections to the web services, I got these 2 errors:
- "1[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. "

- "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)"
 

Everything worked fine if I ran 10 simultaneous connections. I am using Microsoft ACT to load test the web service. The database is SQL Server 2000. Any idea about why this is happening?
 
Appreciate your help! Thanks!
 
Jason Zhu

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved