G
Guest
I'd like to ask for the correct way, or rather say the more advisable way to
connect to a SQL Server in a Windows application written in .NET 1.1 or 2.0.
When I develop my program, the database is located on my machine. But when it
is published, the database that it use will be on our server. My practice is
to write a class, storing the credentials and information needed to connect
to the database. And create the DataAdapter by coding (instead of dragging
the DataAdapter to the form from Tools) in the class. Which should be the
common practice to be advised?
connect to a SQL Server in a Windows application written in .NET 1.1 or 2.0.
When I develop my program, the database is located on my machine. But when it
is published, the database that it use will be on our server. My practice is
to write a class, storing the credentials and information needed to connect
to the database. And create the DataAdapter by coding (instead of dragging
the DataAdapter to the form from Tools) in the class. Which should be the
common practice to be advised?