Unable To Connect Sql Server 2000 With SqlClient Provider

Jan 19, 2007

Hi,

I am using VS2005 and Sql Server 2000 (personal edition). I am able to connect with SqlClient Provider on Local Machine (when db server and VS2005 on same machine). But I try to connect SqlServer on different machine it is not allowing me to connect. If I use SqlOledb Provider it got connected. 

Please tell me how could I connect with DB server (Sql Server 2000) from remote machine.

 

 

View 4 Replies


ADVERTISEMENT

Unable To Connect To Sql Server From Handheld Device Via Usb Activesync And Sqlclient

Aug 29, 2006

I have tried using the SqlClient class to connect to the database, but I haven't had much success. Here is my setup:
Desktop/Workstation has Windows XP, ActiveSync, .NET Framework 2.0, and SQL Server 2005.

The production Workstation will have 2000; so I do want to ensure SQL Server 2000 compatibility with my solution.

Handheld device is an Intermec 751g with docking station, hooked to PC host using USB connector cable and ActiveSync, Windows CE 4.2, .NET Compact Framework 2.0 with SP1 and latest patch.

Development tools consist of Visual Studio 2005 and C# .NET language.

Note that when I attempt to ping my desktop from the handheld command prompt I get "transmit failed, error code 11010".

Also, I am able to access the Internet from my handheld device.

My error is encountered when I execute this fill code:

int returnValue = this.Adapter.Fill(dataTable);

Please note that all of my code is generated by the VS 2005 IDE at this juncture, as I am simply trying to get the plumbing to work.

Here is the error that I encounter:


System.Data.SqlClient.SqlException was unhandled
Message="SqlException"
Class=20
LineNumber=0
Number=6
Procedure="ConnectionOpen (Connect())."
Server="09Q-GHAZEL2\SQL2K5"
Source=".Net SqlClient Data Provider"
State=0
StackTrace:
at System.Data.SqlClient.SqlConnection.OnError()
at System.Data.SqlClient.SqlInternalConnection.OnError()
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Connect()
at System.Data.SqlClient.SqlInternalConnection.OpenAndLogin()
at System.Data.SqlClient.SqlInternalConnection..ctor()
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen()
at System.Data.Common.DbDataAdapter.FillInternal()
at System.Data.Common.DbDataAdapter.Fill()
at System.Data.Common.DbDataAdapter.Fill()
at DeviceApplication1.AdventureWorksDataSetTableAdapters.ContactTableAdapter.Fill()
at DeviceApplication1.Form1.Form1_Load()
at System.Windows.Forms.Form.OnLoad()
at System.Windows.Forms.Form._SetVisibleNotify()
at System.Windows.Forms.Control.set_Visible()
at System.Windows.Forms.Application.Run()
at DeviceApplication1.Program.Main()


Thanks again for your insight. Sincerely, -Dotnetfellow dotnetfellow@yahoo.com

View 10 Replies View Related

Handling Provider-level Errors From .Net SqlClient Data Provider

Jun 26, 2007



Hi,



After reading this helpful blog entry:



http://blogs.msdn.com/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx



I think this might be a good place to ask the following question.



I am writing the error handling code for my data access layer for a web application. I am using the Enterprise Library Data Access Application Block. Although this supports generic database connections, I realized that I need to handle errors specific to each database type. Microsoft SQL is the only database type I am using for now, so I am using a try...catch (SqlException e).



In testing my code, I intentionally changed the instance name in web.config to a name that does not exist. I get the very popular error 26 - Error Locating Server/Instance Specified. This is returned as a SqlException, but the SqlError.Number property is set to -1.

Am I getting "-1" because the provider hasn't actually connected to SQL yet, so it doesn't have an actual SQL error number?
Can I assume that (SqlError.Number == -1) is always a fatal, provider-level connection exception?
Will the provider ever use another SqlError.Number of its own? Or do all numbers besides -1 come from the SQL sysmessages table?.
Is there a comprehensive list of what exceptions might be raised by the SqlClient provider, including #26?

The reason for all the questions is that in a web application, I want to prevent the end-user from seeing the "real" exception if it has to do with configuration errors. However, maybe there are other errors that the user should see and handle? It's hard to know without a full list of SqlClient provider errors, along with the SqlError.Number that each error maps to.



Thanks and regards,



