application เป็น website หรือ ว่า Window app ครับ
ถ้าเป็น window app ก็สร้าง Connection String ไว้ใน App.config ครับเวลาเรียกใช้ก็ไม่ต้องไปแก้ไขที่โค้ดภายใน โปรแกรม แค่ไปแก้ไขที่ไฟล์ App.config เท่านั้น
แต่ถ้าทำเป็น website ก็เขียนใน web.config ครับ
[With great power comes great responsibility]