显示标签为“express”的博文。显示所有博文
显示标签为“express”的博文。显示所有博文

2012年3月27日星期二

Full Text Search Sql Express, Quatation Mark

When I try to search a string including Quatation Mark it fails:

Like: The new Book "Harry Potter" is

it stated that the syntax is incorrect.

by the way I am also using * for indicating any suffix.

What is the correct syntax for searching: "

Itzik

Hi!,

You can not include quotation marks inside your string. In addition, these characters are being ignored at indexing time (ignored by the language wordbreaker you are using by default), so are not considered either in your query. This means that when searching for ' The new Book "Harry Potter" is' , internally gets translated as : 'The new Book Harry Potter is'. So you dont have to worry about this quotation marks in your query.

the query:

CONTAINS(ftColum,"The new Book Harry Potter is")

will return any row having the following text:

The new Book Harry Potter is

or

The new Book "Harry Potter" is

or

The new Book /Harry Potter/ is

or

The new Book #Harry Potter# is

etc... (note that special characters are ignored at indexing and query time...)

In SQL Server FTS, we support prefix (foo*), but not suffix (*foo).

Thanks

|||

Are you sure a bout that

In hebrew there we wrote initials with "

so if for instance I want to wrote the name of the city Beer Sheba I will wrote it in hebrew b"s

?"?

So I need to search those words, and when searching BS as you suggested it is not workin.

again on sql express 2005 edition since on full sql 2000 edition I can execute B"S and I would get the needed results.

Any Idea or any link to an article by microsoft on that subject

Itzik

2012年3月26日星期一

full text search on views in express edition

Hi
Is full text indexing possible on views in SQL server express edition with
advanced services? If Yes then how to do it on a view where I want to do
full text search on five different columns?
Thanks
ontario, canada
I am fairly certain that you can only have one full-text index per table or
*indexed* view. So, if your view is not indexed, you will need to create
your FT index on the underlying table(s).
"db" <db@.discussions.microsoft.com> wrote in message
news:70DFE058-91C8-4D1D-96A7-277113460FB3@.microsoft.com...
> Hi
> Is full text indexing possible on views in SQL server express edition with
> advanced services? If Yes then how to do it on a view where I want to do
> full text search on five different columns?
> Thanks
> --
> ontario, canada
|||I created a full text index on the base table. Will use base table(L.B22) and
not view using syntex:
create fulltext index on L.B22
key index ui_fts22 on B221_fulltextcatalog
with change_tracking AUTO
Now I want to
1. View details about full text index in my database/table.
2. When I created index I created it on one column. I want to use full text
search on multiple columns. Can I add more columns and if yes how.
ontario, canada
"Aaron Bertrand [SQL Server MVP]" wrote:

> I am fairly certain that you can only have one full-text index per table or
> *indexed* view. So, if your view is not indexed, you will need to create
> your FT index on the underlying table(s).
>
>
> "db" <db@.discussions.microsoft.com> wrote in message
> news:70DFE058-91C8-4D1D-96A7-277113460FB3@.microsoft.com...
>
>

full text search on views in express edition

Hi
Is full text indexing possible on views in SQL server express edition with
advanced services? If Yes then how to do it on a view where I want to do
full text search on five different columns?
Thanks
--
ontario, canadaI am fairly certain that you can only have one full-text index per table or
*indexed* view. So, if your view is not indexed, you will need to create
your FT index on the underlying table(s).
"db" <db@.discussions.microsoft.com> wrote in message
news:70DFE058-91C8-4D1D-96A7-277113460FB3@.microsoft.com...
> Hi
> Is full text indexing possible on views in SQL server express edition with
> advanced services? If Yes then how to do it on a view where I want to do
> full text search on five different columns?
> Thanks
> --
> ontario, canada|||I created a full text index on the base table. Will use base table(L.B22) and
not view using syntex:
create fulltext index on L.B22
key index ui_fts22 on B221_fulltextcatalog
with change_tracking AUTO
Now I want to
1. View details about full text index in my database/table.
2. When I created index I created it on one column. I want to use full text
search on multiple columns. Can I add more columns and if yes how.
ontario, canada
"Aaron Bertrand [SQL Server MVP]" wrote:
> I am fairly certain that you can only have one full-text index per table or
> *indexed* view. So, if your view is not indexed, you will need to create
> your FT index on the underlying table(s).
>
>
> "db" <db@.discussions.microsoft.com> wrote in message
> news:70DFE058-91C8-4D1D-96A7-277113460FB3@.microsoft.com...
> >
> > Hi
> >
> > Is full text indexing possible on views in SQL server express edition with
> > advanced services? If Yes then how to do it on a view where I want to do
> > full text search on five different columns?
> >
> > Thanks
> > --
> > ontario, canada
>
>

