How to match up similar strings?

Hello all,
I have two tables that have supplier names in them. Some names are similar, but not perfect, so I can't do a name = name command. Here is the code that will help you understand what I'm asking about.
create table abc (supp_cd varchar2(50),
                  supp_nm varchar2(50));
create table xyz (supp_cd varchar2(50),
                  supp_nm varchar2(50));
insert into abc values ('12345', 'KROGER');
insert into abc values ('23456', 'WALMART');
insert into abc values ('34567', 'KMART');
insert into abc values ('45678', 'BEST BUY');
insert into xyz values ('12345', 'KROGER INC');
insert into xyz values ('23456', 'THE WALMART CO');
insert into xyz values ('34567', 'KMART');
insert into xyz values ('45678', 'BST BUY');
select abc.supp_cd as abc_supp_cd, abc.supp_nm as abc_supp_nm, xyz.supp_cd as xyz_supp_cd, xyz.supp_nm as xyz_supp_nm
from abc join xyz on abc.supp_cd = xyz.supp_cd
where abc.supp_nm like xyz.supp_nm;Right now, my code is giving me only:
ABC_SUPP_CD         |ABC_SUPP_NM         |XYZ_SUPP_CD         |XYZ_SUPP_NM         |
34567               |KMART               |34567               |KMART               |When I want:
ABC_SUPP_CD         |ABC_SUPP_NM         |XYZ_SUPP_CD         |XYZ_SUPP_NM         |
12345               |KROGER              |12345               |KROGER INC          |
23456               |WALMART             |23456               |THE WALMART CO      |
34567               |KMART               |34567               |KMART               |
45678               |BEST BUY            |45678               |BST BUY             |I'm not even sure if this is possible, but can someone steer me in the right direction to get similar names that match up?
Thanks ahead of time guys.
PS. I'm running Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

