Click here to Skip to main content
15,888,320 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Why do we use "Data Source Configuration Wizard" to connect to data source and then again write (inside the application/ program) the code using connection string to connect to data source.
Posted
Comments
AmitGajjar 21-Feb-12 6:16am    
Whats your problem? show us your code and error message if you have.

1 solution

The "Wizard" is mainly responsable for Visual Studio "magic" that goes on behind the scenes.
It also stores the connection in the config file if you want it to.

When you're doing a "manually" connection to the db you do need to specify the conncetion string.

Else the connection is specified in the *.deisgner.cs file along with most of the other magic(datasets and views and...).

I really try to avoid it as much as possible for the simple fact that I like being in control of my code.
Also easier to debug, log... when manually specifiyng the connection.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900