Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
I'm trying to implement a SELECT....WHERE CONTAINS(), I'm testing the query in sql server Management and function really good but when I try to attach database to a ASP.NET in Visual Studio 2010 and throw this error:

 Cannot use full-text search in user instance.



and the same code work well,when i not use attached database mdf file,and directly connect my application with sql server 2008 r2.....

i also install all "sqlserver 2008 r2 full text search" , instance from microsoft site..

so what can i do please help
Posted
Updated 30-Sep-14 19:14pm
v3
Comments
ZurdoDev 30-Sep-14 14:08pm    
Googling the error should give you plenty of results.
Arun kumar Gauttam 30-Sep-14 14:39pm    
but they not provide a proper solution,so i ask ...

1 solution

It's simple really. You cannot use Full Text Search on a database that you're attaching in your SQL connection string.
 
Share this answer
 
Comments
Arun kumar Gauttam 1-Oct-14 1:13am    
so what can i do,if i made a desktop application..
and it is necessary for me that i attached database with my setup....
and full text search is also very impotent in my application
Dave Kreskowiak 1-Oct-14 7:59am    
You add scripts to your installation that run on the server to create your database.

You also have to change the connection string in your application so that you're NOT attaching the database to the server in a user instance.
Arun kumar Gauttam 10-Oct-14 2:52am    
sir,plz give me any link for this..
add scripts in my Appliation installation that run on the server to create my database..
Dave Kreskowiak 10-Oct-14 7:58am    
https://www.google.com/?gws_rd=ssl#q=build+installer+with+database

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900