I have been able to build my windows form application that access databases in SQL Server. All parts of the application are able to access the server apart from the part whe
it's been a year since you've asked this question.. but i just want to give the solution for this question...
if you using VS2010, go to your Project Properties, go to Compile, Advanced Compile Option, then set your target CPU to x86 or x64... cannot be both... choose one...