473,385 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

connecting to remote SQL Server

Hi!
This might be a very simple query for all those working on Coldfusion but difficult for novice like me.
I have to fetch data from the SQL Server database which is on a remote server.
Can someone help me with the code that I need to write in the <CFQUERY> tag. I have written the code as:
Expand|Select|Wrap|Line Numbers
  1. <cfquery name="qry_fetch_user" datasource="234.208.90.15" dbname="myDatabaseName"  >
If I execute this, it displays the error:
Expand|Select|Wrap|Line Numbers
  1. CFML Runtime Error - > General Runtime Error - > "The datasource 234.208.90.15 could not be found or was invalid"
I am not using Coldfusion server but another software which allows integration of ASP.Net and Coldfusion i.e. Bluedragon(from BEA Weblogic).
Thanks in advance.
Jul 31 '07 #1

✓ answered by quest007

Thanks for the help. I could connect to the datasource after the I did the following:
- using a DSN
- setting some security related attibutes viz., "Annoymous Access" and "Integrated Windows Authentication" in the properties of the Virtual Directory for the website in IIS.
- setting the permissions for "ASPNET" user on the database.

This made the things work !

3 4533
acoder
16,027 Expert Mod 8TB
The datasource is defined in the Coldfusion Administrator. As far as I'm aware it has to be on the local server. How about you write some code on the remote server that accesses this database and then access that page?
Jul 31 '07 #2
Thanks for the help. I could connect to the datasource after the I did the following:
- using a DSN
- setting some security related attibutes viz., "Annoymous Access" and "Integrated Windows Authentication" in the properties of the Virtual Directory for the website in IIS.
- setting the permissions for "ASPNET" user on the database.

This made the things work !
Aug 1 '07 #3
acoder
16,027 Expert Mod 8TB
Thanks for the help. I could connect to the datasource after the I did the following:
- using a DSN
- setting some security related attibutes viz., "Annoymous Access" and "Integrated Windows Authentication" in the properties of the Virtual Directory for the website in IIS.
- setting the permissions for "ASPNET" user on the database.

This made the things work !
Oh right, it was a permissions/security issue. Well done!
Aug 1 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: stabbert | last post by:
We are running DB2 UDB 8.1.6 in a partitioned environment where we have 8 physical nodes. We have a process that remotely connects to each individual node and loads some data. By setting the...
1
by: Jim Bayers | last post by:
Our network nazi doesn't want us running a webserver on the server that has a connection to the campus database so we created a remote object that runs as a windows service. The windows service...
5
by: bill | last post by:
I am having difficulties connecting to a remote Sql server database in VB.net. Lets say my remote server is found at 255.255.255.255 and its name is MyServer. The database is called MyDatabase....
0
by: acwomble | last post by:
I am working with a database on another system via a ssh tunnel using plink. We have setup an alias the local system for the remote database. I am able to connect and work from within Visual...
0
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
8
by: =?Utf-8?B?U3JpcmFtIE1hbGxhanlvc3VsYQ==?= | last post by:
Hi, I am not sure whether this is the correct newsgroup where I need to post my question. Let me know where I need to post for a quick response. I get the following error when I try to connect...
2
by: samadams_2006 | last post by:
Hello, I have a problem that I'm hoping someone will be able to help me resolve. 1) I have a C# Web Site in which I connect to the database: "Install Microsoft SQL Server 2005 Express...
1
by: SayamiSuchi | last post by:
Hi.. I have been assigned to make a database in some remote machine.The machine has MSSQL 2005.I need to connect to that remote machine's sql server via my pc using my SQL Management express.I do...
3
by: Me LK | last post by:
I did a search but could not find an aswer that worked so here it goes. I just did an upgrade from 2003 to vs 2005 express. I am using a remote sql server 2000. I specifically upgrade to make...
0
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.