Mark

View 6 Replies View Related

Unable To Connect To SQL Server 2000 Thru SQl Express Management Studio

Apr 11, 2007

I am trying to connect to another computer in my local network which has Windows XP installed. It has SQL server 2000. I get an error message 'Time out period elapsed' when i try to connect to SQL server 2000 thru SQL Server Management Studio Express' Please guide.

View 4 Replies View Related

App Server Unable To Connect To SQL Server 2000 Developer Edition On Localhost.

Jul 20, 2005

Anyone encounter differences between SQL2K EE and SQL2K Dev Editon?FAILS-----Machine_A [App Server] <-- JDBC --> Machine_ASQL2K_Dev_Ed..dbError: "com.inet.tds.SQLException: Connection refused"When app server on Machine_A attempts to connect to database onMachine_A the conenction is refused.SUCCEEDS---------Machine_A [App Server] <-- JDBC --> Machine_BSQL2K_EE..dbWhen app server on Machine_A attempts to connect to database onMachine_B the conenction succeeds and the app server runs normally.JDBC driver: com.inet.tds.TdsDriverjdbc:inetdae7:locahost:1433I don't believe the app server is exhausting the 10-connection max onSQL2K developer edition (there is a 10-connection limit imposed on thedeveloper edition, correct?)LB

View 2 Replies View Related

Unable To Connect To Oracle Using Microsoft OLEDB Provider For Oracle

Aug 23, 2007

Hi everybody,

I have designed a DTS package which will migrate a view from Sqlserver 2000 to Oracle.My package is using Microsoft OLEDB provider for Oracle driver for connecting to oracle.Im able to execute this package on the my system ie on the system where sqlclient is installed(Oracle client is also installed on my machine) .But when im doing it on the server im not able to do it.The Connection to Oracle Fails.
I wanted to know in order to connect to Oracle from the server,is it necessary that Oracle has to be installed on the server?.If yes, is it enough if i install oracle client on the server or Oracle Server version has to be installed on Server.

Please suggest me wht should i do know?

Thanks in advance

Regards
Arvind L

View 3 Replies View Related

Unable To Connect To Sql 2000 From .NET

Mar 31, 2008

Hi All,    I am trying to connect to an SQL SERVER in a remote production server from ASP.net using following code.   Dim conProd As New OleDbConnection("Provider=SQLOLEDB.1;Data Source=ServerName;UID=User Name;PWD=Password;Initial Catalog=Database")conProd.Open()I am getting following error while running this script [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied.  But I am able to connect to this server using following three other ways:1) Using query analyzer2) I created DSN and performed test connection, it succeded.3)  In ASP.NET -> Server Explorer -> Data Connections, I added this connection and test connection also successful.I tried to connect to this server in VB 6.0 using following code  Dim conProd As New ADODB.ConnectionconProd.Open "Provider=SQLOLEDB;Data Source=ServerName;Initial Catalog=Database; Timeout=500;", "UserName", "Password" I am able to connect using this above code in VB  6.0 also.But I dont what is happeing in .NET. Please help me. I am using XP and VS .NET 2003   

View 1 Replies View Related

(2000) Unable To Connect To Debugger

Jul 18, 2006

On my development maching, I have three different SQL Server instances:..SQL2000..SQL2005EXPRESS..SQL2005When i try to debug a stored procedure in Query Analyzer, I get thefollowing error:"Server: Msg 508, Level 16, State 1, Procedure sp_sdidebug, Line 1[Microsoft][ODBC SQL Server Driver][SQL Server]Unable to connect to debuggeron MYPCSQL2000 (Error = 0x800401f3). Ensure that client-side components,such as SQLLE.DLL, are installed and registered on MYPC. Ddebugging disablefor connection 53."Client side components _are_ installed. What gives? Any ideas?J. JespersenDenmark

View 1 Replies View Related

Unable To Connect To Sqlserver 2000 From Sqlserver2005

Sep 10, 2007



Hi,

iam having vs2005 installed on my machine and i also installed sqlserver2005 dev edition on my machine...Unable to connect to Sqlserver 2000 which is installed remotely ....Sqlserver2000 is dev edition.i cudnot find Sqlserver2000 instance when i try to search for Network database engine name .......

I feel to know how to enable remote connection on Sqlserver 2000.So tht i can access this sqlserver2000 from another machine

