Accessing SQL Server Via ODBC Through The Internet

Nov 24, 2006

Hi,

I am migrating from MySQL 5 to SQL Server Express 2005 (SP1) and I am having some remote connections issues. I have tried just about everything that I have read in the forums and in Microsoft's knowledge base about remote connections with SQL Server. I am using Visual FoxPro 9 as my client and connecting with ODBC to SQL Server. The strange thing about my issue is that I can connect just fine with localhost or using my LAN IP address. Before I get to the errors, here is what I have configured:

Remote connections are allowed, TCP is active, SQL Browser service is active and running, my router forwards requests on ports 4567 (my custom port that I setup IP1 in SQL Server Configuration Manager to listen on), 1433 and 1434 (TCP and UDP for all) to my local IP address. My firewall will not block ports 4567, 1433 or 1434 (TCP and UDP for all). I even tried turning my firewall off.

For example, the following connection strings work. The first works when I am at the same computer as my SQL Server, the second works from a different computer on the same LAN.

Driver=SQL Native Client;Server=localhostsqlexpress;Database=xyz;Uid=adm;Pwd=pw

Driver=SQL Native Client;Server=192.168.1.3sqlexpress;Database=xyz;Uid=adm;Pwd=pw

When I try the following connection strings (with either my hostname or internet IP address, I get one of several failures):

Driver=SQL Native Client;Server=my.domain.comsqlexpress;Database=xyz;Uid=adm;Pwd=pw

The above strings yields this error message: [Microsoft][SQL Native Client]SQL Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]

Driver=SQL Native Client;Server=my.domain.comsqlexpress,1433;Database=xyz;Uid=adm;Pwd=pw

Driver=SQL Native Client;Server=my.domain.comsqlexpress,4567;Database=xyz;Uid=adm;Pwd=pw

Using either the SQL default port or a custom port yields this error message: [Microsoft][SQL Native Client]Login timeout expired Connectivity error: [Microsoft][SQL Native Client]TCP Provider: No connection could be made because the target machine actively refused it.

The fact that I can connect with my LAN and not on the internet suggests that my ISP may be blocking port 1433. For this reason I tried to change the port my SQL Server instance was listening on but I have a feeling it isn't working.

Any help would be greatly appreciated as I've been stuck on this problem. Is there any way to test if my SQL server instance is actually listening on my custom defined port? Thanks in advance.

-Tom

View 1 Replies


ADVERTISEMENT

Accessing SQL Server With ODBC Administrator

Apr 10, 2008



Hello,
There is a SQL Server databse installed in my machine.
I want to modify a data in a table.
How can I access the data with ODBC Administration?

Thanks

View 6 Replies View Related

Accessing SQL 7 With SQL Server ODBC Driver Version 2.6

Jan 12, 1999

We will be converting shortly from 6.5 to 7. We have a widely
used application that currently accesses the SQL 6.5 using SQL Server
odbc driver version 2.6

Will the 2.6 driver work with 7.0 and ff not, what will we have to do to
get it work with 7.0?

Thanks for the info.

Jerry Dunn
ViaHealth
jerry.dunn@viahealth.org

View 1 Replies View Related

Accessing Reporting Services From Internet Issues...

Dec 5, 2006

I have installed SQL Express 2K5 with Reporting Services on a server (on our
private LAN) running Server 2003 with SP1.

I have requested our ISP to forward port 80 from one of our public IP
addresses to the private IP address of the server - I am reasonably confident
this is setup properly since they have successfully configured other port
forwards for me in the past.

With that said, when I try to access the reporting web site from the
internet, I receive an IE error message indicating "Internet Explorer cannot
display the webpage." I am able to view the reporting website from within
the LAN. Windows Firewall is currently disabled.

Am I missing something? Any suggestions/recommendations would be greatly
appreciated.

View 4 Replies View Related

Query Server Error When Accessing Visual FoxPro 9.0 Via ODBC

Nov 6, 2007



I have a report that accessed a Visual FoxPro 6.0 database via ODBC. Since I upgraded to Visual FoxPro 9.0, now I am getting the error:

Query Server Error
DMS-E-RBI_TABLE The table or view <table name> was not found in the dictionary