Hi,
For a similar problem, I wrote once a function that returned a number between 0 and 100, reflecting how much 2 strings had in common (100 meant the strings were identical, 0 meant they didn't seem similar at all). Given such a function, you can match rows where the anmes were similar like this:
FROM    abc
JOIN      xyz  ON   abc.supp_cd  = xyz.supp_cd
          AND  nm_similiar (abc.supp_nm, xyz.supp_nm)  >= 70The nm_similar function would start by standardizing the 2 given names, e.g. converting to all capital letters, removing punctuation, and removing words such as 'THE' that you want to ignore. You may not want to ignore words like 'CO', but you probably do want to standardize them, so that 'COMP', 'CMPNY', 'CPY' and 'COMPANY' all turn into 'CO'. I made a separate function for standardization. I also corrected some common mispellings in the standardizaion function. For example, one company was actually named 'HUSQVARNA', but, more often than not, people added a 'U' right after the 'Q'.
Once you've got the names standardized, you can use functions from utl_match to see how similr they are.

Similar Messages

  • How to match strings

    Hi,
    I have three strings: WER4580U, NID8959T, FTK4797K in one column of my microsoft access database and three numbers:IO-23,DD-98,IL-33 in another column respectively.
    My program is that if i key in WER4580U in my front panel, it will go and match the strings and give out IO-23. 
    I can get upto this stage.
    What i want to do is that
    If the no. of matches of the string is greater than 4, it will match and give out the results.
    If the no. of matches of the string is less than 4, it will go to another strings and match again until the no. of matches become less than 4 and give out the results.
    for eg. the strings save inside my database is WFR4B8?U, and the one i key in is WER4580U, it will still match and give out the result IO-23.
    for eg. the strings save inside my database are WFR4B8?U and NLB895?T and , and the one i key in is NID8959T, it will go and match with WFR4B8?U first and no. of matches is less than 4 so go and match again with NLB895?T and now no. of matches is greater than 4, so give out the result of DD-98.
    I am quite new to labview so i don't know how to write such a simple program.
    If someone can help that will be great .
    Thanks for your help .

    But my matching part is something like this.. my program only works when all the characters are the same..
    I don't know how to add no. of matches part in it and give out the result if the no. of matches is greater than 4.
    Attachments:
    matching.vi ‏14 KB

  • How to match a fingerprint template from database ?

    i now can save a fingerprint template from database using this code..
    Dim fingerprintData As MemoryStream = New MemoryStream
    Template.Serialize(fingerprintData)
    fingerprintData.Position = 0
    Dim br As BinaryReader = New BinaryReader(fingerprintData)
    Dim bytes() As Byte = br.ReadBytes(CType(fingerprintData.Length, Int32))
    Dim cmd As SqlCommand = New SqlCommand("INSERT INTO fininger_table VALUES(@FIRSTNAME, @LASTNAME, @FINGERPRINT)", conn)
    cmd.Parameters.Add("FIRSTNAME", SqlDbType.VarChar).Value = CaptureForm.tboxFname.Text
    cmd.Parameters.Add("LASTNAME", SqlDbType.VarChar).Value = CaptureForm.tboxLname.Text
    cmd.Parameters.Add("FINGERPRINT", SqlDbType.Image).Value = bytes
    conn.Open()
    cmd.ExecuteNonQuery()
    conn.Close()
    and i fetch the data when the form is load..
    conn.Open()
    Dim cmd As New SqlCommand("SELECT * FROM Fininger_table", conn)
    Dim rdr As SqlDataReader = cmd.ExecuteReader()
    Dim MemStream As IO.MemoryStream
    Dim fpBytes As Byte()
    While rdr.Read()
    fpBytes = rdr("FINGERPRINT")
    MemStream = New IO.MemoryStream(fpBytes)
    Dim template As New DPFP.Template(MemStream)
    OnTemplate(template)
    ' template.DeSerialize(MemStream)
    End While
    rdr.Close()
    conn.Close()
    and now i'm stuck..i dont know how to match the fingerprint from the database to verify the user..
    plz help me out..tnx in advance
    btw im using a DIGITAL PERSONA FINGERPRINT READER..with the OTW SDK

    Hello My dear Brother 
                    I am zaid Ahmad khan would like to help you and this is the working code please see this and you will have the solution 
    Imports System.Data.SqlClient
    Imports DPFP
    Public Class Form1
        Private WithEvents verifyControl As DPFP.Gui.Verification.VerificationControl
        Private matcher As DPFP.Verification.Verification
        Private matchResult As DPFP.Verification.Verification.Result
        Private allReaderSerial As String = "00000000-0000-0000-0000-000000000000"
        Public template As DPFP.Template
        Private userTemplateColumn As String = "Template"
        Private userIDColumn As String = "ID"
        Dim bytes As Byte()
        Private Sub CreateDPControl(ByRef control As DPFP.Gui.Verification.VerificationControl)
            Try
                control = New DPFP.Gui.Verification.VerificationControl()
                control.AutoSizeMode = Windows.Forms.AutoSizeMode.GrowAndShrink
                control.Name = "verifyControl"
                control.Location = New System.Drawing.Point(0, 0)
                control.ReaderSerialNumber = "00000000-0000-0000-0000-000000000000"
                control.Visible = True
                control.Enabled = True
                control.BringToFront()
                Me.Controls.Add(control)
            Catch ex As Exception
                MessageBox.Show("exception")
            End Try
        End Sub
        Private Function ConnectString() As String
            Dim connectionString As String
            connectionString = "Server=localhost;database=bs;User ID=sa;Password=123"
            Return connectionString
        End Function
        Private Sub VerifyBiometric_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            matcher = New Verification.Verification()
            matchResult = New Verification.Verification.Result
            CreateDPControl(verifyControl)
        End Sub
        Private Sub verifyControl_OnComplete(ByVal Control As Object, ByVal FeatureSet As DPFP.FeatureSet, ByRef EventHandlerStatus As DPFP.Gui.EventHandlerStatus) Handles verifyControl.OnComplete
            Dim dataSet As DataSet = New DataSet()
            Dim adapter As SqlDataAdapter = New SqlDataAdapter()
            Dim sqlCommand As SqlCommand = New SqlCommand()
            Dim ctr = 0
            Try
                Dim max As Integer = 0
                Dim cn As New SqlConnection(ConnectString())
                cn.Open()
                sqlCommand.CommandText = "Select templateBytes7 from userthumbs where id='1029'"
                sqlCommand.CommandType = CommandType.Text
                sqlCommand.Connection = cn
                Dim lrd As SqlDataReader = sqlCommand.ExecuteReader()
                Dim usr
                While lrd.Read()
                    usr = lrd("templateBytes7")
                End While
                bytes = Nothing
                bytes = usr
                template = New DPFP.Template()
                template.DeSerialize(usr)
                'Perform match
                matcher.Verify(FeatureSet, template, matchResult)
                If matchResult.Verified Then
                    EventHandlerStatus = Gui.EventHandlerStatus.Success
                    MsgBox("Verified!")
                    Me.Hide()
                    MessageBox.Show("Done")
                Else
                    EventHandlerStatus = Gui.EventHandlerStatus.Failure
                    MsgBox("Please Try Again!")
                End If
            Finally
            End Try
        End Sub
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        End Sub
    End Class

  • How to search a special string in txt file and return it's position in txt file?

    How to search a special string in txt file and return it's position in txt file?

    I just posted a solution for a similar question here:  http://forums.ni.com/ni/board/message?board.id=170​&view=by_date_ascending&message.id=362699#M362699
    The top portion can search for the location of a string, while the bottom portion is to locate the position of a character.  Both can search for a character.
    The position of the character within the file is displayed in the indicator(s).
    R

  • Error: Sequence does not match type xs:string

    I am using BDB XML 2.5.16 to store and query my XML  documents in Java. The documents are IMDB xml documents containing actors information
    obtained from INEX website https://inex.mmci.uni-saarland.de/login.jsp.  One of  the document I stored in the database is the following
        <?xml version="1.0" encoding="UTF-8"?>
         <persons>
          <person>
              <name>jason angeles
              </name>
              <filmography>
                 <act>
                    <movie>
                       <title>prison planet 3 the revenge 1998
                        </title>
                      <year>1998
                      </year>
                     <character>evil ninja
                      </character>
                   </movie>
                 </act>
              </filmography>
             </person>
             </persons>
    I want to  search using XQuery  for filmography element whose title element contains ANY of the following keywords ('planet', 'revenge', '1998'). Below is the query I used
                  // declaring function functx:contains-any-of
                String qryRk = "declare namespace functx = 'http://www.functx.com'; " 
                      + "declare function functx:contains-any-of "
                     + "( $arg as xs:string?" + " , "  + " $searchStrings as xs:string* )  as xs:boolean { "
                     + "some $searchString in $searchStrings "
                    +  " satisfies contains($arg,$searchString)} ; ";
                 String myQuery101 = qryRk + "for $entity in collection('simpleExampleData2.dbxml')//filmography "
                      + "where functx:contains-any-of ( $entity/act/movie/title ,  ('planet', 'revenge', '1998'))"
                      + "return $entity";
    When I  execute the query  i  expect to get at least get the following element as mu output
                           Document : person_31000.xml:
                        <filmography>
                               <act>
                                     <movie>
                                     <title>prison planet 3 the revenge 1998
                                    </title>
                                    <year>1998
                                    </year>
                                   <character>evil ninja
                                   </character>
                                  </movie>
                               </act>
                             </filmography>
    However instead of the above element i got the  following Error
                                 Exception in thread "main" com.sleepycat.dbxml.XmlException: Error: Sequence does not match type xs:string? - the sequence contains more than one item [err:XPTY0004], <query>:1:343, errcode =               
                                  QUERY_EVALUATION_ERROR
                                      at com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_query__SWIG_0(Native Method)
                                      at com.sleepycat.dbxml.XmlManager.query(XmlManager.java:544)
                                     at com.sleepycat.dbxml.XmlManager.query(XmlManager.java:320)
                                     at xmlirsystemstruxplus.XQueryEngine.queryEngine(XQueryEngine.java:269)
                                     at xmlirsystemstruxplus.XMLIRSystemStruXplus.main(XMLIRSystemStruXplus.java:109)
                                     Java Result: 1
        Note that i used  contains-any-of() function because the contains () function does not work with  'planet revenge 1998' string may be because the keywords do not appear in the order they appear in the element content.
       Please  can any body help me to find out  (1) why i have the  above error ? and solution  (2)  why  the condition contains  ( $entity/act/movie/title ,  'planet revenge 1998') is not working ? how do i use contains() function w.r.t this
    Thank you in advance
    Message was edited by: RokoA 19/01/2015  by RokoA

    Using the shell dbxml in both 2.5 and 6.0 I created a container and put the document example you gave into it.  Then I executed the following query:
    [code]
    declare namespace functx = 'http://www.functx.com';
    declare function functx:contains-any-of ( $arg as xs:string?, $searchStrings as xs:string* )  as xs:boolean {
    some $searchString in $searchStrings
    satisfies contains($arg,$searchString)
    for $entity in collection('simpleExampleData2.dbxml')//filmography
    where functx:contains-any-of ( $entity/act/movie/title ,  ('planet', 'revenge', '1998'))
    return $entity
    [/code]
    And got the results you expected instead of an error.
    Since you are using the Java API it is possible the problem is in how you configured and executed the query, instead of in the query itself.  If you could post an example program or code section that produces the error, then I can continue you help you with this.
    Lauren Foutz

  • How to match mm and fi value

    HI
    I have finished goods material, where my mm side stock value say rs 50,000 (in mb5b),
    how to compare the FI side values?? in whch tcode?
    i couldn't get the exact values in mb5l ... where to check ?? and how to match mm and fi to have similar value

    Hi,
    The variance due to
    -You have entered postings to the stock account manually.
    -The stock account includes not only stock postings, but also other postings. In this case, you should check the account determination in the Customizing for Valuation and Account Assignment. Make sure that the stock accounts are used solely for the transaction key BSX (stock postings).Check Account Determination
    -The account assignment for the stock accounts (transaction key BSX) was changed .
    Common selection parameters to execute MB5L transaction are
    -Company Code
    -Valuation Area( if your company code have different valaution area that depents on the way you want to get the output)
    -Period ( 3 options you have current period, previous period and previous year)
    -Below that you have different output options to select
    Then execute (F8)
    The list with overview of stock by account with MM value and FI value. The values of MM and FI must be the same.
    For a good practise don not post any adjustment accounts to the stock accounts.
    Regards,
    Krishna Kishore

  • How do I parse this string?

    I have a string of html , which looks like this:
    <head></head><body><p>Stringof<strong><em>tags</em></strong>inhtml</p>
    I have to go ahead a search for the tags and put them into a tree.
    for instance.
    <head> would be the root, then I would go to <p> and get the contents thereof, where <em> and <strong> would be child nodes.
    I am not sure how to look throw a string and search for these things. can anyone suggest a good way of doing this?
    Originally I was thinking of going through it like an array, but apparently that is illegal.
    Thanks.

    You're throwing away the first line of the file.
    This line of code:
                   String line = in.readLine();reads in the first line, but then you ignore what's in line.
    You should change it to just:
                   String line;Similarly, you're throwing away alternate lines of input with this line of code:
                        line = in.readLine();You should just remove that.
    [add] ...you're too fast for me
    Edited by: paulcw on Oct 18, 2008 5:44 PM

  • Matcher vs. String.replaceAll

    I have been experiencing a problem attempting to use an expression such as:
    s = s.replaceAll("PATTERN","REPLACEMENT");
    to replace certain regular expressions in a document. When using the Matcher to replace Strings as follows there is no problem, but using the same pattern with String.replaceAll doesn't seem to perform the replacement.
    Pattern pattern = Pattern.compile("PATTERN",Pattern.DOTALL);
    Matcher matcher = pattern.matcher(s);
    s = matcher.replaceAll("REPLACEMENT");
    The only thing I can think of is that the Pattern.DOTALL options allows the match to take succeed, where it wouldn't otherwise. Therefore I was wondering if there an equivalent for the String.replaceAll method perhaps? Any ideas?
    Thanks very much,
    Ross Butler

    I'm having trouble believing that PATTERN and REPLACEMENT are the real string you're using, but it's probably not important, since it sounds like you probably diagnosed the problem yourself.
    According to the Javadocs, replaceAll gives the same result as Pattern.compile(regex).matcher(str).replaceAll(repl), but obviously that wouldn't necessarily be true if you add extra parameters somewhere in there, so I would say that replaceAll is more of a convenience method that you use when you don't need any extra parameters.
    However, if you need to use DOTALL or something else similar, you'll need the longer way using Matcher.
    That shouldn't stop you from writing your own convenience method, though. :)

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • Started a similar string before.  When I select a recipient in Messages on my Macbook Pro the name shows up in red and says the recipient is no longer registered on iMessage.  I know that they are registered.  Is there a problem with Contacts?

    Started a similar string before.  When I select a recipient in Messages on my Macbook Pro the name shows up in red and says the recipient is no longer registered on iMessage.  I know that they are registered.  Is there a problem with Contacts possibly.  The previous help has been appreciated but the problem persists.

    Hi,
    Try iMessaging your own iPhone and see if your account is actually logged in.
    It can appear "enabled" and On line but sometimes it is not.
    Also try sending from your iPhone (number) to your Apple ID and see if it gets to the Mac.
    If it does not use the Sign Out button.
    Then shut down the Mac
    On restart add back the Apple ID to the iMessages account settings.
    I also just checked My wife's iPhone as she popped up red.
    It turned out her iPhone did not have Messages On.
    10:00 pm      Tuesday; January 28, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How to match BSIM with MSEG (match FI entries to MM entries)

    Hello,
    I have to make a custom report calculating opening, closing stock - its value and quantities (with respect to begin and end date) however taking into consideration only certain movement types. I need to neglect those entries from BSIM which have other movement types than the ones specified as a parameter but there is no BWART field in BSIM.
    How can I match FI document entries(BSIM / BSEG) to MM document entries(MSEG) ?
    Thanks.

    Assuming its true ( 1MM doc = 1FI doc ), the question is how to match FI document item with MM document item ?
    is it a rule that entries in fi docs are in the same order as entries in mm doc?
    therefore a formula    (MM_entry * 2) = FI_entry would work but I'm kinda sceptical to assume that
    Edited by: Bartosz Bijak on Jan 18, 2010 1:31 PM

  • How can I send multiple string commands into a VISA write?

    Hi Fellow LabVIEW users
    I am very new to LabVIEW (2.5 months) so please forgive me if my lingo is not up to par.
    How can I send multiple string commands to a VISA write. For example each string command looks like this
    1) 3A00 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0033 (Scenario 1)
    2) 3A01 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0034 (Scenario 2)
    3) 3A01 0000 0000 33FF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0067 (Scenario 3).
    and so on and so forth. And there are a number of scenarios.
    Each String scenario will give a different string output which will be interpreted differently in the front panel.
    Right now I have to manually change the string commands on the front panel to give me the desired output. How can I do this without manually changing the commands i.e. hard coding each scenario into the block diagram?
    Thanks, any feedback will help.
    mhaque

    Please stick to your original post.

  • How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?

    Hi All,
    Hope to you a very happy new year,
    I have two differnt LAP 1300 and 1200 in my network and I need to add theme to the WLC,
    I successed to add one of theme by the option 60 in the DHCP pool at the Core SW,
    So my quetion is below:
    How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?
    Thanks in Advanced,
    Ahmed,

    To add to Scott's post.  Option 60 would be useful if you needed to put certain types of AP on specific controllers.  Otherwise, no real need to use it for the most part.
    Though, I do recall an issue a few years ago that some windows machines had issues getting DHCP if option 43 is being returned.
    Now, on an IOS switch, you can only configure one option 60 per DHCP scope
    HTH,
    Steve
    Please remember to rate useful posts, and mark questions as answered

  • How do I copy the string portion of an enum into the string portion of a cluster?

    I want to do this for the an entire array of clusters.  I'm trying to use a for loop.  Can't figure out how to parse the string portion of the enum into the string portion of the cluster.
    Alternatively, I'd be happy if I could figure out some way to tie the enum to the array of clusters, but I figure that gets problematic.
    DH
    Solved!
    Go to Solution.

    Dark Hollow wrote:
    OK, let's say that the enumerated type has N elements.  I want to initialize an N element array of strings.  How do I reference each string in the enumerated type to get to each string?
    Easy way to do this is to use GetNumericInfo.vi, part of the Variant library, found in vi.lib\utility\VariantDataType\GetNumericInfo.vi.  Wire your enumeration to the Variant input; one of the outputs is an array of the strings in the enumerated type.
    The more complicated way is a for loop, in which you typecast the iterator terminal value to the enumerated type, then use Format Value.  You can get the maximum value of the enumeration by casting 0 to the enumerated type, then decrementing; cast that back to a numeric and add one to get the right value to wire to the N terminal.
    EDIT: just thought I'd add, since RavensFan's reply popped up while I was writing mine - I don't like the Strings[] approach because it doesn't work on RT targets, and I lost a lot of time once due to this trying to figure out why my code wouldn't run properly on an RT system but worked great on my development computer.

  • How to determine the connection string to a SQLite database, in C# code

    Hello. I'm trying to figure out how to specify the connection string to a SQLite database, I would like to access using the following code:
    string connectionString = null;
    SqlConnection connection;
    SqlCommand command;
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "Data Source=C:\\SQLITEDATABASES\\SQLITEDB1.sqlite;Version=3;";
    connection = new SqlConnection(connectionString);
    try
    connection.Open();
    command = new SqlCommand(sql, connection);
    catch
    The value I assigned to the variable connectionString, in the code above, I obtained somewhere from the Internet. It does not work. I'm using Visual Studio 2013, against the file sqlite-netFx451-setup-bundle-x86-2013-1.0.96.0.exe, which
    I installed, and got from
    here.
    My application's App.config file looks as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    </configSections>
    <connectionStrings>
    <add name="DC_Password_Saver.Properties.Settings.DC_Password_SaverConnectionString" connectionString="data source=&quot;C:\Users\patmo_000\Documents\Visual Studio 2013\Projects\DC Password Saver\DC Password Saver\DC Password Saver.db&quot;" providerName="System.Data.SQLite.EF6"/>
    </connectionStrings>
    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
    </startup>
    </configuration>
    I tried to use the value assigned to connectionString in the XML settings above, replacing single backslash characters with double backslash characters, because the Visual Studio editor flagged them as unrecognizable, and wound up with the
    following.
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "data source=&quot;C:\\Users\\patmo_000\\Documents\\Visual Studio 2013\\Projects\\DC Password Saver\\DC Password Saver\\DC Password Saver.db&quot;";
    connection = new SqlConnection(connectionString);
    The above code however does not work either. So again, does anyone know how I can specify in C# code, a connection string to access my SQLite database? Thanks in advance for your reply.

    What does SQLite connection strings has to do with WPF?
    You will find some valid connection strings here:
    https://www.connectionstrings.com/sqlite/
    But you cannot use the SqlConnection class to connect to a SQLite database. You will need to download and add a reference to the System.Data.SQLite library and then use the SQLiteConnection class:
    connection = new System.Data.SQLite.SQLiteConnection(connectionString);
    try
    connection.Open();
    command = new System.Data.SQLite.SQLiteCommand(sql, connection);
    catch
    Please refer to the following article for more information and an example of how to connect and read and write data from an SQLite database using C#:
    http://blog.tigrangasparian.com/2012/02/09/getting-started-with-sqlite-in-c-part-one/.
    There is contains a link where you can download the required assemblies.
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread in an approproate forum if you have a new question.

Maybe you are looking for