Click here to Skip to main content
15,880,392 members
Home / Discussions / Database
   

Database

 
AnswerRe: Validate Date Time value on Sqlite before insert / update Pin
jschell18-Jun-14 11:23
jschell18-Jun-14 11:23 
AnswerRe: Validate Date Time value on Sqlite before insert / update Pin
PIEBALDconsult20-Jun-14 9:46
mvePIEBALDconsult20-Jun-14 9:46 
QuestionSQL search question Pin
Jassim Rahma16-Jun-14 22:14
Jassim Rahma16-Jun-14 22:14 
AnswerRe: SQL search question Pin
Eddy Vluggen16-Jun-14 22:29
professionalEddy Vluggen16-Jun-14 22:29 
AnswerRe: SQL search question Pin
NitinDhapte16-Jun-14 23:08
NitinDhapte16-Jun-14 23:08 
AnswerRe: SQL search question Pin
Shameel17-Jun-14 0:48
professionalShameel17-Jun-14 0:48 
GeneralRe: SQL search question Pin
Jassim Rahma17-Jun-14 1:35
Jassim Rahma17-Jun-14 1:35 
AnswerRe: SQL search question Pin
Shameel17-Jun-14 5:31
professionalShameel17-Jun-14 5:31 
Yes, and that's what I said. You'll have to build this sql query dynamically on the client by looping through every word in the search text. Something like this (code just out of my mind, not tested).
C#
string BuildQuery(string searchText) {
    string sqlQuery = "SELECT * FROM contacts WHERE ";
    string[] words = searchText.Split(" ".ToCharArray());
    foreach(string word in words) {
        sqlQuery+= string.Format("(contact_name LIKE '%{0}%' OR company_name LIKE '%{0}%' OR service_offered LIKE '%{0}%' ) OR ", word);
    }
    sqlQuery = sqlQuery.SubString(1, sqlQuery.Length-2);
    return sqlQuery;
}

GeneralRe: SQL search question Pin
Eddy Vluggen17-Jun-14 7:41
professionalEddy Vluggen17-Jun-14 7:41 
QuestionHow to Search a Text into a Database objects Pin
Ravindra Bisen16-Jun-14 20:27
Ravindra Bisen16-Jun-14 20:27 
AnswerRe: How to Search a Text into a Database objects Pin
$*Developer - Vaibhav*$16-Jun-14 20:41
$*Developer - Vaibhav*$16-Jun-14 20:41 
GeneralRe: How to Search a Text into a Database objects Pin
Ravindra Bisen16-Jun-14 20:43
Ravindra Bisen16-Jun-14 20:43 
GeneralRe: How to Search a Text into a Database objects Pin
$*Developer - Vaibhav*$16-Jun-14 20:45
$*Developer - Vaibhav*$16-Jun-14 20:45 
AnswerRe: How to Search a Text into a Database objects Pin
Ravindra Bisen16-Jun-14 21:07
Ravindra Bisen16-Jun-14 21:07 
AnswerRe: How to Search a Text into a Database objects Pin
Richard Deeming17-Jun-14 2:09
mveRichard Deeming17-Jun-14 2:09 
QuestionData Warehouse/SSAS Cube/Reporting and date assistance Pin
Member 1088784816-Jun-14 6:02
Member 1088784816-Jun-14 6:02 
AnswerRe: Data Warehouse/SSAS Cube/Reporting and date assistance Pin
Mycroft Holmes16-Jun-14 12:49
professionalMycroft Holmes16-Jun-14 12:49 
GeneralRe: Data Warehouse/SSAS Cube/Reporting and date assistance Pin
Member 1088784816-Jun-14 22:41
Member 1088784816-Jun-14 22:41 
QuestionORM Rant Pin
Tomaž Štih16-Jun-14 0:55
Tomaž Štih16-Jun-14 0:55 
AnswerRe: ORM Rant Pin
Richard MacCutchan16-Jun-14 3:37
mveRichard MacCutchan16-Jun-14 3:37 
GeneralRe: ORM Rant Pin
Tomaž Štih16-Jun-14 3:51
Tomaž Štih16-Jun-14 3:51 
GeneralRe: ORM Rant Pin
Richard MacCutchan16-Jun-14 4:10
mveRichard MacCutchan16-Jun-14 4:10 
GeneralRe: ORM Rant Pin
Jörgen Andersson16-Jun-14 6:58
professionalJörgen Andersson16-Jun-14 6:58 
GeneralRe: ORM Rant Pin
Mycroft Holmes16-Jun-14 12:43
professionalMycroft Holmes16-Jun-14 12:43 
GeneralRe: ORM Rant Pin
Richard MacCutchan16-Jun-14 21:20
mveRichard MacCutchan16-Jun-14 21:20 

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.