Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Tuesday, March 27, 2012

Connecting to sql server 2000 on Godaddy error: (provider: Named Pipes Provider, error: 40

Facts:

1. I am using my account on Godaddy trying to connect to my sql server db.

2. I can get into my db using user id and password.

3. Godaddy's help file shows this for a connection string:

connectstr = "Driver={SQL Server};SERVER=" & db_server & ";DATABASE=" &
db_name & ";UID=" & db_username & ";PWD=" & db_userpassword

4. My connection string: "Server=whsql-v09.prod.mesa1.secureserver.net;uid=dbasolutions;pwd=***;database=DB_87972;" & _
"Trusted_Connection=False providerName=System.Data.SqlClient"

{password **** out}

5. Get error message

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

I tried to email Godaddy's help desk with this information.

There first response: We do not allow remote connections to our sql server database.

There second response was to read the help file!

Does anybody have any suggestions?

Thanks in advance,

bswanson

Finally, I did get a tech support who would give me an ear. He got this script from his tech support to test my connection:

mssqltest.aspx

<%@. Import Namespace="System.Data.SqlClient" %>
<%
Dim oSQLConn As SqlConnection = New SqlConnection()
oSQLConn.ConnectionString ="Server=whsql-v09.prod.mesa1.secureserver.net;uid=dbasolutions;pwd=*****;database=DB_87972;"
try
oSQLConn.Open()
catch dag as exception
response.write(dag.message)
End try
Response.write("Connection Open!")
%>

Now we know we are connecting to sql server!

The next issue I realized that I was facing is that the code on the server was not recompiling. It was on the 1.1 framework running on asp.net 2.0.

The code was upgraded to asp.net 2.0 and uploaded again. Still it bombed. In an effort to get it working the debugger was turned on.

The next problem turned out to be in the <compilers> . The compiler option is not allowed. After deleting this code:

compilerOptions="/define:Debug=True /define:Trace=True /imports:Microsoft.VisualBasic,System,System.Collections,System.Configuration,System.Data,System.Drawing,System.Web,System.Web.UI,System.Web.UI.HtmlControls,System.Web.UI.WebControls"

out of the compilers, it worked!

On my local machines, I have not had trouble with recompiling. But on Godaddy, it did not recompile.

Hope this can help someone. I am open to suggestions.

Thanks,

Bswanson

Sunday, March 25, 2012

Connecting to SQL Mobile within VS-2005

I am getting an error when I run my project within VS2005. I am trying to connect to a SQL Mobile (sdf) file thru code using a connection string. As soon as run my project within the VS2005 environment, I get the following error when the code tries to connect:
"The file is not a valid database file. An internal error has occurred. [,,,Databasename,,]"
The source of the error is: Microsoft SQL Server 2000 Windows CE Edition
Native Error of: 25011
I am am deploying to POcket PC 2003 SE Emulator.
This code worked fine in VS2003 with SQLCE 2.0. But I have now updated the projects to VS2005 and recreated the database sdf file within the VS2005 environment.
Could someone please help me ASAP?
Thanks.

There is no database compatibility between SQL CE 2.0 and SQL Mobile. Database created through one cannot be opened by other. In you case, since you have upgraded the project and re-created the database, you have SQL Mobile database. But your application still has references to SQL CE 2.0 provider. So now your application is trying to open a SQL CE 3.0 Database using SQL CE 2.0 provider; that’s the reason why in your error string you can see

The source of the error is: Microsoft SQL Server 2000 Windows CE Edition
Native Error of: 25011

In you application you need to remove the reference from 2.0 provider and add reference to 3.0 provider.

Thanks

-Mani

Connecting to SQL from JBuilder

Hi everyone,

I am trying to connect to a SQL Server Database from an aplication in java, but I received the following error: No suitable driver

I am using JDBC and a ODBC connection call TP2. My string connection look like this

Connection con = DriverManager.getConnection ("jdbc:odbc:TP2", "sa", "sql");

What I do not have clear enought is where should I copy my jar files ??

I really appreciate your help !!!!!!!!!!!!!!
BRthis link may help u. http://forum.java.sun.com/thread.jspa?threadID=720810
and this, http://www.devdaily.com/java/edu/pj/pj010024/ if it is a connection error.
I ve no idea about the jar file u mentioned,better u post ur question in java forum.|||Download the MS JDBC driver or the jTDS JDBC driver

Connecting to SQL error 40

I'm trying to connect to an SQL server, but I'm unable. It suggests this is because SQL server does not allow remote connections, and points me to the named pipes provider, error 40 Could not open a connection to SQL server.

I am running SQL express service pack 2 under Vista. I am a member of SQL administrators (set during installation).

Under the SQL Server Configuration manager, SQL server and Browser are running, the protocols for sqlexpress and the native client have enabled shared memory, named pipes, and tcp/ip.

I tried removing and creating a new database. Now it sits under the database Engine section of Management Studio Express, with a white circle on the database icon. When I try to connect to this database, using either windows authentication or sql server authentication, it fails.

What else is there to try? If there was a troubleshooting guide, that would be helpful.

We can ignore this question. After 'fiddling around' it is now working. Couldn't describe what I did though. I think the error message is misleading though.

connecting to SQL DATABASE ENGINE

hello everybody!!!

I am very new to SQL SERVER 2005 EXPRESS EDITION

while connecting to DATABASE ENGINE i got this error message.....

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (.Net SqlClient Data Provider)

any solution please?

Hi,

If you are trying on a local machine.

login properly :

server instance: computer_name\SQLSERVER_INSTANCE_NAME

user name : computer_name\user_name

If trying on a remote machine:

have a look in the following link:

http://blogs.msdn.com/sqlexpress/archive/2005/05/05/415084.aspx

Hope it'll help.

|||

this error is very common... You check whether the instance is configured for Remote connection

Start --Microsoft sql server 2005-- Configuration Tools -- SQL Server Surface Area Configuration -- Surface Area configuration for services and connections -- Select Remote Connection -- Select Local and remote connection Radio button and using both TCP/IP and named pipes

ALso check whether the firewall is enabled. if yes create exception for 1433 and 1434

Madhu

sqlsql

Thursday, March 22, 2012

connecting to SQL 2000 Server gives SQL 2005 error message

Hi,

Here is the syntax of the connection string within the web.config file:

<connectionStrings>
<clear />

<addname="MyConnectionString"connectionString="Data Source=000.000.000;Initial Catalog=Database Name;Persist Security Info=True;User ID=XXXXXX;Password=XXXXXX;"providerName="System.Data.SqlClient" />

</connectionStrings>

The test page has a GridView in it which uses the connectionstring fron the web.config file.

Error Message:

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Not sure why .NET thinks it's a SQL 2005 server

I can connect to the database via VS 2005, and through Enterprise Manager... just from the ASP.NET page.

Any ideas?

Thanks,
Roland

By default SQ2005 does not have remote connections enable, you need to go to Surface Configuration and the first tap change from pipe to remote connections. That shall fix the problem.

|||

Thanks Al, but the problem is that the server is SQL 2000 and NOT SQL 2005.

So, I'm not sure why .NET thinks, or is getting the information to say that the SQL server is SQL 2005.

So to reiterate the question:

Why do I get a SQL 2005 error while connecting to a SQL 2000 database?

Thanks again,

Roland

|||

Then must be a firewall between or again you can change SQL 2000 to use only pipes, check that and let me know

|||

Why you got a message about MS SQL Server 2005 while the version you have is MS SQL Server 2000?

This is beacuse you are using MS Viusal Studio.NET 2005 which install a SQL Express (lite SQL Server - similar to MSDE) on your machine and by default it will coneect to it.

This SQL Express uses a SQL Server 2005 engine, and that is why you saw "When connecting to SQL Server 2005, ...." message.

Ok, what to do?

Change the default connection string from your IIS.

Open your IIS, then click on your "Virtual Directory" (e.g. your ASP.NET Website) then go to its configuration and change the Server name part in the ConnectionString.

Hope this will help you as it helped me eairler.

Regards,

sqlsql

Connecting to Reporting Services in Management Studio

I get the following error in connectig to RS in Management Studio - what do I
need to do to fix this - thanks.
Paddy
--
The report server has encountered a configuration error. See the report
server log files for more information. (rsServerConfigurationError)
Access to the path 'C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting
Services\ReportServer\RSReportServer.config' is denied.Go to the NTFS Permissions of C:\Program Files\Microsoft SQL
Server\MSSQL.3\Reporting Services\ReportServer\RSReportServer.config'
and make sure that ASPNET computer account has read access to this file.
or if the ReportServer directory has the correct permissions then just check
the inherit permission from parent checkbox.
"Paddy" wrote:
> I get the following error in connectig to RS in Management Studio - what do I
> need to do to fix this - thanks.
> Paddy
> --
> The report server has encountered a configuration error. See the report
> server log files for more information. (rsServerConfigurationError)
> Access to the path 'C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting
> Services\ReportServer\RSReportServer.config' is denied.

Connecting to reporting services

I am trying to connect to my reporting services. I keep getting the following error. I am in the sysadmin role What else do I need access to in order to connect?
TIA,
Joe
TITLE: Connect to Server

Cannot connect to ENSQLD1\ENSQLD1_2005.


ADDITIONAL INFORMATION:

The request failed with HTTP status 401: Access Denied. (Microsoft.SqlServer.Management.UI.RSClient)


BUTTONS:

OK

Are you a local system admin to the Report Server? If not then a local admin will have to grant you rights to the Report server. The Database roles have no meaning to the Report Server service.

-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.sqlsql

Connecting to reporting services

I am trying to connect to my reporting services. I keep getting the following error. I am in the sysadmin role What else do I need access to in order to connect?
TIA,
Joe
TITLE: Connect to Server

Cannot connect to ENSQLD1\ENSQLD1_2005.


ADDITIONAL INFORMATION:

The request failed with HTTP status 401: Access Denied. (Microsoft.SqlServer.Management.UI.RSClient)


BUTTONS:

OKAre you a local system admin to the Report Server? If not then a local admin will have to grant you rights to the Report server. The Database roles have no meaning to the Report Server service.

-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.

Connecting to Report Services now broken

I am now getting the error below while trying to connect to a registered server for reporting services. I was able to connect before I was messing with my IIS Settings for the Reports Folder under Default Web Site but I've reverted those changes back to their defaults and I'm still having issues. SSRS is running in Config Manager.

=====================================================

TITLE: New Server Registration

Testing the registered server failed. Verify the server name, login credentials, and database, and then click Test again.


ADDITIONAL INFORMATION:

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
<head>
<title>
SQL Server Reporting Services
</title><meta name="Generator" content="Microsoft SQL Server Reporting Services 9.00.1399.00" />
<meta name="HTTP Status" content="500" />
<meta name="ProductLocaleID" content="9" />
<meta name="CountryLocaleID" content="1033" />
<meta name="StackTrace" content />
<style>
BODY {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE: 8pt; COLOR:black}
H1 {FONT-FAMILY:Verdana; FONT-WEIGHT:700; FONT-SIZE:15pt}
LI {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE:8pt; DISPLAY:inline}
.ProductInfo {FONT-FAMILY:Verdana; FONT-WEIGHT:bold; FONT-SIZE: 8pt; COLOR:gray}
A:link {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3366CC; TEXT-DECORATION:none}
A:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#FF3300; TEXT-DECORATION:underline}
A:visited {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3366CC; TEXT-DECORATION:none}
A:visited:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; color:#FF3300; TEXT-DECORATION:underline}

</style>
</head><body bgcolor="white">
<h1>
Reporting Services Error<hr width="100%" size="1" color="silver" />
</h1><ul>
<li>An internal error occurred on the report server. See the error log for more details. (rsInternalError) <a href="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsInternalError&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=9.00.1399.00" target="_blank">Get Online Help</a></li><ul>
<li>Object reference not set to an instance of an object.</li>
</ul>
</ul><hr width="100%" size="1" color="silver" /><span class="ProductInfo">SQL Server Reporting Services</span>
</body>
</html>
--. (Microsoft.SqlServer.Management.UI.RSClient)


BUTTONS:

OK

Never mess with rs virtual directories. I learned it few months ago. Just reinstall ur RS2005 again you should be ok.

-kushpaw

Tuesday, March 20, 2012

Connecting to Oracle 9i Server using ODBC from an SSIS package

I am trying to connect to a Oracle 9i Server to execute a sql task, but the connection when tested seems to fail with the following error from the Integration Services Project:

Test connection failed because of an error in initializing provider. ERROR [NA000][Microsoft][ODBC driver for Oracle][Oracle]ORA-12541: TNS:no listener

ERROR[IM006][Microsoft ODBC Driver Manager] Driver's SQLSetConnectAttr failed

ERROR[0100][Microsoft ODBC Driver Manager] The driver does not support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).