2012年3月25日星期日

Full Text search in SQL Server 2005 Express?

Newbie questions.

1. Can SQL Server 20005 Express do full text searches?

2. If not, is there a way to use SQL Server 20005 Express to search a database column containing text data type?

Using Visual Basic 2005 Express, I would like to do a simple search with a search textbox and button that will return the entire contents of a field of database text when one or more words in the search text box are in the field of text in the database.

I have been playing in Visual Basic 2005 Express and using SQL queries (SELECT, FROM, WHERE) to output to DataGridView controls by using ID columns as filters in the query, etc. This I can do. But I have not been able to use a word or phrase in the search textbox as a filtered query to output the entire database field of text which contains the search word or phrase in the search textbox.

Thanks for any help in getting me started with this.

SQL express with advanced services offers full text search. Take a look at the FreeText sql statement for full text searches.|||

Thanks Ken.

I will get the Advanced Services version of SQL Express and work on learning to use the full text search feature.

sql

2012年3月22日星期四

Full Text Search for Stand Alone Windows App

I am working on a stand-alone windows application in which I need to provide full text search capability. I was using SQL Express edition and was planning to deploy the database (.mdf) with the application.

Is it possible to enable Full Text search for a database which does not belong to a database server (embedded with the app)? If yes the how can you do it?

If its not possible then what are the alternatives/options of data-storage for a windows app which will allow me to enable Full Text search?

Thanks for your help.

To enable full text search your sever must be installed with this capability.

To enable this capability in the sql server 2005 express edition, you have to download the sql server 2005 express edition advanced. This will install the database server, the sql managment studio and the full text serch.

|||

Thanks for your reply. However I already have the "advanced services" installed but my full text button is still disabled in VS Server Explorer.

If I add the database on a named instance for instance MyBox\SQLExpress then i get an option of enabling the Full Text Search but I dont see any option for a stand-alone database file.

|||

Hi,

I would like to introduce some good video learning resources to you which demonstrates how to set up Full-Text within SQL Server Express.These resources demonstrate how to set up Full-Text search paying particular attention to the nuances of setting it up within SQL Server Express.

http://msdn.microsoft.com/vstudio/express/sql/learning/default.aspx#13

Hope that helps. Thanks.

|||

Thanks a lot for your reply. I found out that full text is not available for "user instances" that is why I am not able to get it to work.

I think I may just have to go with SQL Lite. Does any one know any other database solution which might be better then this? Thanks.

Full text search and SQL Server Express

