Showing posts with label connection. Show all posts
Showing posts with label connection. Show all posts

Thursday, March 22, 2012

Error in transport layer

When connection with excel (or proclarity) we are getting an error when browsing for the server

The first error is 'An error was encountered in the transport layer', when we click ok en give it a second try the error changes into 'Erros in the OLE DB provider. Could not connect to the redirector. Ensure that the SQLBrowser service is running on the 'xxx' server.'

I've installed a developper sql on my local machine, so i'm quite sure that the the most recent files are installed. I've even reinstalled the OLE DB driver for SSAS 9.0, as i found as a suggestion in another post.

The SqlServer browser service is running on the server, but the server is running as a default instance a SQL2000 (only db) and as a named instance a SQL2005 enterprise edition.

When using the Management studio i'm able to login to the ssas with my user authentication.

Any suggestions ...

Try installing SQL Server 2005 SP1 CTP from http://www.microsoft.com/sql/ctp_sp1.mspx

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

Error in the login process when establishing connection

Hello,

I am trying to connect to a database through a web service. I am being able to connect to the databse through the server explorer in Visual Studio 2005, but when I try to do it with code in my application this is the message I get:

A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

My code looks like this:

SqlConnection thisConnection = new SqlConnection(@."Data Source=vse1092;Initial Catalog=CurrituckDB;Integrated Security=True;"); //User id=;Password=;");

thisConnection.Open();

I also tried putting my user id and password... but same message appears.

Any help will be greatly appreciated.

Thanks,
David

Do you have the upto date SQL server express, the one that corresponds with the version of Visual Studio
|||Try with VS.NET 2003|||Also, you can try looking in the server error log (by default at "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG") for an error message that might be more informative. Look for messages that correspond in time to the failed login attempts when you run the client application.

Hope this helps,
Vaughn|||Hi,
I faced a similar issue few days back. The issue was solved when I removed the Windows 2003 Service pack1 from my system. Try removing the service pack. If U have it installed or try removing security updates that U've recently installed.