View 1 Replies View Related

Transaction Scope - The Operation Could Not Be Performed Because OLE DB Provider SQLNCLI For Linked Server XXX_LINKED_SERVER Was Unable To Begin A Distributed Transaction. OLE DB Provider SQLNCLI&a

May 15, 2008

Hello, I've a problem with a software developed in C# with the framework 2.0. This is the error I receive : The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "XXX_LINKED_SERVER" was unable to begin a distributed transaction. OLE DB provider "SQLNCLI" for linked server "XXX_LINKED_SERVER" returned message "No transaction is active.". If I try directly to restart the process, it works fine. Is there someone who can help me ? This is the process 1. In C# --> Call of a Query : select from the linked server (db in sql 2005) and insert into a table SQL 2005 2. In the C# --> using (TransactionScope scope = new TransactionScope()) and insert in a table in SQL 2005 which is link server Thank in advance.

View 1 Replies View Related

Error: 26 Error Locating The Server/instance Specified (.NET SQLClient Data Provider)

Jun 8, 2007

All,



One of our developers decided to load 2K5 client tools on to their laptop. They cannot connect getting the following error:



....Error: 26 Error Locating the Server/instance specified (.NET SQLClient Data Provider)....



1.) Allowing remote connections IS enabled.

2.) SQL Browser Service is ON

3.) Windows Firewall is NOT running

4.) All protocols (except VIA) are enabled



Others at this office, including myself, can connect fine in Management Studio. Only this one developer cannot.



Any thoughts and/or help would be much appreciated. I think that the problem has something to do with the first sentance above but I am not positive.



Thanks in advance,

DBA Ben

View 4 Replies View Related

Performance Sqlclient Data Provider

Dec 12, 2005

