Configuring SQL Server For Remote Connection
Aug 31, 2006
Hi all, I am new to SQL Server but I'm trying to learn it.. :)
I've created a database on my campus server. Now I want to configure it so that I can access the database from my laptop computer through internet.
I have an account in the SQL server installed on my remote server. I can connect to the remote server through remote connection.
I appreciate your help,
thank you,
chikitha5466
View 3 Replies
ADVERTISEMENT
Jan 23, 2007
When I configure and test and OLEDB connection SQL Server 2005 keeps stopping with an error message as shown below. The problem seems to happen when I open the connection for ediing in Data Flow Window. There is a consistent pattern of errors (in there Event Log) relating to the Evnet Log prior to this error occurring.
Any idea what the problem is?
I have to say that my experience with SSIS has not been very encouraging so far.
Event Type: Error
Event Source: MSSQL$SQL2005
Event Category: (2)
Event ID: 17311
Date: 23/01/2007
Time: 2:06:41 PM
Description:
SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check the SQL error log for any related stack dumps or messages. This exception forces SQL Server to shutdown. To recover from this error, restart the server (unless SQLAgent is configured to auto restart).
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 9f 43 00 00 10 00 00 00 źC......
0008: 14 00 00 00 53 00 59 00 ....S.Y.
0010: 44 00 2d 00 4c 00 2d 00 D.-.L.-.
0018: 30 00 31 00 33 00 32 00 0.1.3.2.
0020: 36 00 5c 00 53 00 51 00 6..S.Q.
0028: 4c 00 32 00 30 00 30 00 L.2.0.0.
0030: 35 00 00 00 11 00 00 00 5.......
0038: 45 00 78 00 61 00 6d 00 E.x.a.m.
0040: 70 00 6c 00 65 00 48 00 p.l.e.H.
0048: 69 00 73 00 74 00 6f 00 i.s.t.o.
0050: 72 00 69 00 61 00 6e 00 r.i.a.n.
0058: 00 00 ..
View 1 Replies
View Related
Aug 30, 2006
When I create a new odbc connection to a SQL server 2005 Db I get a failure telling me dat de SQL server does not allow remote connections.
How can I allow the server to allow this.
Any help appreciated
regards
View 1 Replies
View Related
Feb 23, 2007
Greetings once again SSIS friends,
I am trying to configure a connection manager for a database that is still using SQL Server 6.5 But it is not working properly. I put the server name, user name and pass word, I select the Native OLE DBMicrosoft OLE DB Provider for SQL Server as my provider.
When I click Test Connection it says the connection is fine but then the drop down list for the list of databse names hows nothing!
Am I using the wrong provider?! I'm confused!
View 5 Replies
View Related
Feb 6, 2008
Hi All,
I need to write a report which will run based on the user's input for Server Group. Meaning, if the user wants the report to be run for one say, UAT group, the report (and therefore the stored procedure) should be executed against UAT server. Or, if the user wants it to be run on the Production machine, the stored procedure should be executed on the Production Server. Assume that both UAT and Production servers are in the same domain to rule out any authentication issue.
I think one way of doing it is to create a linked server on one server which we use to connect via the Report Manager. So, whatever Server Group is selected based on that the SP will be executed on that respective Server Group's Server, since in the query we will have given full names of the tables that we use.
But, I strongly suspect, that having linked servers will not be accepted since it requires that the server owners maintain that. So, I was thinking if there is any other way of achieving this. If anyone knows, please help me with this.
Thanks a lot and let me know if the question is not clearly stated.
Manoj.
View 1 Replies
View Related
Mar 13, 2007
I am programmatically creating a package in c#. I need this package to contain a flat file connection manager. I have been successfully able to create the connection manager with the following code:
Package p = new Package(); //New package
ConnectionManager cm = p.Connections.Add("FLATFILE"); //Add a flat file connection manager
cm.ConnectionString = "C:DevmyTestFile.txt"; //Set up the connection string
At this point, I want to configure the flat file specific properties of the connection manager (RowDelimiter, HeaderRowDelimiter, etc.). The problem is that the properties collection of the ConnectionManager object is read only. I think I could access the inner object of the connection manager and set the properties in the following way:
ConnectionManagerFlatFileClass ffClass = (ConnectionManagerFlatFileClass) cm.InnerObject; //Get the inner object
ffClass .RowDelimiter = "{LF}"; //Set the properties here
Even if this would work, I do not like the solution b/c the BOL states that the ConnectionManagerFlatFileClass "supports the SQL Server 2005 infrastructure and is not intended to be used directly from your code". Does anyone know the "right" way to set these properties?
Many thanks in advance!
David
View 1 Replies
View Related
Jul 12, 2006
Hi
I have two machines, the one has Windows 2003 server and the other has Windows Xp Pro on.
The 2003 one has SQL Standard Edition 2000 on where as the XP Pro has MSDE 2000.
I'm trying to run a windows based app from the 2003 server and it connects to a database on the XP Pro PC.
When running the application i keep getting the following exception:
"A Transport-Level error has occured when sending the request to the server (Provider: Named Pipes Provider, error: 0 - The specified network name is no longer available)
After using Preformance monitor on the XP machine it seems that when the app starts and the user logins in it make a SQL connection but then the connection is lost then the exception pops up. then i click continue and try it again then it works, then a couple of secs when using the system it pops up again. The Performance Monitor Test shows that the SQL connection keep being lost. The network is fine. its has something to do with SQL and Named Pipes and stuff.
When running the app on the Xp machine and the Connection is made to the 2003 machine there is no problem.
There are other connection made to the Windows XP Machine but i doubt that it affects the app.
The Windows firewall is off as well.
Please can anyone help.
View 4 Replies
View Related
Feb 17, 2006
I'm creating an xml configuration file to hold the connection string including the password (sql server authentication). My package protection level is set to 'EncryptSensitiveWithPassword'. I set up my connection manager and I check the 'Save my password' box. The 'Test connection' button reports that the connection is OK. I enable the package configurations and I go through the Package Configuration Wizard and I specify 'xml configuration file' and I choose 'Specify configurations settings directly' and I specify a configuration file name with the same directory as the package. I check the 'ConnectionString' property and the 'Password' property and then click 'Close'. Then I save my package changes. Now I look at the xml configuration file in a text editor and I see the Password property has an empty element:
<ConfiguredValue></ConfiguredValue>
Is it supposed to be empty? When I right-click the package in solution explorer and pick 'Reload with upgrade' then I have to enter the password, but the validation fails with 'Acquire connection' error. Should I just be saving the 'Connection string' property, or should I save all the connection elements (i.e. ServerName, UserName, Password etc.)? If I edit the xml configuration file and I type the password into the <ConfiguredValue> element above, and then I do 'Reload with upgrade', then the 'Acquire connection' validation error goes away. Could this mean that I am not able to encrypt the password? Thanks.
View 2 Replies
View Related
Jun 3, 2007
Hi,
I've worked with SQL Server plenty but never in this specific manner. Hoping someone can shed some light.I have a webform on web server A that needs to talk to a SQL server database that web server B accesses via its web application. I do not haveany privelidged access to server B or the sql server it uses (no FTP to webserver, no remote access via Enterprise Manager to the SQL server). The Admin of Server B told me that I can use a DSN connection to talk to the SQL server database that the web app on server B uses. He emailed me the names of the SQL database tables AND a copy of the web.config from server B which shows the DSN implemented like this:<appSettings> <add key="dsn" value="data source=sql3.domainname.net;database=dbname;User Id=dbuserid;password=dbpw;" /> <add key="default_language" value="en" /> <add key="error_email_to" value="someone@domainname.com" /> <add key="baseHref" value="http://www.mysite.com/" /> <add key="website_name" value="$$$$$$$$$$$$$$$$$" /></appSettings>
I was planning to run my webforms on Server A where I do have FTP, Control Panel, etc.So, I wrote this code into my VB.NET codebehind file.
Dim oODBCConnection As OdbcConnectionDim sConnString As String = _"Driver={SQL Server};" & _"Server=sql3.domainname.net;" & _"Database=dbname;" & _"Uid=dbuserid;" & _"Pwd=dbpw"oODBCConnection = New Odbc.OdbcConnection(sConnString)oODBCConnection.Open()... commands to access data and load something into a control on a webformoODBCConnection.Close()
When I attempt to run the webform in my browser from Server A. I'm getting this error:ERROR [08001] [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. ERROR [01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()).The error is EXACTLY the same whether I place the appSettings section in server A's web.config or leave them out.I have obvious questions about the error like...Might sql3.domainname.net simply be refusing communication requests that don't come from the Server B domain?Might the sql3.domainname.net be setup so that I need to use another protocol (not tcp/ip)?Might my code need to be changed to support this type of connection (i.e. I didn't code it right)?I spent some time reading http://support.microsoft.com/kb/328306/en-us but I'm at a loss as to what the best course is to take for debugging this.Thanks in advance for any insight you can offer.
Stewart
View 1 Replies
View Related
Jan 20, 2005
I would appreciate any help anyone can offer
I am developing a web application that needs to access SQL Server. I have implemented forms authentication. My Sql server is on another machine and I am unable to connect because ASPNET is a local account. Is there a way around this, I really need to keep forms authentication and I am forbidden to place Sql Server on the same machine
View 6 Replies
View Related
Apr 13, 2004
Hi all,
I am trying to connect to remote sql server in vb.net application.
I am getting an error "login failed for user'abc' ".
why am I getting this error, what could be the possible reason.
any help will be appreciated.
View 4 Replies
View Related
Feb 1, 2007
Hi,
Just want to know what I need to check to make sure the remote connection is configure properly other than "Enable the remote connection" for the server? what ports that need to open up if firewall is running on the Server Machine?
I tested with a remote user, it seems the application just hung there and wait.. wait.. it seems something block the connection.
No error message, If I ping from the remote PC to the server, the response time is in acceptable range.
Thanks!
View 1 Replies
View Related
Jul 2, 2007
hi
i added 2 databases to my SQL server on a machine next door using Microsoft SQL server management studio express... I made sure that the server allows remote connection
then from this computer i pass a connection string to my SQLCLient in VB2005 that looks a bit like this
Code: ( text )
ConnString = "Server=USER-PTDH8Z5ESHSQLEXPRESS;Database=FSS.MDB;Trusted_Con nection=True;User Instance=True"
for which it gives me this error when i open the connection
SQLConnecton.Open()
System.Data.SqlClient.SqlException: 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)
at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at Flying_School_Scheduler.DBEngine.StartConnection() in
whats the big idea?
i'm in a bit of a tight schedule here... can anyone help me here?
View 6 Replies
View Related
Jul 23, 2005
We have a database on a shared SQL Server stored on our ISP's server. I canconnect to this via Enterprise Manager from our office, but when I try thesame from Enterprise Manager on my PC at home I get the following message:A connection could not be established to MFSERVER.Reason: SQL Server is not running or access denied.Any ideas?Thanks
View 1 Replies
View Related
May 3, 2007
hi
I am developing a web application using C# and SQL Server 2000. It works fine when the Application and DB are in same machine. Now I want to connect to the DB located in another machine in the same network.
I used the connection string as follows.
"Data Source=ip add,1433; user id=uid; password=pwd;"
"Data Source=machine name; user id=uid; password=pwd;"
but the appliation always throws the 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)"
what is the problem in the connection. Do I need any special configuration that has to applied on the DB machine.
Anyone pls give a solution ASAP.
thanks in advance
yenkay
View 3 Replies
View Related
Oct 9, 2006
I am trying to connect to the SQL Server 2000 installed on Windows 2003 Server using VB .Net SQL Connection Class. I am getting an error
Error: An error has occured 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)
View 7 Replies
View Related
Apr 29, 2008
I'm currently connected to SQL Server 2005 over local network usint (TCP/IP)
every thing is well
The question is how to connect to the server over the intrenet?
my pc info
- windows xp sp2
- dsl line 512
- 2 giga ram
View 5 Replies
View Related
Sep 12, 2006
Hi,I trying to connect to the sql server in the network. The sqlserver is in the machine called "pinnacle". I am Using the following connection string to connect and i am getting the error "Sql server does not exist or Access denied"Public databaseConnectionStringSQL As String = "Data Source=(pinnacle);Initial Catalog=cms;Trusted_connection=True;User Id=dbuser;Password=password"Any help will be appriciated.Reagrds,Thiyasoft
View 4 Replies
View Related
Jul 30, 2007
Dear All,I have TWO PCs, one of them having SQL Server 2005 Expressi get sure the TCP is enables , Active, Remote conneciton is enabled via TCP onlyfrom VS2005 (C#) i can add new sqlconnection contorl and configure it with any of the installed DBsbut when i got to the Other PC with VS2005 as well, i can't configure itall i can do is to see the server inthe server list.. but NO databases are retieved at all in the Select database drop down menu any solution or suggestion
View 1 Replies
View Related
Aug 30, 2007
Hi, I have an issue with ASP.NET 2.0 and SQL Server 2005
My project when hosted in a machine its working, but in case of some other machine it is throwing 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 have turned off my firewall and network configuration for sql server and its also done as tcp/ip and named pipes…though it is not working …
The surprise is if I run using IDE its running , in the same machine after hosting it is not running, where the db is in another machine. What could be the problem? Any suggestions would be highly appreciated. Regards,Naveen
Regards,
Naveen
View 3 Replies
View Related
Nov 1, 2007
I know this is strickly not a website question, but dunno where else to post...To remotely admin and monitor some functions of the website, I wish to use a local application to connect to the MSSQL DB which is held on the remote webhosting serverI have the following code: Dim StrSQLUN As String = "[UN]"
Dim StrSQLPW As String = "[PW]"
Dim StrServer As String = "[IP][INSTANCE]"
Dim StrDB As String = "[DB]"
Dim strTimeOut As String = "Connection Timeout=0;"
Dim pStrSQLConn As String = "Server=" & StrServer & ";Database=" & StrDB & ";User Id=" & StrSQLUN & ";Password=" & StrSQLPW & ";" & strTimeOut
Dim sqlConn As New SqlClient.SqlConnection(pStrSQLConn)
If sqlConn.State = ConnectionState.Closed Then sqlConn.Open()
This has basically been take from the existing code on the website, but changing to the server details. I had just started dev'ing this app when the admins decided to move the SQL server over to a different server. It was working on the old one, but the new one doesn't. It just times out after whatever time you put in the timeout variable. 0=unlimited, and so just sits there.I am also using the MSSQL Server Management Studio locally to connect to the same database, and although slow, does connect after about a minute or so. I thought they would be using the same type of underlying connection to access the server and database? Is this correct?
Can they put restrictions in place for this specific sort of data access?Does anyone have any suggestions on how to resolve this issue??Thanks for any helpAdam.
View 2 Replies
View Related
Nov 29, 2007
Here is my environment and problem:
I have VWD 2005 and SSE 2005 installed on my local machine. I also have these installed on my Windows 2003 Server. I developed my database using SSE on my local machine but pointing to directory on my server. I have been developing the web app using VWD on my server. I now want to use VWD on my local machine and point to the project on my server. I am able to open the project. In order to access the database in the "Database Explorer" I use as my "Data Source", "MS SQL Server (SQL Client) and it attaches fine and I can see my tables and data.
Now for my problem:
When I try to run the application "VIew in Browser", which login.aspx page is my first page, I get the page, but it doesn't inherit my master page which has the basic navigation and layout. Then after I try to login I get this message.
The file "W:BBAppApp_DataTimeTracker.mdf" is on a network path that is not supported for database files.An attempt to attach an auto-named database for file W:BBAppApp_DataTimeTracker.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Here is a portion of my web.config file for the connection string.<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=.SQLExpress;Integrated Security=true;AttachDBFilename=|DataDirectory|TimeTracker.mdf;User Instance=true" />
My website I started with the source code for the TimeTracker start kit and have added more pages and changed the sitemap.
In general I guess I need to know how to handle using VWD on my local machine, but accessing the project on the server. The reason I'm doing this is because my colleague needs to be able to access the web app too to add pages to the site.
Thank you for any help.
View 1 Replies
View Related
Apr 4, 2008
HI I have installed VS 2005 with that SQL express edition came default and i then installde SQL server Enterprise Edition .....There i created database and tables and other my colleagues are not able to connect to the Database from there System...........I am using This on XP.......Is it possible to access databse from other remote systems .....IF yes What is the procedure to connect from my other computer to my database which is on XP not any Server OS..
View 7 Replies
View Related
Feb 17, 2004
I have a problem in connecting to my hosting database using .net file.
I am able connect to database with my ASP page.
Any sugession is greately appretiated!
Here is my code:
".net" page:
<%@ page language='vb' debug='true' %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<html>
<script runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
Dim MyConnection As SqlConnection
Dim da AS sqlDataAdaptor
Dim ds As DataSet
MyConnection = New SqlConnection("DSN=***;UID=***;PWD=***")
da = new sqlDataAdaptor("select * from city", MyConnection)
Try
MyConnection.open()
Response.write "Connection Success " & MyConnection.Database & "<br>"
catch sx AS sqlException
Response.write "Connection successful: <br>"
End Try
ds=new Dataset()
da.Fill(ds, "City")
With DataGrid1
.DataSource = ds.Tables("city").DefaultView
.DataBind()
End With
MyConnection.Close()
End Sub
</script>
<body>
<p>
<ASP:dataGrid id='DataGrid1' runat='server'/>
<p>
</body>
</html>
---------------------------------------------
"ASP" page:
Set DB = Server.CreateObject("ADODB.Connection")
DB.Open ConnectionString
SET RSCheckeMail = DB.Execute ("select * from city")
While not RSCheckeMail.eof
Response.write "City: " & RSCheckeMail("Name") & "<br>"
RSCheckeMail.Movenext
Wend
Thanks for your help in advance.
View 8 Replies
View Related
Jun 5, 2007
hi sql team i've been reading much of the ms walkthroughs and some forum how they solve sql server 2005 (express) remote connection but non of them squared my problem.
in my case since we dont have in-house web server i need the script (ASP) run from our domain host/hoster and the sql database will be somewhere in our office. i try making a local (LAN) run of script just to test if the connection (asp-to-sql dbase) was established and im getting all things work.
OUT PUT
http://images.cjb.net/114e8.gif
http://images.cjb.net/343e3.gif
problem/nightmare comes when i access the test script through domain host with error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied.
i tried using the following connection string thinking it will work for me but nothing seems happen:
test connection 1
cn.Open "Driver={SQL Server};" & _
"Server=www.gpzgroup.com;" & _
"Address=10.0.0.254,1433;" & _
"Network=DBMSSOCN;" & _
"Database=testdb;" & _
"Uid=xx;" & _
"Pwd=xx;"
test connection 2
cn.Open "Driver={SQL Server};" & _
"Server=live-static-ip;" & _
"Address=10.0.0.254,1433;" & _
"Network=DBMSSOCN;" & _
"Database=testdb;" & _
"Uid=xx;" & _
"Pwd=xx;"
test connection 3
cn.Open "Provider=sqloledb;Network Library=DBMSSOCN;" & _
"Data Source=10.0.0.254,1433;" & _
"Initial Catalog=testdb;" & _
"User ID=xx;Password=xx;"
where i am getting wrong at this point?
your response will be greatly appreciated thanks.
View 1 Replies
View Related
Aug 29, 2007
I have a software to connect the SQL Server as DB, and it is ok to connect to the SQL Server 2000 on the remote server in our firm, but got errors when doing the connection to the SQL Server 2005. the error messages are:
Error #1:
ADO Error #-2147467259
Description SQL Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
Source Microsoft SQL Native Client
Error #2:
ADO Error ##-2147467259
Description An error has occurred while establishing a connection to the server. When connection to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
Source Microsoft SQL Native Client
Error #3:
ADO Error ##-2147467259
Description Login timeout expired
Source Microsoft SQL Native Client
I'm using SQL Server 2005 version 9.00.1399.00, not the Express version. Should I update the SQL Server 2005 Network Configuration in SQL Server Configuation Manager? But I don't know what should be set to "Enable" or Disabled". Is any other place need be configured?
Thanks.
View 1 Replies
View Related
Oct 10, 2007
i use connection to connect to a remote sql server.Here are the details
provider :Native OLE DB/SQL Native client
Server :ip address
databaseelect respective database
authentication ql server
i have a problem and it comes up with this message
"Test Connection failed because of an error in initializing provider.Login timeout expired.An Error has occured when establishing a connection to the server .when connection sql server 2005 database,this failure may be caused by the fact that under default settings sql server does not allow remote connections"
i do the same locally and it works out fine.
what do i have to check.
I think remote connections are not opened.
View 10 Replies
View Related
Jun 2, 2007
Its been almost 2 months i start running a test script page to check if i made the remote connection until now its getting worst.
I did follow every bit of the instruction and pre-evaluation in fact the script is working locally with this string:
cn.Open "Driver={SQL Server};" & _
"Server=global-static-ip;" & _
"Address=local ip,1433;" & _
"Network=DBMSSOCN;" & _
"Database=testdb;" & _
"Uid=xx;" & _
"Pwd=xx;"
i also review the ff post for client and server trouble shooting tips:
http://blogs.msdn.com/sql_protocols/archive/2006/09/30/SQL-Server-2005-Remote-Connectivity-Issue-TroubleShooting.aspx
surface configuration, sql browser, firewall exemption...
and nothing seems change when i access the uploaded script.
is there anything i am missing?
by the way the script is uploaded by company.
View 3 Replies
View Related
May 6, 2006
I have installed SQL server 2005 express on my main server.
It has been installed with windows authentication.
I can use sqlcmd -S machinenameinstancename to connect to the server, but when I try to connect from another machine on my lan, I get the error about user not part of trusted sql connection msg 18452 level 14 state 1
I have tried using a windows username and password from my server to access it but that fails also.
Any help would be appreciated
View 1 Replies
View Related
Feb 23, 2006
This has probably been answered before, but...
I have a local SQL Server 2005 instance running, and I would like to have another user on my network connect to this instance. However, when he tries to connect, he always receives the same error message:
"An error has occured 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 28: - Server doesnt' support requested protocol)"
So, I checked the properties for the server, and under the connections tab the allow remote connection box is checked.
Any clue where to look next?
View 7 Replies
View Related
Jul 2, 2007
hi
i added 2 databases to my SQL server on a machine next door using Microsoft SQL server management studio express... I made sure that the server allows remote connection
then from this computer i pass a connection string to my SQLCLient in VB2005 that looks a bit like this
Code: ( text )
ConnString = "Server=USER-PTDH8Z5ESHSQLEXPRESS;Database=FSS.MDB;Trusted_Con nection=True;User Instance=True"
for which it gives me this error when i open the connection
SQLConnecton.Open()
System.Data.SqlClient.SqlException: 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)
at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at Flying_School_Scheduler.DBEngine.StartConnection() in
whats the big idea?
i'm in a bit of a tight schedule here... can anyone help me here? ??
View 3 Replies
View Related
Oct 23, 2006
Having all kinds of problems trying to establish a connection between a VB5 application and a remote server Sql Express database. The connection works fine with a user instance on my local machine. At one time I did have the remote connection working successfully using Sql Server authentication, whereby the application was passing the login and password through the connection string as so:
Provider=SQLNCLI.1;Persist Security Info=False;Data Source=<server name>sqlexpress;Database=<database name>;Uid=<userid>;Pwd=<password>;
I've been away from using this development database for several weeks. Things are little foggy from that initial effort, and I recently tried putting up a newer copy of the development database on this server from my local machine copy. That local database copy apparently didn't have authentication login/user used by the app, so I created the Login account and assigned the default database, then created the User account, referenced it to the Login account, and gave the user account a role as db_owner. Now when my app attempts to connect with aforementioned connect string, I get an error "Login failed for '< userid>'. I've redone this thing a hundred times and I still get this error. I did put a Windows Update on this server recently so don't know if that's an issue.
I could try using Windows authentication mode, but am not sure how to establish Logins/Users under this mode. Mainly, I'm don't know what the name of these accounts should be. Do you set the Windows login name up in both Login and User accounts? Below is a modified connect string I'd probably use for this mode:
Provider=SQLNCLI.1;Persist Security Info=False;Integrated Security=SSPI;Data Source=<servername>sqlexpress;Database=<database name>;
Any ideas or suggestion on things to try on either of these modes? At my wits on this and am up against the clock.
TIA ... Rick
View 6 Replies
View Related
Jul 25, 2006
Hi ,
After reading the SQLexpress weblog , I tried the solution and its still not working
http://blogs.msdn.com/sqlexpress/archive/2005/05/05/415084.aspx
The client computer gives me this:
Run-Time error -2147217843 (80040e4d)
Log-in failed for user "KitGuest"
The connection string in the ADO object in my testing VB6 program is:
my_connection.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=kit;Initial Catalog=AdelaideMushroom;Data Source=KITSQLEXPRESS"
I am confused with the error massage as my conncection string is set to connect on UserID = Kit
I am not sure what is gone wrong. The same VB6 program runs perfectly on host machine
I am not sure is there anything to do with SQL Config. Manager's SQL server 2005 service's Log-ON setting:
Log On as - Build-in account: Network service
could Anyone who managed to get remote connection work give me some advise?? I am desperate. have read that weblog many times and do not know how to get it work
View 4 Replies
View Related