hi,
i'm working on a windows application with database sqlserverCE and my question is how connect to the database without writing where it locates in the connectionstring ( i mean auto connection ). i hope you can help me.
thanks.

>how connect to the database without writing where it locates in the connectionstring

At least once in your program, you have set the path of database. You an do so by adding connection info in a app.config.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.