Well, I hope, after my endless search in the web... maybe, somebody can help me here.I'm passing a application to a web-based application, therefore I have to use ADO.net to access a sql server DB. But the performance is extremly poor!!!!Just to compare: with the normal application or with the SQL Query Analyzer, the query needs about 2 seconds. Well, by using ado.net, it's about 200 seconds......!!!!Of course, the query is quite long. But the difference is extrem... too extrem for using the same query....I already tried a lot... actually everything I found on the web. What is really strange is that neither the processor nor the memory is fully used... And the web server use more of the cpu power than the sql server itself (the 2 server are still on my machine where I'm programming). So, could it be that the problem is by filling up the dataset with the sqladapter or something similar?Thx for your help!!

View 8 Replies View Related

Connecting To Sql Server 2000 On Godaddy Error: (provider: Named Pipes Provider, Error: 40 - Could Not Open A Connection To SQL Server)

Mar 5, 2007

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_userpassword4. 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     

View 1 Replies View Related

Is System.Data.SqlClient Still The Default Provider For The SqlDataSource?

Mar 18, 2008

While learning ASP.net 2.0, I was taught that the the default provider for the SqlDataSource was System.Data.SqlClient, and that I only needed to specify it as a provider when I put it in the web.config file. However, now (in VWDE 2008) when I add a SqlDataSource to a page, it adds ProviderName="System.Data.SqlClient". Does this mean that it isnt the default anymore?

View 1 Replies View Related

SQL 2005 - .Net SqlClient Data Provider: Msg 0, Level 11, State 0, Line 0 - Error Parsing Statements

Nov 2, 2006

Hi,

Does anyone else have this error message pop up in SSMS when you try to parse sql statements:

.Net SqlClient Data Provider: Msg 0, Level 11, State 0, Line 0

A severe error occurred on the current command. The results, if any, should be discarded.

There was a thread back in March 2006 that mentioned this error, but the posted resolution was to install SP1.  I have SP1 installed but I still get the error.

I only receive the error when I'm parsing statements, if I run the statement it's fine.

 

Thanks

Matt

 

View 8 Replies View Related

SQL Server 2000 To SQL Server 2005 - Any Changes Required To Existing Code, System.Data.SqlClient.SqlConnection?

Dec 13, 2007

My web project (ASP.NET 2.0 / C#) runs against sql server 2000 and uses the System.Data.SqlClient.using System.Data.SqlClient;
 I use System.Data.SqlClient.SqlConnection and System.Data.SqlClient.SqlCommand to make the connections to the database and do selects and updates.  Is it correct to continue to use these against SQL Server 2005?  I ask because I made a connection string (outside of .Net) for SqlServer 2005 using the SQL native provider and it had the following - Provider=SQLNCLI.1 and any connection strings I had made (also outside of ASP.NET) fro SQL Server all used Provider=SQLOLEDB.1.  This is why I wondered if there is a different SqlClient in .Net 2.0 for SQL Server 2005?
Cheers
Al

View 1 Replies View Related

Vista Remote Connection Problem - Login Failed For User 'xxxxxxx. (.Net SqlClient Data Provider)

May 26, 2007

trying to connect to sql server 2005 over the internet. (its a third paty hosting company i'm using)

so i have to connect via tcp/ip using sql server authentication.

my laptop is running vista.



the version of sql server 2005 on my laptopis developer edition with service pack 2.

it worked fine from windows xp and the connection details are valid as it runa fine from .net on the hosting website.



i have added sql serer managemnt studio to the exceptions list in the firewall.

ihave made sure tcpip is enabled in the sql server connection management console.

i have also enabled it in the cliconfg tool



firewall on/off seems to make no difference.



its almost enough to make you turn to oracle and thats saying something considering how long i've been in the microsoft camp...



the error returned is:
Login failed for user 'SQL2005_152092_garethbowen'. (.Net SqlClient Data Provider)


------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

------------------------------
Server Name: 'xxxx',1433
Error Number: 18456
Severity: 14
State: 1
Line Number: 65536


View 3 Replies View Related

Linked Server Issue: The Operation Could Not Be Performed Because The OLE DB Provider 'SQLOLEDB' Was Unable To Begin A Distribut

Jan 16, 2008

Hi,
I was making a linked server connection between 2 SQL Server 2000 servers (both running on Windows 2003 Server), and I was creating an insert trigger in one of the SQL Server table to insert the same value to the other SQL table. But when I try to make an insert to the table, the following error occurred :

Server: Msg 7391, Level 16, State 1, Procedure <triggername>, Line xx
The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].

I tried to change the trigger into a SELECT statement only and the error still occurred. But when I tried to insert a row directly to the linked server via Query Analyzer, it succeeded.
I have read KB 280106, KB 306212, and KB 329332, and I've tried SET XACT_ABORT ON statement, but none of them can solve the problem.
If there's anyone who has idea on what's wrong or has a suggestion what I should try please help.
Thank you in advance.

View 1 Replies View Related

Can't Connect To Linked SQL Server: Cannot Initialize The Data Source Object Of OLE DB Provider SQLNCLI

May 23, 2007

I find this most perplexing.



I have two servers, DEV and PROD. Now my DEV server works just great, I can connect to the linked server, query, etc... all is well.



So I'm setting up my PROD server and when I go to add the linked server I get:

Cannot initialize the data source object of OLE DB provider "SQLNCLI".... and Unable to complete login process due to delay in opening server connection.



Now I am running SQL Server 2005 and connecting to an SQL 2000 server.



The odd part is that this works just fine on DEV.



When I go to create the linked server I set:

Linked Server: "LinkedServerName"

Server Type: "SQL Server"



and that's it.



I go to Security and enter my DOMAINUSER.ACCOUNT and then enter the login creds for the linked server.



When I click "OK" I get the above mentioned error code.



Any thoughts?

View 2 Replies View Related

SQL Server Unable To Connect... Please Help

Jan 14, 2000

I upgraded my 6.5 server to 7.0 two days ago running into small problems with the database upgrade wizard. I had some small problems with security which took me some time but was not that difficult once I figured it out. I then proceeded to switch back to 6.5 mode to transfer all the data that had been done that day to my development machine so I could then import it to the SQL 7.0 version. When I was done with the transfer I switched back successfully, started the server successfully, but I was unable to connect. I get the error "Connection could not be established...", so after several attempts to connect and shuting the server down I now am at a loss. The server runs fine in 6.5 mode but it will not connect in 7.0?? Tonight I am going to try to reinstall SP1, if that does not work I am going to try to reinstall SQL 7.0. Any suggestions???

View 2 Replies View Related

Unable To Connect To Server

Nov 14, 2000

On a fresh installation of SQL Server 6.5, I have
opened the EM and registered the server but am unable
to connect. I get the error of 'A connection could not
be established to [ServerName]- [DB-Library] Unable
to connect: SQL Server is unavailable or does not exist.
General Network Error. Check your documentation.'

I've tried connecting with all different DB-Lib settings
to no avail. Ultimately, I want to use TCP/IP. I am,
however, able to connect to other SQL Server boxes from
this EM, just not the local server. I am able to stop
and start the services from Control Panel and from SQL
Service Manager.

Since I haven't been able to log into the local SQL Server,
I've registered the server in EM to log in with sa and a
blank password. I've already completely uninstalled SQL
and reinstalled it to see if that would help. It didn't.

Does anyone have any idea what the problem could be?

Thank you!
Toni

View 7 Replies View Related

Unable To Connect To Server

Jan 20, 2003

Hi,

I am running SQL 2000 on Windows 2000 Server. The clients are running different OS ranging from Win 98/NT/2000. Although i am able to connect to the local host, but whenever i try to connect over the network the following error pops up :

unable to connect to server <server name>
Server : Msg 11, Level 16, State 1
[Microsoft][ODBC SQL Server Driver][TCP/IP Socket]General network error. Check your network documentation.

I checked up the event long on the server and found the following entry:

Event Type: Warning
Event Source: MSSQL$NETSDK
Event Category: (8)
Event ID: 19011
Date: 1/20/2003
Time: 2:12:32 PM
User: N/A
Computer: <computer name>
Description:
The description for Event ID ( 19011 ) in Source ( MSSQL$NETSDK ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event:
(SpnRegister) : Error 1355.

May i further clarify that this error started today n till last week end (saturday, i am

stationed in India) there was no problem and the users were able to connect to the server

without any problem. My network engineer feels that its an sql problem and has nothing to do with network related issues.

i would appreciate if anybody could help me out. thanking in advance

- Paramesh

View 4 Replies View Related

Unable To Connect To Sql Server

Nov 20, 2003

recently i made my PC dual boot by installing windows 2000 advanced server. It already had win2000 profesional installed on it. since then i have been unable to connect to sql server running on some other server(called CONTROLS) on the LAN. I am able to access the CONTROLS server thru 'my networkplaces' and able to see all its hsared directories and access htem. but when i open Enterprise manager i cannot connect to CONTROLS.
Please help me . i have already wasted 2 days over it.

View 3 Replies View Related

Unable To Connect To SQL Server

Jun 12, 2000

I am unable to connect to SQL Server using isql_w or enterprise manager. The ODBC settings register successfull and the services show as started. I have tried starting SQL server in single-user mode with minimum config to see if memory is a problem but still cannot connect. The error logs show SQL as having started successfully with no errors. Has anyone got any ideas?

View 5 Replies View Related

Unable To Connect To Server

Aug 2, 2001

From my Win98SE box with MDAC 2.6sp1, I can't connect to SQL (win2k, sql2k).
I've tried everything I know but nothing works.

I always get the following error:
Unable to connect to server 192.168.1.2
ODBC: Msg 0, Level 16, State 1
[Microsoft][ODBC Sql Server Driver] Timeout Expired

some additional info...
- both computers are in a workgroup, not in a domain.
- this is a home network and they're connected via a Linksys cable modem router
- another box on this same lan can connect to sql just fine, although it's
running win2k.
- all boxes have identical DSN, Subnet...settings
- I also installed Jet4.0sp1 just in case, but that didn't help either
- I'm primarily trying to connect via TCP, although I have tried Named Pipes
as well
- i can ping both boxes from each other just fine
- odbc ping fails

MDAC has worked beautifully for me for the last several years. Did MS
change something recently...or is there another problem?

Thanks, Andre

View 2 Replies View Related

Unable To Connect To Server

Nov 18, 2004

Hi,

I encounter (suddenly) the following error:

[ODBC SQL-Server Driver][Shared Memory] Unknown connection

by connecting either with the query analyzer or enterprise manager.
No connection possible anymore.

My configuration is:

Windows 2003 Server with
SQL Server 2000 SP3a Enterprise Edition with standard network configuration

One MSDE is still running on same machine and can connect.

I have checked with Compchecker, but no mismatches.

Any ideas ? It all sounds weired !

dajm

:(

View 3 Replies View Related

Unable To Connect To Server

Oct 25, 2005

Hello. I am very new to SQL Server. I've tried to look through other posts on the forum but did not find the solution I needed. Please help.

I have SQL Server running on Machine1 which I am able to connect to. What I want to do is connect to this server through a Machine2 that is on my network.

Both Machines run on WindowXP Professional

On the server of Machine1, I have:
1. Under the security tab, I have created a New Login using SQL Server Authentication (general tab), checked all server roles (server roles tab) and checked to permit all databases (in the database access tab)
2. On the server, went to properties -> security tab and allowed for SQL Server and Windows authentication

On Machine2 when I try to register the server of Machine1 through the Register SQL Server Wizard, I am able to see the server. However, when I use the newly created Login Name and password (from step 1 of above). I get a Login Failed for user message. When I try to connect to the server through Query Analyzer I also get an unable to connect to server message (Server: Msg 18456, Level 16, State1)

What else do I need to configure to make it work?

Thank you!

View 9 Replies View Related

UNABLE TO CONNECT TO SERVER

Jul 20, 2005

If you place an image of your server on a rebuilt server, rename it andchange the SID. You get an error message “UNABLE TO CONNECT” when youuse the SQL Query analyzer on a desktop computer to connect to theserver (hosting the image). If you add the server (hosting the image)to the Windows2000 server domain/active server and restart the server(hosting the image), you get the following error message: "YOUR SQLSERVER INSTALLATION IS EITHER CORRUPT OR HAS BEEN TAMPERED WITH (UNKNOWNPACKAGE ID). PLEASE RERUN SETUP."Wouldn't you think changing the name, the sid and adding it to a domainwould be enough to access it. I even created a new ODBC connection.*** Sent via Developersdex http://www.developersdex.com ***Don't just participate in USENET...get rewarded for it!

View 1 Replies View Related

Unable To Connect To Server

Jan 31, 2008

i have three computers with three differnent running systems. about three days ago we were experiencing trouble getting into the game rooms at pogo.com. we thought it would be trouble with java since it affected all three computers. on the computer i am on now i have uninstalled and reinstalled java numerous times to no avail. I am at my wits end trying to fix this. does anyone have any ideas.

View 1 Replies View Related

SQL Server Is Unable To Connect

Dec 12, 2006

Hi there,

There is a SQL instance (sql2005) and I am trying to add a new distribution. Replication wazard says:

SQL
Server is unable to connect to server 'SERVER1'. (New Publication
Wizard)SQL
Server is unable to connect to server 'SERVER1'. (New Publication
Wizard)

SQL Server replication
requires the actual server name to make a connection to the server.
Connections through a server alias, IP address, or any other alternate
name are not supported. Specify the actual server name, 'SERVER1'. (Replication.Utilities)

There is the only local instance of the server on local computer and 'SERVER1' is actual name.

What is wrong?

Thank yuu

View 4 Replies View Related

Error1'System.Data.SqlClient.SqlConnection' Does Not Contain A Definition For 'Connect'

May 3, 2008

<code>
public static DataTable GetCountries() { SqlConnection myConnection = new SqlConnection(ConfigurationManager.AppSettings["omegaloveConnectionString"]);
 if (myConnection.Connect()) .............. problem
{ SqlCommand cmd = new SqlCommand("prcGetCountries", myConnection); cmd.CommandType = CommandType.StoredProcedure; DataTable countries = new DataTable(); countries.Columns.Add("CountryId", typeof(string)); countries.Columns.Add("Country", typeof(string)); SqlDataReader reader = cmd.ExecuteReader(); while (reader.Read()) { DataRow dr = countries.NewRow(); dr[0] = reader["CountryId"].ToString(); dr[1] = reader["Country"].ToString(); countries.Rows.Add(dr); } reader.Close(); return countries; } else return null; } }
</code>

View 1 Replies View Related

Unable To Connect To SQL Server Database.

Apr 6, 2007

hi,
im making a log in using the asp.net web site admin tool the probably
is when click n the security tab it says it cannt connect to the
aspnetsqlprovider. thanksdomal 

View 1 Replies View Related

Unable To Connect To Server. Tired Of This

Aug 3, 2007

The error occurs when I try to configure SQL server express.  Please help. An error has occured while establishing a connection to the server. When connectiong 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)
 
-sam

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved