Remote Connetion Problem

Oct 2, 2006

I developed a VB 2005 application that uses sql express for data.

I have a win xp pro box set up as a server with sql express installed. I enabled remote connections etc.... 

My laptop has the application (but not sql express) and the laptop is using a cat 5 cable connecto to the router of the server box.

When I run my application and log in from the laptop, the connection  string works fine ..

con.ConnectionString = "Data Source=" & logServer.Text & ";Initial Catalog=" & logDatabase.Text & ";User ID=" & logUsername.Text & ";Password=" & logPassword.Text



and I connect to the server box sql express and all the funtions work on my aplication. I see all the data.

Also when I use the wireless connection all is ok.

I brought my laptop to a friend and connected it via cat 5 to his router. The connection was good because I was able to get on the web. Then I tried logging in as usual with my application into the server, but I got an error:
Sqlcmd: Error: Microsoft SQL Native Client: 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.
 


Let me just add that I do have McAfee firewall set up on the server box and I have it set to allow sqlexpress. It's set up as a Home Network. I'm not sure if this can be the problem.
 
I'm not sure what the problem can be. Can anyone help me out?
 
Thanks

View 3 Replies


ADVERTISEMENT

Sql Connetion

Nov 29, 2007

Hello
i am portuguese and my english is not good...sorry
1 - The connection to the northwinds database on my computer(visual 2005) is good and i use this code:<add name="northwindsConnectionString1" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|orthwinds.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>2 - i have attached that northwinds database to my remot server and i can acess it from control panel...at the control panel, they say The code for the  connetion is:     Provider=sqloledb;Data Source=sql349.mysite4now.com,1433;Initial Catalog=northwinds;User Id=id?????;Password=pass????????; the path at the remote server is -----------Northwind ------- Filename : C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDataorthwinds.mdf 3 - After attached the db, i want to run my local application on the remote server and access to teh mdf.Is this code good for connection to webaplication northwinds in your server?<connectionStrings> <add name="ConnectionString" connectionString="Provider=SQLOLEDB;Data Source=sql349.mysite4now.com,1433;Initial Catalog=northwinds;User Id=id?????;Password=pass?????;" providerName="System.Data.OleDb" /></connectionStrings>
Cumprimentos aquiles boiƧa

View 1 Replies View Related

Connetion Fails Suddenly

Apr 9, 2008

I've had this connection used for months and months. The setupQL Express + VS2008. In that particular app I use only one DB Connection but there are about 10 other Sql Server Dbs that I connect to in other apps.

I am still in a development stage.

Today I've decided to connect also via the Server Explorer in VS2008. All connections were established easy. Immediately after that a connection.Open ( ) statement failed with the error message

System.Data.SqlClient.SqlException: Cannot open user default database. Login failed.

At the Open statement I did a break and with Ctrl + Alt + E got all exceptions. They are too numerous to show in here. One of the messages I found was that the failure occured in System.dll.

Any ideas as to why it happened?

I disconnected (deleted) the DB in question--no change. I deleted ALL DB connections from the server explorer in VS2008 - no change. I see the only option now and that is to reinstall the VS2008. I am kind of sick and tired of doing it.

Also I've been trying to move on to Linq and it is my understanding that in order to do Linq I have to establish connections via VS2008 not just connection strings. Is it right? Perhaps I am mistaken?

This particular connection is not that crutial. I can survice without it with this app but for others it would be impossible to continue development.

Any help will be appreciated.

Thanks.

P.S.

Some additional information has transpired. I checked Sql Server Object Explorer and immediately determined that the DB in question lost ALL its tables. There was just an empty shell: the name, no tables, no system tables, no Programmability, nothing.

I "deleted" this DB and reconnected it. The connection with my app miraculously restored itself. Now I could run the app with no problem and the connection to this DB could be Opened in the app. However, when I tried to set up the connection again in the Server Explorer of VS2008 the same thing promptly happened. Now I got this exception back.

It is not the way VS2005 behaved. Is it normal?

Thanks.

View 39 Replies View Related

Auto Database Connetion When SQL Server Restarted In VC++

Mar 7, 2007

How can I connect database automatically when SQL server gets restarted while VC application execution. Any suggestions....

Regards
Sabitha

View 2 Replies View Related

Hardware Requairment For 1200 Concurrent Connetion

May 14, 2008

Hi,

Is any knows what will be the possible hardware requaired for the sql2005server which support 1200 concurrent connection


--Santhosh

View 7 Replies View Related

Remote Access Server Configuration Option And Remote Query Timeout?

Jun 2, 2015

- When I disable "allow remote connections to this server" from server properties>connection page, I can still remotely connect to the server from SSMS...so what is the impact of enable/disabling it?

- what is the impact of changing the remote query timeout (on the same page) from default value?

View 4 Replies View Related