The connection was configured and tested from Oracle's SQLPlus session. Please note that the port that the TNS Server is listening is not the default. Is there somewhere I can specify the port in the SSIS connection manager to resolve the issue.

I have tried OLEDB connection and that does not work either.

Any inputs will be appreciated.

Thanks,

Monisha

I use the ODBC Connection in my jobs connecting to Oracle without a problem. Generally this message occurs because the Oracle listener is down. You don't have to specify the port in the SSIS connection manager.|||

I have the DSN created using Microsoft ODBC Driver for Oracle and from the same box I can connect the Oracle server from a SqlPlus session, but when I drag an execute sql task in a SSIS package and create a ODBC connection using system datasource name. I specify the username and password. When I hit the test connection button I get the error that I mentioned earlier.

Test connection failed because of an error in initializing provider. ERROR [NA000][Microsoft][ODBC driver for Oracle][Oracle]ORA-12541: TNS:no listener

ERROR[IM006][Microsoft ODBC Driver Manager] Driver's SQLSetConnectAttr failed

ERROR[0100][Microsoft ODBC Driver Manager] The driver does not support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).

|||Hi,

Im runnign into the same problem. MY DSN works fine when i test in the Data Access tool while creating it. When i use it with in my activex script task it throws an error when i execute a SQL the same error. Did you find a solution for this. Please suggest. Im trying to connect from my DTS Package.