Hi,
I'm using SQL Server Express for a project that I'm working on which
would really benefit from having full text search abilities.
As I understand it this isn't possible with the current release of SQL
Server Express.
I read on this page from msdn
(http://msdn.microsoft.com/library/de...seoverview.asp)
that support for full text search would be added later in 2006.
Does anyone have any comments on that support? I.e like approximately
when it will be released and if the search will be equivalent to the one
in SQL Server 2005 Standard.
Best regards,
Mats
I have been told my Microsoft contacts that for this question you should
follow up with your Microsoft contacts. Its NDA material.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Mats Lycken" <MatsL@.newsgroups.nospam> wrote in message
news:e5xq9lZ$FHA.436@.TK2MSFTNGP10.phx.gbl...
> Hi,
> I'm using SQL Server Express for a project that I'm working on which would
> really benefit from having full text search abilities.
> As I understand it this isn't possible with the current release of SQL
> Server Express.
> I read on this page from msdn
> (http://msdn.microsoft.com/library/de...seoverview.asp)
> that support for full text search would be added later in 2006.
> Does anyone have any comments on that support? I.e like approximately when
> it will be released and if the search will be equivalent to the one in SQL
> Server 2005 Standard.
> Best regards,
> Mats

full text search : Search orders of single input of "multiple word

Sql server express advanced edition
Hi
I am using following query to select data using full text search in a stored
procedure:
=====================
SET @.keyword = '"*' + LOWER(@.keyword) + '*"'
Select *
from tablename1
where contains (*, @.keyword)
===========================
It returns me rows for keyword "Fish Chips" which have values (Fish and
chips) but when i change my search keyword to "Chips Fish" it does not return
any rows.
Can I modify my query so that It returms me all the rows containing Fish or
chips in any order?
i.e. In the input screen for users they input a combination of words like
"chinese mexican". My query should spit all rows which have chinese and
mexican in any order in one of indexed columns.
For above input (Chinese mexican) I should have output like :
Chinese mexican food
chinese and mexican food
mexican and chinese food
mexican chinese clothing
mexican food indian food and chinese food
If I need to parse input and divide it in multiple words before searching,
If someone has a example on how to do this, will be great.
ontario, canada
In other words, I have requirement where I need to do full text search on
all the
search text. For example, for the search text "fish chips" , I should get
the following records having "fish chips" as well as "chips fish".
ontario, canada
"db" wrote:

> Sql server express advanced edition
> Hi
> I am using following query to select data using full text search in a stored
> procedure:
> =====================
> SET @.keyword = '"*' + LOWER(@.keyword) + '*"'
> Select *
> from tablename1
> where contains (*, @.keyword)
> ===========================
> It returns me rows for keyword "Fish Chips" which have values (Fish and
> chips) but when i change my search keyword to "Chips Fish" it does not return
> any rows.
> Can I modify my query so that It returms me all the rows containing Fish or
> chips in any order?
> i.e. In the input screen for users they input a combination of words like
> "chinese mexican". My query should spit all rows which have chinese and
> mexican in any order in one of indexed columns.
> For above input (Chinese mexican) I should have output like :
> Chinese mexican food
> chinese and mexican food
> mexican and chinese food
> mexican chinese clothing
> mexican food indian food and chinese food
> If I need to parse input and divide it in multiple words before searching,
> If someone has a example on how to do this, will be great.
>
> --
> ontario, canada

Full Text Search & Visual Studio 2005

Hello, I have a database that has Full Text Search it works great under Management Studio Express. I can use the CONTAINS expression no problem.

Now when I try using the same database in Visual Studio 2005 the CONTAINS statement it doesn't return any values and I don't get any error messages.

The way I call my database from my web.config file is as follows:

<add name="MyDB" connectionString="Data Source=.\FULLTEXTSEARCH;Integrated Security=True;AttachDBFilename='D:\My Documents\Visual Studio 2005\WebSites\App_Data\MyDataBase.mdf';User Instance=false" providerName="System.Data.SqlClient"/
Why doesn't Full Text Search work when I use it from my web application and it does work under SQL Server Management Studio Express?

Please help,

Louis

Me again, I do get an error message when I try to run a query in Visual Studio 2005, namely:

Full-Text Search is not installed, or a full-text component cannot be loaded.

But it works just fine in Management Studio Express.

|||

I figured out my on problem. I was running the wrong database, my bad.


2012年3月19日星期一

Full Text indexing using sql server 2005 express edition

Hi everyone,

Can someone help me out in providing guidelines towards how to do full text indexing using sql server 2005 express edition?

Thanks in advance

Regards,

Dave

Do you have the Advanced Edition of SQL Server Express ? Only this one supports the fulltext search capabilites.

Jens K. Suessmeyer.

http://www.sqlserver2005.de

2012年3月11日星期日

full text indexing

is there a way to enable full text indexing on SQL Server 2005 Express?

i know that the advanced edition can do so, but i am wondering if there is a registry hack or something that i can use instead of reinstalling.

any ideas?

thanks

No. SQL Express 2005 is missing several full-text files and a service. There is no quick hack to get it to work. The best way is to save your databases and simply upgrade.|||yes, you needs the SQL Server 2005 Express Edition with Advanced Services from 12.04.2006, it contains the service for the full-text search.

2012年3月9日星期五

Full Text in SQL 2005 vs SQL Express

Does full text work the same in both of these? From what I've read, it
appears SQl Express only searches in text columns...
I have a client who needs to search in a a column which contains imported
Word docs, etc. (varbinary(max)). Can this be done in the Express version or
not?
Thanks,
Tom
Hello Tom,
According to this MSDN article, SQL Express did not support to full-text
query the varbinary(max) column. But the SQL Express with Advanced Services
support.
http://msdn2.microsoft.com/en-us/library/ms143761.aspx
You may try to use that Edition.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
|||Hi ,
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Full Text in SQL 2005 vs SQL Express

Does full text work the same in both of these? From what I've read, it
appears SQl Express only searches in text columns...
I have a client who needs to search in a a column which contains imported
Word docs, etc. (varbinary(max)). Can this be done in the Express version or
not?
Thanks,
TomHello Tom,
According to this MSDN article, SQL Express did not support to full-text
query the varbinary(max) column. But the SQL Express with Advanced Services
support.
http://msdn2.microsoft.com/en-us/library/ms143761.aspx
You may try to use that Edition.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Hi ,
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.

Full Text in SQL 2005 vs SQL Express

Does full text work the same in both of these? From what I've read, it
appears SQl Express only searches in text columns...
I have a client who needs to search in a a column which contains imported
Word docs, etc. (varbinary(max)). Can this be done in the Express version or
not?
Thanks,
TomHello Tom,
According to this MSDN article, SQL Express did not support to full-text
query the varbinary(max) column. But the SQL Express with Advanced Services
support.
http://msdn2.microsoft.com/en-us/library/ms143761.aspx
You may try to use that Edition.
Sincerely,
Wei Lu
Microsoft Online Community Support
========================================
==========
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
==========
This posting is provided "AS IS" with no warranties, and confers no rights.|||Hi ,
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community Support
========================================
==========
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
==========
This posting is provided "AS IS" with no warranties, and confers no rights.

Full Text Commands in SQL Query?

My host does allow me to create full text catalogs. I use SQL Server Management Studio Express, so I'd have to do it "by hand" as opposed to point-clicking menus and going through wizards. Where do I go to find those commands? I've seen them before but I can't remember where to get them. They're the ones that begin with sp_.

I need the commands for:

Creating a full text catalog

Specifying which columns and tables to enable full text searching

Scheduling when to update the catalog (when to repopulate, etc.)

Clearing the catalog to start over again

Any other handy/necessary commands?

Any help will be appreciated. Thank you.

i sent you that info here:http://forums.asp.net/t/1127286.aspx

|||

i sent you that info here:http://forums.asp.net/t/1127286.aspx

|||

That's creating the catalog and enabling table/column for full-text. I got those.

What about for scheduling population?

|||

1. Activate your database for full-text search:
sp_fulltext_database 'enable'
(Warning! An already existing index will be reset to the default settings.)

2. Create the full text index: To continue, a so-called catalog must be created:
sp_fulltext_catalog 'Fulltextcatalog1','create'
('Fulltextcatalog1' is the name of the catalog for this example)

and a virtual index:
sp_fulltext_table 'Employee','create','Fulltextcatalog1','pkID_Field'
(pkID_Field is the name of the Primary Key of table Employee.)

3. Add the fields that you want to be indexed:
(The fields have to be either the type char, varchar, nchar, nvarchar or text.)
sp_fulltext_column 'Employee','lastname','add'
sp_fulltext_column 'Employee','firstname','add'

where 'lastname' and 'firstname' are the field names used in this example.

4. Next you have to activate the index:
sp_fulltext_table 'Employee','activate'

5. After that the index can be generated with the following command:
sp_fulltext_table 'Employee','start_full'

6. Now activate the 'Change Tracking'. Required for this, is a field with the data
type 'timestamp'. Through this, the newly created index will automatically be
updated, as soon as the data in the columns has been changed.

sp_fulltext_table Employee, 'Start_change_tracking'
sp_fulltext_table Employee, 'Start_background_updateindex'

Deleting Full-text Indexing on a table named fulltext1

1. First delete the index:
sp_fulltext_table 'Employee', 'drop'

2. And then the catalog:
sp_fulltext_catalog 'fulltextcatalog1','drop'