I've verified that the right path is setup and I've tried installing about every driver and none of them are working. I created a new database in 9.0 and the I can access it fine. Also, there are old tables that are accessible in the same path, just not the ones I need. Any ideas would be helpful..

View 1 Replies View Related

ODBC And Internet Access

Jul 24, 2007

We are trying to restict internet access from certin computers but, it's still in place because we need to process credit cards. Is it possible to remove internet access and allow our SQL based program to still run credit cards because of the ODBC connection to the SQL server which has internet access?

View 4 Replies View Related

Accessing A View Via ODBC

May 28, 2008

Hi all, I'm setting up an ODBC connection for the UPS WorldShip application.  I created a view for the shipment data in my database.   The user account I'm using can only access the view, and when I try to connect it says there are no tables. Is there a way to make ODBC "think" the view is a table? TIA! - Mark  

View 4 Replies View Related

Accessing Views Via ODBC From MSAccess

Jul 20, 2006

Hello,

This started as a simple thing, allow somebody to access to a database on a SQL 2005 server so they could get to it from MSAccess. I have created a login (Windows Authentication) so they can see the database and gave them "public" and "datareader" abilities.

The user then informed me that while they could see the views they could not see the data. Not being a DBA (sorry) I added "public" to the view's permissions (under properties) and granted it "Select" access and nothing else. After I completed this the user could not even see the views to pick them (via the ODBC link from MSAccess) and when I try to remove "public" from the permissions it dissapears, but when I reopen the permission "public" is back.

I then find out there is no data in the views and so the user would not have been able view anything anyway.

So what I want to do is remove "public" from the views permissions, is this possible?

Thanks for any help,

Tyrone

View 4 Replies View Related

ODBC/OLEDB Failure Accessing MS Access Attachment Field In Query

Mar 12, 2008

We are experiencing failures when accessing a datatype="Attachments" field in a query in an MS Access 2007 database using ACE ODBC or OLEDB drivers.


We are using an MS Access 2007 database
ACE ODBC/OLEDB drivers installed (i.e. Office 2007, which installs these drivers)
DB contains a table with a field of type "Attachments" (which is new in MS Access 2007)
DB contains a query that selects the fields of the above table

Using ACE ODBC or ACE OLEDB drivers to display the table works fine. The "Attachments" field is displayed as the file name of the attachment(s).

However, using either ACE ODBC or ACE OLEDB to display the query (i.e. NOT the table) results in either incorrect results or unexpected failures of the ODBC/OLEDB drivers.


Error using ODBC (using "ODBC Test"):
=============================
select * from Query1 does not give an error, but displays a "1" for the Attachment field.
select Attachments from Query1 gives the following error:
stmt: szSqlState = "HY000", *pfNativeError = -3087, *pcbErrorMsg = 97,
*ColumnNumber = -2, *RowNumber = -2
MessageText = "[Microsoft][ODBC Microsoft Access Driver] Reserved error (|);
there is no message for this error."


Error using OLEDB (using "RowSetViewer"):
================================
select * from Query1 gives the following error:
Interface: Unknown
Result: 0x0004001 = E_NOTIMPL
FormatMessage: €œNot implemented
File: F:DepotSQLVaultmdac28sdkSamplesoledb
owsetviewerSDKobji386CRowset.cpp
Line: 616

select Attachments from Query1 gives the following error:
Interface: IID_ICommand
Result: 0x0004005 = E_FAIL
IErrorInfo: [0x0000f3f1] €œUnspecified error€?
File: F:DepotSQLVaultmdac28sdkSamplesoledb
owsetviewerSDKobji386CCommand.cpp
Line: 439


If it would help to analyze the problem, I have a folder containing all pertinent files (bare-bone database, tools, instructions) to reproduce this. I could attach it as a ZIP file, if requested.

Thanks,

Joe

View 1 Replies View Related

Can't Find SQL Native Client In ODBC Connection Manager In SQL Server Open Database Connectivity (ODBC)

Feb 13, 2007

I apologize if this is not the correct forum for this posting. Looking at the descriptions, it appeared to be the best choice.