thank you,
Raja

Connecting to Oracle 9i Server using ODBC from an SSIS package

I am trying to connect to a Oracle 9i Server to execute a sql task, but the connection when tested seems to fail with the following error from the Integration Services Project:

Test connection failed because of an error in initializing provider. ERROR [NA000][Microsoft][ODBC driver for Oracle][Oracle]ORA-12541: TNS:no listener

ERROR[IM006][Microsoft ODBC Driver Manager] Driver's SQLSetConnectAttr failed

ERROR[0100][Microsoft ODBC Driver Manager] The driver does not support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).

The connection was configured and tested from Oracle's SQLPlus session. Please note that the port that the TNS Server is listening is not the default. Is there somewhere I can specify the port in the SSIS connection manager to resolve the issue.

I have tried OLEDB connection and that does not work either.

Any inputs will be appreciated.

Thanks,

Monisha

I use the ODBC Connection in my jobs connecting to Oracle without a problem. Generally this message occurs because the Oracle listener is down. You don't have to specify the port in the SSIS connection manager.|||

I have the DSN created using Microsoft ODBC Driver for Oracle and from the same box I can connect the Oracle server from a SqlPlus session, but when I drag an execute sql task in a SSIS package and create a ODBC connection using system datasource name. I specify the username and password. When I hit the test connection button I get the error that I mentioned earlier.

