473,396 Members | 2,081 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,396 software developers and data experts.

Remote Network Server Connection to an Index Server

Hi,
I was reading a previous post about connecting to an Index Server from another computer. However, I'm having a problem connecting to my remote server due to it's name. It is called h01ny-nt2 and the problem is caused by the "-" symbol. It causes a syntax error and expected end-of-file. I can't use the IP address either because the dots in it conflict with the rest of the statement. Here is my code:

$link = oledb_open("Provider=MSIDXS; Data Source=OfficeProcedures");
$server = 'h01ny-nt2';
$keyword = 'FORMSOF (INFLECTIONAL, '.$_REQUEST['Title'].')';
$sql = "SELECT filename, size, path
FROM $server.OfficeProcedures..SCOPE()
WHERE CONTAINS(Contents, '$keyword')";
$res = oledb_query($sql, $link);
while($row = oledb_fetch_assoc($res))
{
var_dump($row);
}

Any help would be greatly appreciated. Thank you for your time and attention.
Nov 29 '06 #1
2 1440
cassbiz
202 100+
In your code
Expand|Select|Wrap|Line Numbers
  1. FROM $server.OfficeProcedures..SCOPE()
Should it read

Expand|Select|Wrap|Line Numbers
  1. FROM $server.OfficeProcedures.SCOPE()
with a single dot or are you trying to call a Scope Resolution Operator the you would have

Expand|Select|Wrap|Line Numbers
  1. FROM $server.OfficeProcedures::SCOPE()
Hope this helps
Nov 30 '06 #2
Thanks for the suggestion but I still receive the error about the "-" symbol for my server name.

Does anyone know why it doesn't like a "-" symbol when trying to connect to a remote server?

And is there any way around this such as escaping it or something?

Thanks
Dec 1 '06 #3

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

Similar topics

5
by: kackson | last post by:
Hi. I would like to access my database outside of my company. I read many documents but they are all pertaining to accessing the database via ASP or some form of web application. Is there no...
12
by: Mike MacSween | last post by:
Sorry if this is a bit off topic, but I can't seem to find a 'remote control' newsgroup on my news server. And anyway I know Tony has some experience of this. The app is split FE/BE. I'd like...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
8
by: Ray Stevens | last post by:
Because this worker process using the local ASPNET userid, it is unable to access Sql Server databases on a remote server. I believe the solution is to use a domain id and apply it to both... but...
1
by: vighnesh | last post by:
Hi All I am dealing a project in ASP.NET in which I have to establish a connection to SQL Server 2000 database,where the database was located on a remote system. For this I have used...
0
by: tamayi | last post by:
I have a problem (like most others posting issues on this forum :) ) I have a remote server running Windows XP SP2, with both SQL Server 2005 Express with Advanced Features and SQL 2000...
4
by: Jerim | last post by:
I have a script on one server, trying to access the MySQL database on another server. The server with the script is on an outside network, hosted with another company. The MySQL server is here in...
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 ...
5
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting...
7
by: RN1 | last post by:
Is it possible to connect to my local SQL Server 2005 database from a remote web server? If yes, what ConnectionString do I use? Thanks, Ron
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.