I am running Windows XP Pro SP2. I have installed the SQL Native Client for
XP. However, when I try to add a new data source through ODBC Connection
Manager, SQL Native Client is not listed as an option. I have followed this procedure on three other systems with no problems. What would be causing the
SQL Native Client to not show up in the list of available ODBC data sources?

View 4 Replies View Related

Microsoft.Data.Odbc.OdbcException: ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]

Dec 10, 2003

Hi Everybody,


On localhost this application works fine but when I put on remote server. I am getting following errors. For both localhost and server, I am using same remote sql 2000. I will appreciate any help.

Thanks,

Arif



Server Error in '/' Application.
--------------------------------------------------------------------------------

ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ')'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.Data.Odbc.OdbcException: ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ')'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[OdbcException: ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ')'.]
Microsoft.Data.Odbc.OdbcConnection.HandleError(IntPtr hHandle, SQL_HANDLE hType, RETCODE retcode) +27
Microsoft.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method) +838
Microsoft.Data.Odbc.OdbcCommand.ExecuteNonQuery() +80
Calgary.venues.Page_Load(Object sender, EventArgs e) in c:inetpubwwwrootCalgarySitevenuesvenues.aspx.vb:32
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

View 5 Replies View Related

SQL Server And Internet

Mar 13, 2000

Hi,
I am developing a VB app that will be accessed over the net. What do i need to do so that my users will be able to connect to the SQL server without being denied the permission.
a hind regarding the network library settings will be most appreciated.
Thanks in advance.
Deepak.

View 2 Replies View Related

Conecting To The Internet Server

Oct 18, 2000

i want to connect to remote sql server through ip address

iam using winnt server 4.0 and sql 7.0

View 1 Replies View Related

How To Connect To Other M$ SQL Server Over Internet??(Help Me)

Oct 27, 2005

My English is not good.

I want to connect to other computer that installed M$ SQL Server2K over INTERNET. could you help me, plz.

I have used DNS (DOMAIN NAME SYSTEM) to forward to my computer( that connect to INTERNET) and my friend computer is the same. (because we have not static IP).

Thanks

:D

View 7 Replies View Related

Sql Server Licensing For Internet

Apr 9, 2001

I am so confused and I am getting no help from the Microsoft, two months and only stammering
from their representatives. I need to set up a Sql Server database that will allow internet access.
This is not an e-commerce situation. At most there will
be 10 known users of this system accessing statistical data. I had priced this system to use Backoffice,
but as I now read this is not legal for internet use. It also appears that a processor license is required for
internet access (not entirely clear on this). Access and MSDE also don't appear to be legal for internet access.
The customer is on a shoe string budget. If I use stand-alone
components the budget only covers an one processor SQL Server 2000 license. I don't like the idea of setting up
a database system with only one processor. Is there another Sql Server based option I am not aware of?
Its looking like a linux/mysql option - Yikes!

View 1 Replies View Related

Access Sql Server Over Internet

Dec 24, 2004

I need to develop an application in vb.net that uses sql server database so that user can access the use the application over the inter net.
How Can I accomplish that ?
What are the options ?

Pls Help..

View 1 Replies View Related

Connect To Sql Server Through Internet

Mar 6, 2005

Hi,

Can someone please tell me how to do that?
I tried to connect to a sql server through internet by using sql query analyzer but it failed.

I searched for information in the internet but came to no avail.

Can someone please shed some light?

Thanks!

View 2 Replies View Related

Updating 2nd MS Sql Server Over Internet

Feb 2, 2004

Hi,

I'm reasonably new to MS SQL server, I've mostly been setting up databases and creating ASP Pages to look at them with.

However recently I've been given a fun job and I can't seem to find a way to do it.

The problem is we have 2 servers located on different sites, one is actually doing stuff the other just monitors some equipment and when status chages on the equipment a report is made to a table. The software doing this is bespoke and it would cost a fortune to have changed, what we want to do is have the monitoring server send a copy of the inserted row as they get inserted.

I've tried linking the servers via ODBC (in the linked servers part) but when a trigger i've put on the insert table fires it throws up an error about ANSI NULLS and WARNINGS and nothing happens.