Remote Connections Enabled, But I Still Get Error That Remote Is Not Configured - Sql 2005

Aug 23, 2006

Fellow Devs,
I have an instance of SQL Server Express 2005 running on another box and I have Remote Connections enabled over both TCP/IP and Named Pipes, but on my other box I keep getting the error that the server does not accept Remote Connections.
Any ideas why this might be happening? Is there some other configuration?
 
 

View 25 Replies View Related

SQL Remote Connection Not Being Seen, Though Remote Connections Allowed

Oct 11, 2007

HiI'm going insane.I have a club starter kit on my local server which is working fine.I have migrated the database to my remote host and seems to have transfered ok.For a brief period I was able to connect to the database remotely, but now I cannot I get the following, even though SQL Server Surface Area Config is set to accept remote connections.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.)This is my connection string;<add name="ClubSiteDB" connectionString="Data Source=xx.xxx.xx.xx,xxxx; Network Library=DBMSSOCN; Initial Catalog=tets; User ID=sqladminbob;Password=sqlbob4398;" providerName="System.Data.SqlClient="/>I hav also tried to use  aspnet_regsql.exe to add the remote provider but I get the same message. Thanks 

View 3 Replies View Related

Error 15185: There Is No Remote User 'sa' Mapped To Local User '(null)' From The Remote Server 'DTS_FSERVER'.

Nov 10, 2006

I am trying to add a linked server from a AMD x64 server (Windows 2003) with SQL Server 2005 64 bit to a Server running SQL 2000. These are not in the same domain.

I can create a linked server using the option "Be made using the login's current security context" but can not when trying to specify the security context, i.e. sa and the sa password. When I try I get the following message:

Msg 15185, Level 16, State 1, Procedure sp_addlinkedsrvlogin, Line 98
There is no remote user 'sa' mapped to local user '(null)' from the remote server 'DTS_FSERVER'.

I have several other x64 server that I have no problem creating a linked server and specifying sa and the sa password.

The problem with using "the login's current security context" option is that I get an error when trying to run any Jobs against the linked server. The job fails withe the following error:

Executed as user: NT AUTHORITYSYSTEM. Access to the remote server is denied because no login-mapping exists. [SQLSTATE 42000] (Error 7416). The step failed.

I'm sure the two errors are related. Any ideas what is going on?

View 7 Replies View Related

Difference Between Remote Login Timeout And Remote Query Timeout?

Mar 28, 2008

I just want to find out what the difference between a remote login and a remote query is. I'd have thought that a remote query inherently requires a remote login.

View 6 Replies View Related

Remote Tables Are Not Updatable. Updatable Keyset-driven Cursors On Remote Tables Require A Transaction With The REPEATABLE_READ

May 16, 2008



Has anyone seen this error? It comes up when my app executes a select statement via linked server (from MSSQL 2000 to 2005) the second time it runs. It's basically a timed poll of tables in the remote database. It works once but the second time it executes I get the error from the remote db, it's just a select but I guess the cursor is still open so it can't run again. After the exception the select will run again, once and it just repeats. I have researched it a little and it looks like it mostly has to do with the isolation level of the transaction. Unfortunately based on the componet being used to access the database I don't beleive I have the ability to use transact SQL to call the isolation level (s) listed.

Here's the weird part though, at another site the same scenario is running fine. Same primary and remote db versions of MSSQL as well as the application and it runs fine. I guess my question is what type of setup parameters that may be defined in MSSQL 2005 for the remote database might make it behave in this manner in one instance and not the other? TIA in advance for any thoughts/assistance.

DT

View 1 Replies View Related

Remote SQL

Apr 24, 2007

Hello everyone, I am trying to connect to a remote SQL 2005 database from Microsoft SQL Server Management Studio.I enabled the remote connection on the server and creating a user on the server.I am trying to connect to the server from my workstation using sql server authentication with the login name already created on the server.
I am receiving this error: cannot connect to "server name"cannot open user default database. Login failed.Login failed for user "username".(Microsoft SQL Server, Error: 4064)
Can you help?

View 2 Replies View Related

Remote

Nov 24, 2007

hai,
            when iam opening an application which is using sqlsever2005.
                 Its showing an 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
plz help.
Thanks in advance.

View 2 Replies View Related

SQL Everywhere Remote

Aug 4, 2006



Being new to this mobile game, ive created a database locally and now wish to place it onto my server but when I change my connection string from c:folderdb.sdf to \Serverfolderdb.sdf i get an error that says "value does not fall within the expected range" ive also tried mapping it ie Q:db.sdf

what am I doing wrong?

View 3 Replies View Related

Remote Accessing

Dec 10, 2006

Hello,I just uploaded a new SQL database to my hosting server.I am using SQL 2005 and SQL Server Management Studio.How
can I remotely access the SQL database, on my hosting server, to create
or alter tables and queries, using SQL Server Management Studio? Thank You,Miguel