By the way, are U able to connect to the database using the management studio ot enterprise manageer?|||In addition, please check out the SQL Protocols Blog (http://blogs.msdn.com/sql_protocols/) which contains a troubleshooting connectivity series.|||Hmmm... The best way to figure this out is by looking through the error log (as Vaughn suggested). If we had a bit more information about your configuration we could probably conjecture a bit more here.
One place we've seen this happen before is when the client stacks (in your case SQLClient) and the server are mismatched intermediate versions - for example, .Net Framework 2.0 beta 2 running against SQL Server 2005 beta 2. If you have mismatched intermediate releases, you'd see something like this.

There are other reasons you might see this. There's a swath of blogs up on http://blogs.msdn.com/sql_protocols that might have the answer your looking for.

Thanks.sql

Error in the login process when establishing connection

Hello,

I am trying to connect to a database through a web service. I am being able to connect to the databse through the server explorer in Visual Studio 2005, but when I try to do it with code in my application this is the message I get:

A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

My code looks like this:

SqlConnection thisConnection = new SqlConnection(@."Data Source=vse1092;Initial Catalog=CurrituckDB;Integrated Security=True;"); //User id=;Password=;");

thisConnection.Open();

I also tried putting my user id and password... but same message appears.

Any help will be greatly appreciated.

Thanks,
David

Do you have the upto date SQL server express, the one that corresponds with the version of Visual Studio|||Try with VS.NET 2003|||Also, you can try looking in the server error log (by default at "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG") for an error message that might be more informative. Look for messages that correspond in time to the failed login attempts when you run the client application.

Hope this helps,
Vaughn|||Hi,
I faced a similar issue few days back. The issue was solved when I removed the Windows 2003 Service pack1 from my system. Try removing the service pack. If U have it installed or try removing security updates that U've recently installed.

By the way, are U able to connect to the database using the management studio ot enterprise manageer?|||In addition, please check out the SQL Protocols Blog (http://blogs.msdn.com/sql_protocols/) which contains a troubleshooting connectivity series.|||Hmmm... The best way to figure this out is by looking through the error log (as Vaughn suggested). If we had a bit more information about your configuration we could probably conjecture a bit more here.
One place we've seen this happen before is when the client stacks (in your case SQLClient) and the server are mismatched intermediate versions - for example, .Net Framework 2.0 beta 2 running against SQL Server 2005 beta 2. If you have mismatched intermediate releases, you'd see something like this.

There are other reasons you might see this. There's a swath of blogs up on http://blogs.msdn.com/sql_protocols that might have the answer your looking for.

Thanks.

Wednesday, March 21, 2012

Error in SQL

I have an application in VB 6.0, that uses a connection with SQL 2000.

A process was running when the following error ocurred:

[DBNETLIB][ConnectionRead(recv()).]General network error.Check your network documentation.

The error number is: - 2147467259

Before this error, I was having a timeout expire (Err.Number = -2147217871) problem with was correct with an Error Handling.

This routine is very hard, normally it last 2 or 3 days.

I see something about this, telling to install the DBMSLPCN.DLL. Will the instal of this DLL resolve my problem?

What are the effects of this install?

Valmir>> This routine is very hard, normally it last 2 or 3 days.
Do you umean the error lasts for 2 or 3 days?

Do you close the connection in the app and open a new one when you get an error? If not then try that as it may just be a network error that has lost you the connection.

If you mean you have a single query that lasts two or three days then redesign it.|||Thanks for help, I will try reconnect.

The routine last 2 or 3 days is not just one procedure and yes all the process.

Sunday, March 11, 2012

Error in ODBC Connetion

I had in a customer a ODBC connection to the database sql
in which I modified the client configurations the
connection I took off the option to determine door
dynamicly and placed the 1433 but it gave error and after
this exactly placing again to determine door dynamicly it
gives always error and it does not function i remember
that before this it was to function perfectly. The error
is:
Error in Connection:
SQLState: ' 01000 '
Error in the SQL Server: 10061 [ Microsoft][ODBC SQL
Server Driver][TCP/IP Sockets ] ConnectionOpen(Connect()).
Error in Connection:
SQLState: ' 08001 ' Error in the SQL Sever: 17 [
Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]O SQL
Server does not exist or the access was refused the
computer in cause is with all the right definitions of
net, has access to the server... Please help Me! .J=E1 tentaste fazer um ODBCping? J=E1 verificas-te as permiss=F5es?
>--Original Message--
>I had in a customer a ODBC connection to the database sql >in which I modified the client configurations the >connection I took off the option to determine door >dynamicly and placed the 1433 but it gave error and after >this exactly placing again to determine door dynamicly it >gives always error and it does not function i remember >that before this it was to function perfectly. The error >is: >Error in Connection: >SQLState: ' 01000 ' >Error in the SQL Server: 10061 [ Microsoft][ODBC SQL >Server Driver][TCP/IP Sockets ] ConnectionOpen(Connect()).
>Error in Connection:
>SQLState: ' 08001 ' Error in the SQL Sever: 17 [ >Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]O SQL >Server does not exist or the access was refused the >computer in cause is with all the right definitions of >net, has access to the server... Please help Me! .
>.
>

Error in ODBC Connection HELP

I had in a customer a ODBC connection to the database sql
in which I modified the client configurations the
connection I took off the option to determine door
dynamicly and placed the 1433 but it gave error and after
this exactly placing again to determine door dynamicly it
gives always error and it does not function i remember
that before this it was to function perfectly. The error
is:
Error in Connection:
SQLState: ' 01000 '
Error in the SQL Server: 10061 [ Microsoft][ODBC SQL
Server Driver][TCP/IP Sockets ] ConnectionOpen(Connect()).
Error in Connection:
SQLState: ' 08001 ' Error in the SQL Sever: 17 [
Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]O SQL
Server does not exist or the access was refused the
computer in cause is with all the right definitions of
net, has access to the server... Please help Me! .
Hi Nuno,
first of all be sure that you don't have network generic problems, using for
example the dos PING command or TRACERT.
Then I'd reinstall MDAC on client machine (if you've to connect to SQL
Server 7.00 install MDAC 2.5, for SQL 2000 MDAC 2.6SP2), reboot the client
and try again deleting the old DSN and recreating a newest one.
Very important is checking the TCP port is your server listening on (check
the server network utility on your server machine) and the TCP port is your
server transmetting (check the client network utility on your client
machine): they must be identical.
Finally check the authentication mode on your sql server: it must be the
same of the specified into your DSN configuration.
Hope it helps, regards
Riccardo Piccini
Supporto Software
EDP SERVICE SRL
"Nuno Pereira" <n.pereira@.desis.pt> ha scritto nel messaggio
news:17df301c42221$d6cab310$a001280a@.phx.gbl...
> I had in a customer a ODBC connection to the database sql
> in which I modified the client configurations the
> connection I took off the option to determine door
> dynamicly and placed the 1433 but it gave error and after
> this exactly placing again to determine door dynamicly it
> gives always error and it does not function i remember
> that before this it was to function perfectly. The error
> is:
> Error in Connection:
> SQLState: ' 01000 '
> Error in the SQL Server: 10061 [ Microsoft][ODBC SQL
> Server Driver][TCP/IP Sockets ] ConnectionOpen(Connect()).
> Error in Connection:
> SQLState: ' 08001 ' Error in the SQL Sever: 17 [
> Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]O SQL
> Server does not exist or the access was refused the
> computer in cause is with all the right definitions of
> net, has access to the server... Please help Me! .

Error in ODBC Connection HELP

I had in a customer a ODBC connection to the database sql
in which I modified the client configurations the
connection I took off the option to determine door
dynamicly and placed the 1433 but it gave error and after
this exactly placing again to determine door dynamicly it
gives always error and it does not function i remember
that before this it was to function perfectly. The error
is:
Error in Connection:
SQLState: ' 01000 '
Error in the SQL Server: 10061 [ Microsoft][ODBC SQL
Server Driver][TCP/IP Sockets ] ConnectionOpen(Connect()).
Error in Connection:
SQLState: ' 08001 ' Error in the SQL Sever: 17 [
Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]O SQL
Server does not exist or the access was refused the
computer in cause is with all the right definitions of
net, has access to the server... Please help Me! .Hi Nuno,
first of all be sure that you don't have network generic problems, using for
example the dos PING command or TRACERT.
Then I'd reinstall MDAC on client machine (if you've to connect to SQL
Server 7.00 install MDAC 2.5, for SQL 2000 MDAC 2.6SP2), reboot the client
and try again deleting the old DSN and recreating a newest one.
Very important is checking the TCP port is your server listening on (check
the server network utility on your server machine) and the TCP port is your
server transmetting (check the client network utility on your client
machine): they must be identical.
Finally check the authentication mode on your sql server: it must be the
same of the specified into your DSN configuration.
Hope it helps, regards
Riccardo Piccini
Supporto Software
EDP SERVICE SRL
"Nuno Pereira" <n.pereira@.desis.pt> ha scritto nel messaggio
news:17df301c42221$d6cab310$a001280a@.phx
.gbl...
> I had in a customer a ODBC connection to the database sql
> in which I modified the client configurations the
> connection I took off the option to determine door
> dynamicly and placed the 1433 but it gave error and after
> this exactly placing again to determine door dynamicly it
> gives always error and it does not function i remember
> that before this it was to function perfectly. The error
> is:
> Error in Connection:
> SQLState: ' 01000 '
> Error in the SQL Server: 10061 [ Microsoft][ODBC SQL
> Server Driver][TCP/IP Sockets ] ConnectionOpen(Connect()).
> Error in Connection:
> SQLState: ' 08001 ' Error in the SQL Sever: 17 [
> Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]O SQL
> Server does not exist or the access was refused the
> computer in cause is with all the right definitions of
> net, has access to the server... Please help Me! .

