Results 1 to 5 of 5

Thread: (VS 2005) SQL Compact Connection

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Location
    London United Kingdom
    Posts
    334

    Post (VS 2005) SQL Compact Connection

    I would be most grateful if anybody could help with sql server 2005 compact edition connection string and also when I use imports system.data.sqlserverce I get errors. I am new to mobile developing so I need help badly. Below is what I am trying to do but to no avail.
    Code:
    Imports System.Data
    Imports System.Data.sqlServerCe
    
    Public Class ShiftManagerDB
    
        Public Shared Function GetConnected() As SqlServerCe       
     Return New SqlServerCe(GetConnectionString)
        End Function
    
        Public Shared Function GetConnectionString() As String
            GetConnectionString = "Data source=my documents\ShiftManagerPro.sdf;persist security info=False;"
        End Function
    
    End Class
    The SqlServerCe is always underline as error.
    I am using this class in a windows app that I am coding for mobile.
    Last edited by wiadus; May 25th, 2007 at 07:57 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width