what is wrong with connection string

Posted by Hakan on Stack Overflow See other posts from Stack Overflow or by Hakan
Published on 2010-06-06T14:06:46Z Indexed on 2010/06/06 14:12 UTC
Read the original article Hit count: 266

Filed under:
|

Can any one help me with this connection string. I can't manage how to fix.

Dim constring As String
        Dim con As SqlCeConnection
        Dim cmd As SqlCeCommand
        constring = "(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + \\database.sdf;Password=pswrd;File Mode=shared read"
        con = New SqlCeConnection()
        con.Open()

Thanks

© Stack Overflow or respective owner

Related posts about sql

Related posts about vb.net