Friday, 15 February 2013

visual studio 2010 - Locate Database in debug -


I'm just adding the database and debugging it stops on this line SqlCeConnection = New SqlCeConnection (application.StartupPath And "albumDB.sdf")

The format of the error 'initialization string is not analogous, for the specification starting from index 0. '

Database is not going uninterrupted during debugging. I am looking for a way to set this when it is an executable for any PC, so I "C: .... ...... "I'm not using the path. Tried to go into "\ resources" without any luck.

In addition to each error, the connection must be reset. The database does not have any password protection.

You will need to add data source = file in front of the file path string

No comments:

Post a Comment