View 2 Replies View Related

How To Connect To A Remote Sql DB

Feb 8, 2007

Hi all,myDB is located atX:Program FilesMicrosoft SQL ServerMSSQLDatamyDB.mdfand my code is located at : C:Inetpubwwwrootapplicationfolderhow do I code my server.mapPath?
 
Btw, can I get VS 2005 to detect the server path when using server solution.Thanks
sub Page_Loaddim dbconn,sql,dbcomm,dbreaddbconn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & Server.MapPath("X:Program FilesMicrosoft SQL ServerMSSQLDatamyDB.mdf"))dbconn.Open()sql = "SELECT * FROM myTable"dbcomm=New OleDbCommand(sql,dbconn)dbread=dbcomm.ExecuteReader()myDB.DataSource = dbreadmyDB.DataBind()dbread.Close()dbconn.Close()end sub

View 1 Replies View Related

Remote SQL Connection

Apr 24, 2007

Hello everyone, I am trying to connect to a remote SQL 2005 database from Microsoft SQL Server Management Studio.I enabled the remote connection on the server and creating a user on the server.I am trying to connect to the server from my workstation using sql server authentication with the login name already created on the server.
I am receiving this error: cannot connect to "server name"cannot open user default database. Login failed.Login failed for user "username".(Microsoft SQL Server, Error: 4064)
Can anyone help?

View 1 Replies View Related

Remote Database

Jun 13, 2007

How can I connect to a remote database, based on Microsoft sql server? Is there any article that can help? I have read few over the net, but not working for me yet  

View 3 Replies View Related

Connecting To A Remote OLE DB

Sep 2, 2007

Hey, all. I've mainly worked with MySQL databases before. I'm working on an (old) ASP page that uses this connection string:strConnect = "Provider=SQLOLEDB; Data Source=SQL1.MYDBSERVER.NET; Initial Catalog=...; User ID=...; Password=..."
It works fine on the production server, but the local copy fails if I try to access the Products page (which uses the database), with this error: Microsoft OLE DB Provider for SQL Server (0x80004005)[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied./html/products.asp, line 19Similarly, if I plug the connection info into Tools/Connect to Database in Visual Studio, I get: Connection failed:SQLState: '08001'
SQL Server Error: 17
[DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist or access denied. Am I doing something wrong? Do I need more info from the hosting provider to connect remotely? Or is the database not accepting remote connections at all?Thanks in advance for your help!

View 1 Replies View Related

Remote Db Update, How To?

Dec 29, 2007

hi all,
i have a local SQL server running with my Products table, now very soon we want to launch a website (asp.net 2.0 with sql 2k5), hosted on a shared environment, which synchronises with our local SQL. Replication is out of the question.
i tested already with a webservice on our local server, but i can't find the right way how to periodically update our online Db.since our website has over 200 visits a day, i can't do a check everytime the code is launched.Our local server has a slow upload speed + is not 99.9% garantueed online... the dataset has a 1Mb file size.
i do have a boolean which indicates if there are new products or not, in this way i don't have to download the full dataset on my local SQL.(i can provide a list with only the new products and a list of products which have to be deleted, but still, i'm looking for the best way WHEN to do the update)
Forcing an update from my local server to the online server seems a problem since i have restricted rights on the online server.

View 3 Replies View Related

To Remote Connection

Mar 31, 2008

hello !
I am deploying a websete in visual studio2005 after deploying, when run a website Login Failed: The user is not associated with a trusted sqlserver connection. error occurs plese anybody helpme. urgent
Thanks.

View 3 Replies View Related

Can V Run DTS From An Remote Machine?

Jun 14, 2005

Hi,i have developed an web-database enabled application, wherein the admin will be importing the data from a remote machine to the server.Is it possible to run the DTS remotely? Also, is there need to install the sqlserver in the remote machine on which the admin is working ? i mean to say, other than server, do i need to install sqlserver on the remote machine too..Thanx in advance

View 9 Replies View Related

Please Help With Remote SQL Access

Jul 22, 2005

Hi
I have a web application and SQL database on separate SQL 2000 server. I have no admin rights to these servers.The ISP gave me a VPN connection and password to manager my database.If i run the application from my home computer WITH the VPN connected the application works fine.However if i disconnect the VPN or try to run the application from the remote server i get this error:SQL Server does not exist or access deniedI have researched this problem extensively and CANNOT find a solution. The application and SQL 2000 database server are on different computers. The SQL user id and password are different from the VPN connection's.My web config looks like this:<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="mappedname" value="username"/>
<add key="mappedkey" value="password"/>
</appSettings>
<system.web>
<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
</configuration>
And the application connection string is as follows:Dim usersql As String = System.Configuration.ConfigurationSettings.AppSettings("mappedname")
Dim passsql As String = System.Configuration.ConfigurationSettings.AppSettings("mappedkey")
connectionString = "data source=xxx.xxx.xxx.xxx;initial catalog=databasename;"
connectionString &= ";user id=" & usersql
connectionString &= ";password=" & passsql
I am obviously missing something. Not sure what or how to pass the permissions on properly.Can some kind soul please help me with this problemThank YouJeff

View 1 Replies View Related

How To Connect Remote DB

Dec 28, 2005

If I already know that:
Domain: DM1
Server: SV1
Database: DB
user: u1
password: p1
How to connect to DB by Enterprise Manager ?

View 1 Replies View Related

Help With Remote Connection

Apr 23, 2006

I am attempting to connect to SQL 2005 server.  The server and the VS 2005 are on the same computer.  I have configured the db so it uses the security for asp.  The log in section connects fine and checks for the user. I have combined the old db with the new ASP security. If the user is not found then I open a connection  using the open command and check for the user in the old part of the db.  The is where I have trouble.  I get the message below that the server connect but then won't allow remote connections.  I have check the setting and the allow remote connections is checked.  Thank in advance if anyone can help.
 
Endeavor
 
A connection was successfully established with the server, but then an error occurred during the pre-login handshake.  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: 0 - No process is on the other end of the pipe.)