Error in my connection string

<add name="TimeTrackingDB" connectionString="provider=MSSQL$DEV_2000;Integrated Security=SSPI;Data Source=PORT06139\DEV_2000;Initial Catalog=TimeTracking;Persist Security Info=True;User ID=user_TTT;Password=user_TTT;pooling=false;"/>

When i'm lauching the web application, i have an error message saying that there is a mistake with the provider...

I'm using Microsoft SQL Server 2000.

Anybody can help me?

Thanks by advance :)http://www.connectionstrings.com/?carrier=sqlserver2005|||since you are using 2000, these might be more appropriate:

http://www.connectionstrings.com/?carrier=sqlserver

Sunday, February 26, 2012

Error in DTS

Hi When I try to convert from Prervasive V8 to SQL using an ODBC connection. I receive the error message..

ParseDisplayName failed: The specified module could not be found.

Could anyone advise what this error is? And/Or how it could be resloved. This is happing when I press actualy try to convert. The wizard will go to that point then stop.

Thanks!

DTS or SSIS? This is an SSIS forum. For DTS questions, please visit:

http://groups.google.com/group/microsoft.public.sqlserver.dts?lnk=srg

Friday, February 24, 2012

Error in connection with database

Hi all
i have database on another machine by name "sqldev" and I am trying to
connect to it from another machine whose name is same "sqldev". then
it gives me error and refuse to connect it. Can anybody tell me why
and how to resolve it?No idea - what is the error message? Also, what are your Windows and
MSSQL versions, do you have a domain or a workgroup, and are you using
Windows or SQL logins? You seem to be saying that you have two machines
with the same name on one network; if so, then you should change one of
them to avoid name resolution problems.

