Contoh koneksi Ms SQL di web.config

Berikut adalah contoh code koneksi ke database Ms. SQL pada file web.config

<connectionStrings>
<add name="testConnectionString" connectionString="Data Source=mssql10.pasarhosting.info;Initial Catalog=username_namadb;user ID=username_namauser;password=testpassword"
providerName="System.Data.SqlClient" />
</connectionStrings>

Ket :
mssql10.pasarhosting.info  : dapat dilihat di kontrol panel H-Sphere pada menu databases

Semoga membantu ;)

  • 9 pengunjung menganggap bermanfaat
Was this answer helpful?

Artikel terkait

Restore Ms. Sql

Untuk me-restore database local anda ke hosting, silahkan gunakan link berikut...

Path Document Root Server Windows

Berikut Path Document untuk server windows H-Sphere :D:\hshome\ftpusername\domainname