View 2 Replies View Related

Remote SQL Server

Apr 24, 2001

Hi! Could anyone please tell me how to add a remote server (located on a different network) to my SQL server Group in Enterprise Manager. For doing this is a trusted connection required between the Win NT Servers in question? Would be very grateful for any help
Thanks,
Indira

View 1 Replies View Related

Remote Vs. Linked

Apr 24, 2001

What are the top 3 key differences between linked and remote servers ?

Thanks for your help.

Mike

View 1 Replies View Related

Remote Server

Jul 23, 2001

Shouldn't the reomte configuration should be set up on ServerA & ServerB
if you wanted to compare the contents between two tables, and if so I thought
RPC should be done by stored Proc's and not by query alone.

So if I wanted to do this:
select * from Customer_table --(ServerA)
where not exists(select * from Customer_table --(ServerB).

Then it would need to be in a stored proc ?

View 1 Replies View Related

Remote Admin

Nov 2, 2001

Are there any tools for administering SQL2000 remotely over the TCP/IP? And if this is possible what are the main hurdles on setting it up. Emulation is an option.

View 2 Replies View Related

Remote Servers ?

Jan 8, 2001

Hi Everybody,

Can anybody help me on Remote Servers. I want to create a remote server
from 6.5 to 7.0. Is it possible to create a remote server from 6.5 to 7.0?.

From the Books online I saw remote server related commands. Like Linked servers in 7.0, tables of 7.0 can be extracted like "select * from <Remote_server>.<Database>.<Owner>.<Table_name>", in 6.5 Remote servers?. How do we execute a stored procedure of 7.0 Database from 6.5 server in remote server?.

Can anybody guide me on the above topics.

Tks in advance,
Sam

View 2 Replies View Related

RPC And Remote Server

Jul 25, 2000

I have two servers.
STO01SQL010 is a SQL 7 with SP1
STO01IIS01 is a SQL 6.5 with SP5a

I ran the following select statement from the STO01SQL010 server and I get results.

select * from sto01iis01.admintest.dbo.aa_test

update sto01iis01.admintest.dbo.aa_test
Set col1 = "FFF"


However the second statement is giving me the following error


Changed language setting to us_english.
Server: Msg 7306, Level 16, State 2, Line 1
Could not open table '"admintest"."dbo"."aa_test"' from OLE DB provider 'SQLOLEDB'. The provider could not support an interface required for the UPDATE/DELETE/INSERT statements. The provider indicates that conflicts occurred with other properties or requirements.
[OLE/DB provider returned message: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.]

I am linking the server with SA account. Can you help me troubleshoot the problem. The server are sitting on separate none trusted domain. However this should not matter or does it.

THanks

View 2 Replies View Related

Remote Server

Aug 1, 2000

Hello,

This morning while checking out a problem on one of our SQL Servers I discovered that the remote server list had grown to include all of our servers that are in our farm. Some of these servers do not exist in the same domain as the server that contained the remote server listing. This server is also a publisher and I found the same issue on the servers that are the subscribers. Has anyone seen this issue before and can someone explain how this might have happened. I did not add these servers to the remote list so whatever happened occurred automatically. Any ideas would help.

thanks
Deborah Runkle

View 2 Replies View Related

Remote Administration

Apr 13, 2000

Hi!
I need to connect to a database located in another city and administer it from my place.Can any one suggest the basic hardware and sql server(std/enterprice edition?).Shall it be on NT work station or server?Any limitations in administering this way due to some reason we can't move it entirely here.Please advice.
Thanks.

View 2 Replies View Related







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