Test connection failed because of an error in initializing provider. ERROR [NA000][Microsoft][ODBC driver for Oracle][Oracle]ORA-12541: TNS:no listener

ERROR[IM006][Microsoft ODBC Driver Manager] Driver's SQLSetConnectAttr failed

ERROR[0100][Microsoft ODBC Driver Manager] The driver does not support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).

|||Hi,

Im runnign into the same problem. MY DSN works fine when i test in the Data Access tool while creating it. When i use it with in my activex script task it throws an error when i execute a SQL the same error. Did you find a solution for this. Please suggest. Im trying to connect from my DTS Package.

thank you,
Raja

Sunday, March 11, 2012

connecting to database error

Hi there

i have a problem connecting creating a data source to SQL server express.

I am running winXP with service pack2

My machine is APOLLO\SQLEXPRESS

i AM USING AN ODBC CONNECTION.

i GET THE FOLLOWING ERRORS:

SQL SERVER ERROR 1231

AND

SQL SERVER ERROR 17.

Having done a google search and looked at the local security settings i am not sure what to add to the object names.

Can anybody please help.Gino

Gino,

You need to add authentication to your connection string. An application has it's own identity that SQL Server will not recognize.

Adamus

|||

Hi there again

Could you please state step by step procedure to perform this authentication. Is this authentication code based or windows based as i have mentioned previously? If this is code based could you please give some hints.