Simon|||A faster solution is to connect w/ the other machine's IP address. When
you rename the server you have to partially reinstall SQL. It isn't a
quick task, but you can figure out how to do it by searching Google.

Error in connection

when sinchronize this error is show:
"el proceso no pudo conectar con subscriber 'PCP'"
The process can't connect to suscriber.
Please, any IDEA, is accept.
Thanxs
Gabriel
Argentina
Gabriel Argentina,
To remove the problem, enter the distributor properties, subscribers tab and
click on the elipsis by the side of the relevant subscriber. Choose to
"impersonate the sql server agent account on 'servername' (trusted
connection)". Provided the distribution agent account exists as a login on
the subscriber and has sysadmin or db_owner rights on the subscription
database, the error is removed.
Paul England :-)

error in connection

Hi

i am trying to connect my application with SQL SERVER. but

it gives error as below.

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)

Please reply me soon.

Best regards,
ASIFU have to enable remote connections in SQL 2005 if u want to connect from remote clients.

1) Open SQL 2005 Surface Area configuration-->Surface Area configuration for Services and connections -->Database Engine-->Remote Connections-->Enable Local and remote connections.

2) Enable the protocol from SQl Server Configuration manager which u are using(in ur case 'Named Pipes').
To do that,
SQl Server Configuration manager -->SQL server 2005 Network Configuration-->Protocols for SQl2005-->Enabe Named Pipes.

Error in connecting to SQL Server Express

Hello,

I'm a newbie who is trying to create a connection to the server in my website application and I keep getting the following error: 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 enabled TCP/IP and Pipe in the configuration and restarted the engine and server but I still get this error and it's stressing me out. Below is the code for the app. Any help would be greatly appreciated. Thanks

Imports

System.Data

Imports

System.Data.SqlClient

Partial

Class _DefaultInherits System.Web.UI.PageProtectedSub Page_Load(ByVal senderAsObject,ByVal eAs System.EventArgs)HandlesMe.Load' Create the database ConnectionDim connAsNew System.Data.SqlClient.SqlConnection( _"Server=Main;" + _"Integrated Security=True;" + _"Database=ShoppingCartData;" + _"AttachDBFilename=" + _"C:\DOCUMENTS AND SETTINGS\TONYA\MY DOCUMENTS\VISUAL STUDIO 2005\WEBSITES\ADO\APP_DATA\ADO.MDF")

' Create the Data Adapter with the required SELECT statementDim AdaptAsNew System.Data.SqlClient.SqlDataAdapter("SELECT * FROM Products", conn)' Create the dataset with the required informationDim dsADOAsNew System.Data.DataSet()

