473,394 Members | 1,829 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,394 software developers and data experts.

Getting errror -->Invalid catalog name 'Search'. SQLSTATE=42000

Hi ,

I have indexed folder on my remote computer. I am trying to access catalog of that indexed folder using asp.net as follow.

string name = "MYserver".gun..Scope()";
string connstring = "Provider=MSIDXS.1;";
string querystring = "Select PATH from "+name+" where FREETEXT('M05M3')";

System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(connstring);
conn.Open();
System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand(querystring, conn);
System.Data.OleDb.OleDbDataReader dr = cmd.ExecuteReader();
_gridview.DataSource = dr;
_gridview.DataBind();
conn.Close();


When I exectue this code I get "Invalid catalog name 'gun'. SQLSTATE=42000 " error.. While If instead of "Myserver" name I give my local computer name and catalog , it is running fine.


If anybody could help me Why I am getting this error for remote computer.. I searched on net but nobody has given solution of this..

A lot of thanks in advance

Thanks and Regards

Manoj
Feb 14 '08 #1
2 2164
kenobewan
4,871 Expert 4TB
Is gun the name of your db? Look like you need a better connection string. HTH.
Feb 14 '08 #2
Is gun the name of your db? Look like you need a better connection string. HTH.
Hi,

Thanks for reply..

Gun is name of my catalog that I have created on my remote server..
As far as connection string is concerned..According to "http://msdn2.microsoft.com/en-us/library/ms810655.aspx" for MSIDXS provider we donot need any thing extra to give to connection string..


So If you could suggest me something else or If I am wrong , let me know..I am really struck in this and not finding any solution.
Feb 14 '08 #3

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

Similar topics

0
by: John Hunter | last post by:
I would like to extract the font and family name from a TTF file. I have been looking at fontTools ttLib, which parses the ttf file and provides lots of helpful information, but cannot find the...
2
by: aspUSER2 | last post by:
hi.. I have an intranet link with me.. Where when I click to that site at the top right corner I see something written as "DSO GUEST"… the words must be hard coded at the back. And then there is...
0
by: Jack | last post by:
Hello, I am looking for some canned scripts to implement an advanced search feature on a product catalog. Here are the details : 1. product has attributes. Depending on the product family, a...
6
by: Ken Kast | last post by:
Here's my situation. I have an object function Obj () { this.foo = null; } a function function bar() {...} another function
1
by: Michał Januszczyk | last post by:
How can I retrieve web application name (or virtual dir name)? (Actually I need physical root directory of web application) I want to open some files in web application root relative...
2
by: Scott M. Lyon | last post by:
I'm having some strange problems with a VB.NET application that I support. The application currently uses SystemInformation.UserName() and SystemInformation.UserDomainName() to determine who is...
2
by: k dog | last post by:
I'm working on an app where I need to do a search for like and similar first name matches. For example a search for John would bring back Jon, John, Jonathan, etc. Working with asp.net and sql...
6
by: Ronchese | last post by:
Hello, is there any way to get the name of the current running procedure? For example: Public Sub Test( ) 'do something '...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.