Gino

Wednesday, March 7, 2012

Connecting to a remote data source.

Hi all,

I have deployed a report onto the Report Server on a remote machine.

When i call the report an error is displayed as follows:

An error has occurred during report processing.

  • An error has occurred during report processing.
  • Cannot create a connection to data source 'MydataSource'.
  • For more information about this error navigate to the report server on the local server
  • machine,
  • or enable remote errors. Yet when i refresh the browser the report will be displayed. Has anyone any idea why the report will not be displayed every time a request is made ? Any help would be much appreciated! Ivan

    Are you using integrated security for your data source? Most likely the issue is double-hop.

    http://blogs.msdn.com/jgalla/archive/2006/03/16/553314.aspx

  • Saturday, February 25, 2012

    Connecting SQL Server Express.......uuhhhhh....

    following is the error that I get:

    "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 dows not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) "

    I have following fields that I am supposed to fill:

    1) Data Source : Defauld value "Microsoft SQL Server (SqlClient)"

    2) Server Name: Empty - I am supposed to enter something. It has a button says Refresh. I entered localhost as you suggested, but not to avail.

    3)Select or enter a database name: I am entrying SQLEXPRESS which is the default name of my SQL server. It is not working.

    No, there is only one instance of the server.

    I guess this information will help you to help me.....:-)

    Have you used the surface area configuration tool to allow remote connections to SQL Server?

    -Jamie

    connecting sql server

    i created a database, when i query a simple select statement , i get an
    error:
    "Cannot open database requested in login 'XYZ_Database'.
    Login fails, Login failed for user 'sa''
    But when i change , the database name to Northwind, it works.
    i checked that user rights of 'sa' for XYZ_database and Northwind are the
    same?
    i get the same error, when i used integrated security to connect too.
    what would be the case here?Hi,
    It seems the database creator/owner might be some other user.
    Execute the below command to check the database owner:-
    sp_helpdb 'XYZ_Database'
    If the owner is a non SA user , then change the database owner using:-
    sp_changedbowner system procedure (Refer books online for information)
    Thanks
    Hari
    MCDBA
    "e-mid" <someone@.somewhere> wrote in message
    news:#uip9U6VEHA.208@.TK2MSFTNGP10.phx.gbl...
    > i created a database, when i query a simple select statement , i get an
    > error:
    > "Cannot open database requested in login 'XYZ_Database'.
    > Login fails, Login failed for user 'sa''
    >
    > But when i change , the database name to Northwind, it works.
    > i checked that user rights of 'sa' for XYZ_database and Northwind are the
    > same?
    > i get the same error, when i used integrated security to connect too.
    > what would be the case here?
    >|||Hari;
    user of the database seems to be sa; here is the properties of the database:
    "XYZ_database 3.00 MB sa 7 Jun 21 2004 Status=ONLINE,
    Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=FULL,
    Version=539, Collation=Latin1_General_CI_AS, SQLSortOrder=0,
    IsTornPageDetectionEnabled, IsAutoCreateStatistics, IsAutoUpdateStatistics
    80"
    what else can be the problem?
    "Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
    news:#Sh3WY6VEHA.1144@.TK2MSFTNGP10.phx.gbl...
    > Hi,
    > It seems the database creator/owner might be some other user.
    > Execute the below command to check the database owner:-
    > sp_helpdb 'XYZ_Database'
    > If the owner is a non SA user , then change the database owner using:-
    > sp_changedbowner system procedure (Refer books online for information)
    > Thanks
    > Hari
    > MCDBA
    >
    >
    > "e-mid" <someone@.somewhere> wrote in message
    > news:#uip9U6VEHA.208@.TK2MSFTNGP10.phx.gbl...
    > > i created a database, when i query a simple select statement , i get an
    > > error:
    > >
    > > "Cannot open database requested in login 'XYZ_Database'.
    > > Login fails, Login failed for user 'sa''
    > >
    > >
    > > But when i change , the database name to Northwind, it works.
    > >
    > > i checked that user rights of 'sa' for XYZ_database and Northwind are
    the
    > > same?
    > >
    > > i get the same error, when i used integrated security to connect too.
    > >
    > > what would be the case here?
    > >
    > >
    >|||i am becoming insane.
    i did not change even a letter but it is working now '!
    "e-mid" <someone@.somewhere> wrote in message
    news:u7BQSe6VEHA.2520@.TK2MSFTNGP12.phx.gbl...
    > Hari;
    > user of the database seems to be sa; here is the properties of the
    database:
    > "XYZ_database 3.00 MB sa 7 Jun 21 2004 Status=ONLINE,
    > Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=FULL,
    > Version=539, Collation=Latin1_General_CI_AS, SQLSortOrder=0,
    > IsTornPageDetectionEnabled, IsAutoCreateStatistics, IsAutoUpdateStatistics
    > 80"
    > what else can be the problem?
    > "Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
    > news:#Sh3WY6VEHA.1144@.TK2MSFTNGP10.phx.gbl...
    > > Hi,
    > >
    > > It seems the database creator/owner might be some other user.
    > >
    > > Execute the below command to check the database owner:-
    > >
    > > sp_helpdb 'XYZ_Database'
    > >
    > > If the owner is a non SA user , then change the database owner using:-
    > >
    > > sp_changedbowner system procedure (Refer books online for information)
    > >
    > > Thanks
    > > Hari
    > > MCDBA
    > >
    > >
    > >
    > >
    > > "e-mid" <someone@.somewhere> wrote in message
    > > news:#uip9U6VEHA.208@.TK2MSFTNGP10.phx.gbl...
    > > > i created a database, when i query a simple select statement , i get
    an
    > > > error:
    > > >
    > > > "Cannot open database requested in login 'XYZ_Database'.
    > > > Login fails, Login failed for user 'sa''
    > > >
    > > >
    > > > But when i change , the database name to Northwind, it works.
    > > >
    > > > i checked that user rights of 'sa' for XYZ_database and Northwind are
    > the
    > > > same?
    > > >
    > > > i get the same error, when i used integrated security to connect too.
    > > >
    > > > what would be the case here?
    > > >
    > > >
    > >
    > >
    >|||Good. :)
    Thanks
    Hari
    MCDBA
    "e-mid" <someone@.somewhere> wrote in message
    news:OFRlQt6VEHA.2408@.tk2msftngp13.phx.gbl...
    > i am becoming insane.
    > i did not change even a letter but it is working now '!
    >
    > "e-mid" <someone@.somewhere> wrote in message
    > news:u7BQSe6VEHA.2520@.TK2MSFTNGP12.phx.gbl...
    > > Hari;
    > >
    > > user of the database seems to be sa; here is the properties of the
    > database:
    > >
    > > "XYZ_database 3.00 MB sa 7 Jun 21 2004 Status=ONLINE,
    > >
    > > Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=FULL,
    > >
    > > Version=539, Collation=Latin1_General_CI_AS, SQLSortOrder=0,
    > >
    > > IsTornPageDetectionEnabled, IsAutoCreateStatistics,
    IsAutoUpdateStatistics
    > > 80"
    > >
    > > what else can be the problem?
    > >
    > > "Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
    > > news:#Sh3WY6VEHA.1144@.TK2MSFTNGP10.phx.gbl...
    > > > Hi,
    > > >
    > > > It seems the database creator/owner might be some other user.
    > > >
    > > > Execute the below command to check the database owner:-
    > > >
    > > > sp_helpdb 'XYZ_Database'
    > > >
    > > > If the owner is a non SA user , then change the database owner using:-
    > > >
    > > > sp_changedbowner system procedure (Refer books online for information)
    > > >
    > > > Thanks
    > > > Hari
    > > > MCDBA
    > > >
    > > >
    > > >
    > > >
    > > > "e-mid" <someone@.somewhere> wrote in message
    > > > news:#uip9U6VEHA.208@.TK2MSFTNGP10.phx.gbl...
    > > > > i created a database, when i query a simple select statement , i get
    > an
    > > > > error:
    > > > >
    > > > > "Cannot open database requested in login 'XYZ_Database'.
    > > > > Login fails, Login failed for user 'sa''
    > > > >
    > > > >
    > > > > But when i change , the database name to Northwind, it works.
    > > > >
    > > > > i checked that user rights of 'sa' for XYZ_database and Northwind
    are
    > > the
    > > > > same?
    > > > >
    > > > > i get the same error, when i used integrated security to connect
    too.
    > > > >
    > > > > what would be the case here?
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >

    Friday, February 24, 2012

    Connecting RS to another server

    When I run an RS report on server1 that connects to a sql database on server2
    I get the error:
    "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. "
    Suggestions?On Jun 7, 1:50 pm, Jimbo <J...@.discussions.microsoft.com> wrote:
    > When I run an RS report on server1 that connects to a sql database on server2
    > I get the error:
    > "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. "
    > Suggestions?
    Refer to Reeves Smith's response to your other posting. That would be
    my suggestion as well.
    Regards,
    Enrique Martinez
    Sr. Software Consultant

    Connecting Remote sql server for Asp.net 2.0

    Hi all,

    I have an application in asp.net 2.0 and iam trying to connect database which is in remote server(Sql server 2000).But iam getting error as follows:

    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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

    i know this is because asp.net 2.0 try to connect sql serverexpress by default.i have removed sql server express from my machine,Still iam getting the same error..any body have an idea how to solve this ...

    regards

    anitha

    Hi welcome to asp.net.

    You don't have to remove sqlserver express ,it is OK to have both sqlserver 2000 and sqlserver express installed on you machine.

    That error means if you are connecting to sqlserver 2005,this failure may be caused by the fact ......but you are not

    First make sure your connection string is right,you can check this website:http://www.connectionstrings.com

    If that is correctmake sure Named Pipes and TCP/IP network libraries are enabled for the SQL2000 instance and no firewall blocks the connection.

    And you can take a look at this :http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=258082&SiteID=1

    Connecting OSQL to MSDE using Windows NT Authentication?

    I am installing MSDE SP3a on an NT 4.0 server and experiencing the
    'CryptoAPI failed' error.
    Now I found the error solution on the MS website, but this requires using
    osql and connecting using Windows NT Authentication.
    I have installed using SQL securitymode. Will this prevent me from
    connecting using Windows NT Auth..?
    If so, how can reset the securitymode to SQL after I have installed and
    applied the correction for the original issue?
    I am logged onto the NT server using the ADMINISTRATOR id, can I start OSQL
    without the -U and -P parms?
    Does the ADMINISTRATOR id require any additional permissions to connect to
    MSDE? The reason I ask is because the MS document specifies "Make sure to
    use Windows NT Authication while you are logged on with a Windows NT Account
    that is a member of the SQL Server sysadmin role".
    Install parms:
    MSDERelA\setup.exe DATADIR=^sDataDrive"^ DISABLENETWORKPROTOCOLS=0
    INSTANCENAME=XXXXX SAPWD=SA_pwd SECURITYMODE=SQL TARGETDIR=^sDataDrive^ /L*v
    ^sDataDrive XXXXX.log^ /qb
    Thanks for any/all help..
    Jim K.
    This is mixed Authentication, so Windows Authentication should work, if
    you are a local administrator try using the -E switch with OSQL. OSQL
    -E which connects to the local server with the Windows credentials.
    HTH, Jens Suessmeyer.

    Connecting on the Server

    Hi,
    I've SQL 2000 Server installed in a Windows 2000 Server.
    On the Server When I try to connect to the instance it
    gives me the error "invalid identifier". I've tried to
    reconfigure the connection but it never works.
    On the WorkStations where I've installed the client tools
    i can connect by the entreprise manager with no problem.
    Can anyone give some clues why this appends!
    Thanks in advance.What is the EXACT error you get and what are you doing when you get it
    (what tool, what connection parameters, etc.)? What version of MDAC is on
    the client machines (note that older versions of cannot connect to named
    instances without a workaround).
    Cindy Gross, MCDBA, MCSE
    http://cindygross.tripod.com
    This posting is provided "AS IS" with no warranties, and confers no rights.