After a look round on the internet I've found reference to using the 'set ANSI_NULLS' on command but this seems to be for stored procedures, even then when i try to execute the stored procedure as they show it still comes back with this error.

Can anyone suggest any other ways of copying the inserted row across?

Both servers are MS SQL but are not on a LAN so I have to refere to them as IP addresses.

Cheers,

Iain

View 1 Replies View Related

SQL Server Connection Over Internet ??

May 1, 2004

Hi all developers...

Please help me for connect to SQL server over internet.
What is the connection string in VB6 ?

And what is the different techniques do this ?

Thanks..

View 5 Replies View Related

Connecting To SQL Server OVer Internet

Jul 23, 2005

I know it is possible to establish a connection to an SQL Server overthe Internet via Enterprise Manager. My question is, how secure is thisconnection? Is there a best practices document for this type ofconnection?Here is my scenario:We are looking to outsource our web hosting. Currently, we uploadclient sensitive data to our SQL Server databases within our internalnetwork. If we outsource, the SQL server will be on a differentnetwork. We are behind a firewall here and the dedicated hosted SQLServer will also be behind a firewall. Is the Enterprise Managerconnection succeptable to hackers? If so any reccomendations on how toaccomplish this would be appreciated.Another scenario is connecting to the SQL Server through a DSN. Canthis be accomplished from inside our network to outsourced server? Howsecure would that connection be?Thanks in Advance.

View 5 Replies View Related

Connect To SQL Server Via Internet

Sep 6, 2006

Hi there

We have the following problem. Our DB (MSDE 2000) is situated on remote server on which we

have
administrator privilege. The application which works on Local net connect to every machine in

the
net and see the database on one of the mashine as well.

The connection string is
data source=192.168.0.1XXXX;initial catalog=XXXX;integrated security=SSPI;persist security

info=True;workstation id=XXXX;packet size=4096"

but when we change IP in the connection string to our remote server(in internet with static IP) one we get

an exception says that
SQL server does not exist or access denied.
We opened ports on firewall but problem is still here. Then swithched off the firewall at all

but
same exception comes.
Thanks for answers

View 12 Replies View Related

Does SQL Server Work Well Over The Internet?

May 17, 2008

I have an Access 2003 application that works well in a LAN environment with a Jet based back end. However, I would like to move this back end to a SQL Server database hosted on a website so that my users could run the application from any Internet-connected PC, using a modified version of my Access front end.

Is this a perfectly normal way of using SQL Server? Is response time likely to be an issue or can careful design make performance similar to that with a LAN based back end?

View 18 Replies View Related

Ssis Package Can't Connect To Pop Server Over The Internet From Sql Server Agent

Dec 20, 2007

Sql server agent is running under a domain account that is a member of administrators and domain users amongst others, and the package is executed as the service account. Connecting to servers on the same domain works and when I run it from the msdb package store in ssis (ssis runs under the network service account ...) it will connect to the pop server as well. Permissions, fiddly proxies .. the answer's out there somewhere

View 3 Replies View Related

Sql Server Does Not Exist When I Connect To Internet

Mar 18, 2004

Hi,

I am making a web application and it works fine. It uses Sql Server 2000 as the database. But when I connect to the Internet and compile or run my application it gives me this message :

" SQL SERVER DOES NOT EXIST OR ACCESS DENIED"

it works finewhen iam not connected to the internet

View 4 Replies View Related

Connect To Sql Server 2000 Via Internet

Jul 25, 2005

I'm Building a windows application which updates an internet site's database.Is it possible to connect directly to the sql server through the internet?If so is it the most efficient way ? perhaps a web service or streaming is a better solution?Thanks.

View 1 Replies View Related

Connect Throught Internet Between 2 Server.

Feb 27, 2004

Hi all,
I 'm in VietNam, i want to use SQL server 2000 to connect to SQL server in China throught the internet. I did it in many way but it did not work, please show me.
Best regards

View 2 Replies View Related

Connecting Directly To SQL Server Oer The Internet

May 14, 2008

Hi,
I'm currently writing a desktop application that communicates directly with a SQL server database on the local network. Ideally we'd like to connect directly to the database via the Internet.
- connecting via the Internet is important because we want easy access from anywhere.
- directly is important because fast data transfer is a requirement.

