I’m a beginner user of Microsoft Visual Studio 2008 and I want to ask what would be the initial code to connect a Visual Basic 2008 form to a SQL Server compact 3.5. I want to create an add new account program using the above applications.
Share
Check out connectionstrings.com for the connection string.
Some of my sample code is included below. Extraneous stuff and comments removed for clarity. It’s in C# but there are plenty of tools to convert it to VB. Or you can learn another lession by manually converting it yourself 😉
The GetAllEmployees will return a list of Employees. The list can then be processed / bound as necessary to your controls.