Click here to Skip to main content
15,897,891 members
Home / Discussions / Database
   

Database

 
AnswerRe: Need Help in SQL Server "Stored Procedure" Pin
Corporal Agarn6-Jun-13 7:06
professionalCorporal Agarn6-Jun-13 7:06 
GeneralRe: Need Help in SQL Server "Stored Procedure" Pin
dr_iton6-Jun-13 10:42
dr_iton6-Jun-13 10:42 
QuestionRe: Need Help in SQL Server "Stored Procedure" Pin
gvprabu12-Jun-13 4:27
gvprabu12-Jun-13 4:27 
QuestionHow to Insert Error_Message() into table and return user defined Message Pin
Robymon5-Jun-13 21:33
Robymon5-Jun-13 21:33 
AnswerRe: How to Insert Error_Message() into table and return user defined Message Pin
Corporal Agarn6-Jun-13 7:09
professionalCorporal Agarn6-Jun-13 7:09 
AnswerRe: How to Insert Error_Message() into table and return user defined Message Pin
gvprabu12-Jun-13 4:35
gvprabu12-Jun-13 4:35 
AnswerRe: How to Insert Error_Message() into table and return user defined Message Pin
prakash.chakrala5-Jul-13 0:48
prakash.chakrala5-Jul-13 0:48 
QuestionBetter TSQL for searching - looking for suggestions Pin
jkirkerx4-Jun-13 8:40
professionaljkirkerx4-Jun-13 8:40 
TSQL is my biggest weakness here. I really don't enjoy writing it but you have to know it to get things done.

I'm looking for some help here, on making a better search system, and I'm not sure which direction to go. I guess at first, I should get the TSQL right, or better at least.

I have a FTS catalog with partNumber, Title, Description, VendorName for the productInfo table.

I wrote this 2 years ago, but it's pretty weak, and doesn't work well.

For instance, if I search part number "06-CR10", it produces nothing, but if I search "CR-10", it produces a result.

I have trouble with 2 words or phrases like "tile spacers" using CONTAIN, but it works fine using FREETEXT.

my question is:

Should I be detecting multiple words, and use different TSQL based on word counts? Or just better TSQL?

I'm just looking for suggestions.

Dim mySelectQuery As String = "SELECT " & _
        "ProductID, Category, SubCategory, ShortDescription, LongDescription, Thumbnail, PartNumber, Price " & _
        "FROM ProductInfo WHERE " & _
        "FREETEXT(ShortDescription, @Query) " & _
        "OR FREETEXT(LongDescription, @Query) " & _
        "OR FREETEXT(ProductHTML, @Query) " & _
        "OR FREETEXT(PartNumber, @Query) " & _
        "ORDER BY RANK() OVER (Order BY PartNumber, ShortDescription, LongDescription) DESC"

AnswerRe: Better TSQL for searching - looking for suggestions Pin
RedDk4-Jun-13 11:18
RedDk4-Jun-13 11:18 
GeneralRe: Better TSQL for searching - looking for suggestions Pin
jkirkerx4-Jun-13 12:17
professionaljkirkerx4-Jun-13 12:17 
GeneralRe: Better TSQL for searching - looking for suggestions Pin
RedDk4-Jun-13 12:26
RedDk4-Jun-13 12:26 
GeneralRe: Better TSQL for searching - looking for suggestions Pin
jkirkerx4-Jun-13 12:58
professionaljkirkerx4-Jun-13 12:58 
QuestionEncode richtextbox1 Pin
cdpsource4-Jun-13 4:11
cdpsource4-Jun-13 4:11 
Questiondebugging a stored procedure Pin
Member 87018133-Jun-13 21:10
Member 87018133-Jun-13 21:10 
AnswerRe: debugging a stored procedure Pin
Eddy Vluggen4-Jun-13 0:31
professionalEddy Vluggen4-Jun-13 0:31 
AnswerRe: debugging a stored procedure Pin
Azarudhin4-Jun-13 3:35
professionalAzarudhin4-Jun-13 3:35 
GeneralRe: debugging a stored procedure Pin
SudhirKankal4-Jun-13 23:52
SudhirKankal4-Jun-13 23:52 
AnswerRe: debugging a stored procedure Pin
coded0075-Jun-13 4:46
professionalcoded0075-Jun-13 4:46 
QuestionConverting over from System.Data.OracleClient to ODP.NETs Oracle.DataAccess.Client Pin
Dale Haessel3-Jun-13 10:35
Dale Haessel3-Jun-13 10:35 
AnswerRe: Converting over from System.Data.OracleClient to ODP.NETs Oracle.DataAccess.Client Pin
Jörgen Andersson3-Jun-13 10:44
professionalJörgen Andersson3-Jun-13 10:44 
GeneralRe: Converting over from System.Data.OracleClient to ODP.NETs Oracle.DataAccess.Client Pin
Dale Haessel3-Jun-13 11:27
Dale Haessel3-Jun-13 11:27 
GeneralRe: Converting over from System.Data.OracleClient to ODP.NETs Oracle.DataAccess.Client Pin
Jörgen Andersson3-Jun-13 22:43
professionalJörgen Andersson3-Jun-13 22:43 
QuestionSSIS: How to import many tables? Pin
biop.codeproject2-Jun-13 20:46
biop.codeproject2-Jun-13 20:46 
AnswerRe: SSIS: How to import many tables? Pin
Mycroft Holmes3-Jun-13 1:00
professionalMycroft Holmes3-Jun-13 1:00 
GeneralRe: SSIS: How to import many tables? Pin
biop.codeproject18-Jun-13 4:21
biop.codeproject18-Jun-13 4:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.