Adapt.Fill(dsADO)

Dim DRAs DataRow()' Define the TableDim ProdTblAsNew Table()' Create content for the Web PageForEach DRIn dsADO.Tables(0).Rows'Create a new table row.Dim ProdRowAsNew TableRow()'Create a cell within the row.Dim ProdCellAsNew TableCell()'Define content for the CellDim ThisLinkAsNew HyperLink()

ThisLink.NavigateUrl =

"Products.aspx?ProdID=" + _

DR(

"ProductID").ToString()

ThisLink.Text = DR(

"ProductNme").ToString()

ThisLink.ID = DR(

"ProductID").ToString()'Add the content to the cell and the cell to the row. Place the row in the table

ProdCell.Controls.Add(ThisLink)

ProdRow.Controls.Add(ProdCell)

ProdTbl.Controls.Add(ProdRow)

Next'Add the table to the Place holder.

phProducts.Controls.Add(ProdTbl)

EndSub

End

Class

That SQL Server Express instance must be local to connect to it. If it is locally installed just try changingServer=(local) to your connection.

Thanks

|||

Thank you for your reply. I have changed this as you've instructed, but it is still not working.

Thanks

|||

Hi,

Is this SQL Server on your local machine? If not, can you connect from the local one?

Also, you can test with a .UDL file. Here are the steps to create one.

1. Create a .txt file on desktop and rename it to .UDL.
2. Double click on the file and a Data Link Properties dialog box will appear.
3. You can test with this dialog box to see if it works fine on both remote and local machine.

Error in connect to SQL Sever

I have a problem with the connection to the DB…

I wrote this connection string in the web.config

<addname="dbConnectionString"connectionString="server=(local);database=2C2M;Trusted_connection = True"providerName="System.Data.SqlClient"/>But then when I creat ( SQLdataSource ) and chose this connection , this message is appeared

DataBase schema could not be retrieved for this connection . Please make sure the connection setting are correct and that the database is online. An error has occurred while establishing a connection to the sever . When connection to SQL Server 2005 , this failure may be caused by the fact that under the default setting SQL Server does not allow remote connections. ( provider : Named Pipes provider , error : 40 – Could not open connection toSQL Server )

How I can solve this problem ?

Note : I use SQL EXRESS SERVER

you need to change the connection string then try it, in order to get the well formed connection string do the following:

on your desktop create a new text document and change its extension to .udl

Sunday, February 19, 2012

Error in accessing data via Linked Server

Hi,

I am trying to access the View through linked server connection .The linked server connection is between two sql server 2005.

The problem is I am not able to access 2 columns of nvarchar datatype of length 255, from the view through select statement.

I do a SELECT col1,col2 from VIEW,then getting the following error .

Cannot get the data of the row from the OLE DB provider "SQLNCLI" for linked server "SRVXPR". Could not convert the data value due to reasons other than sign mismatch or overflow.

Then I tried with

Select cast(Col1 as nvarchar) ,

cast(col2 as nvarchar) from VIEW,

I am able to get the values.

The collation type is same for all underlying tables and also for the servers.

Is there any restrictions in handling nvarchar data thru linked server/ anyother size limitation.

I don't want to use cast as this will lead to performance problem.

Thanks,

Philip


Seems as this is a problem of the OLEDB driver. You could send this to Microsoft as a BUG through the connect.microsoft.com portal, or in urgent cases call PSS to get the problem fixed.

HTH, Jens K. Suessmeyer.


http://www.sqlserver2005.de

Wednesday, February 15, 2012

Error Handling-- no connection

I have a package that connects to remote AS400. I am wondering what is the best way to handle situation if my package could not connect to source.

-kushpaw

kushpaw wrote:

I have a package that connects to remote AS400. I am wondering what is the best way to handle situation if my package could not connect to source.

-kushpaw

There is no best way but here's a suggestion:

Verify a data source before using it
(http://blogs.conchango.com/jamiethomson/archive/2005/10/10/2253.aspx)

-Jamie

|||thanks, that ' a good start.