Not knowing much about the security implications of such a connection, I thought I'd ask here. So what are the major risks and objections? Can the connection and data be made secure?

Cheers, Gavin

View 2 Replies View Related

Norton Internet Security && SQL Server

Jul 20, 2005

Hi,Just installed Norton Internet Security on an XP workstation that also hasSQL Server on it.I now find that I cannot access SQL Server and multiple messages are beingissued by NIS.When I switch off the Firewall & Intrusion Detection I can access SQLServer.Does anyone know how to configure NIS so that I can use it alongside SQLServer?Thanks,Mike.

View 1 Replies View Related

Deploy Local SQL Server On Internet?

Feb 1, 2007

Hello,

Sorry for posting this here, I couldn't find an accurate forum name to post this in.

We are using Windows SBS Server 2003 with SQL Server installed. We have a static IP. I am wondering if we can host our database. I am specifically interested in having outside websites access our database. Is there anything special I need to do to make this happen? I am pretty clueless about this.

Thanks!

View 3 Replies View Related

Report Server Authentication Through Internet

Mar 6, 2007

We're trying to determine the best way to implement an authentication mechanism for our reporting services solution. Basically, we are exposing a web application to the internet, and allowing a forms authenticated user to access our report server somewhere within our intranet to view reports. I've browsed msdn and found that there are two approaches:

1. create a custom authentication extension for reporting services
2. create a restricted domain user that is allowed to access the report server

Going with approach 2 and assuming I'm using a ReportViewer control, in order to authenticate with the report server (using the one domain user created specifically for report server access), are we supposed to just provide an instance of an object implementing IReportServerCredential containing the domain user information to the Credentials property of the ReportViewer.ServerReport before accessing the report? Is this the correct way to implement approach 2? Also, if implementing approach 2 is so simple compared to approach 1, why would anyone choose to implement custom authentication extension if they don't need fine-grain access control on the report server level?

Thanks for any help and suggestions!

View 11 Replies View Related

SQL Server 2005 And Security Over The Internet

Feb 2, 2008


Couple of questions for the SQL Server Guru's out there.

SQLServer 2005
Web Hosting Provider

Ok I am developing a Web application in ASP.NET with AJAX, etc. etc. It will be some time before it is ready to roll out. As a mockup I created the same application in Microsoft Access and Visual Basic (VS 2008), which I can link the tables to the hosting provider on the internet. Works very well and speed is very acceptable. The want to start utilizing it with the mockup distributed app that I created.

My question is, is how secure is the data that is moving from the local application to SQLServer 2005 with the web hosting provider ? Is there anything that I can do to increase security ?

Thanks, any thoughts ?

Appreciate any suggestions or comments.

View 1 Replies View Related

Sql Server 2005 Access Though Internet

Feb 18, 2007

How can I access my Microsoft SQL Server 2005 through internet?

For example, I set up a Microsoft SQL Server in one of computers of my company, and every computer in my company has its own IP .They are in the same workgroup. Now, there is no problem with database access with another computer in my company.

Can anyone tell my how to access it through a computer out of my company?

Thanks

View 1 Replies View Related

How-to Expose SQL Server To The Internet From Behind Firewall?

Jun 6, 2007

I cannot seem to find the definitive how-to guide for this. Can anyone point me in the right direction?

I have SQL Server 2005 (x64) already running on Windows 2003 R2 (x64). I'm having difficulty trying to expose it the Internet.

Using the Surface Area Configuration tool I can see that remote connections using TCP/IP is enabled. I also made the machine administrator a member of the SysAdmin role from here too.

In Windows Firewall "SQL Server" and "Web" are already checked as exceptions.

I know that SQL Server uses port 1433 and I also read somewhere that clients connecting to SQL Server communicate on a random port between 1024 and 5000. So, on my router (Netgear WNR854T) I'm forwarding ports 1024 through 5000 to the machine where SQL Server lives.

In my connection string I'm using the IP address of the SQL Server machine with ":1433" appended to the address. Yet I cannot connect to SQL Server. Am I missing anything?

View 9 Replies View Related







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