c# - Sql Server connection string in client machine -
this question has answer here:
- how connect sql server client machine? 2 answers
i new sql server , planing create pos system using c# , sql server.i know how create connection string in macihine
after creating pos system how can implement in client machine? requrement in client machine. how connect sql database project in client machine client use normal pc , not server thank you
so host application , database server on same machine? in case can connect localhost instance of sql server.
there lot of examples can found on connectionstrings.com.
most common server=localhost;database=mydatabase;user id=myusername; password=mypassword; or integrated security (preferred in situation) server=localhost;database=mydatabase;trusted_connection=true;.
if this, might want check out possibility encrypt/secure 'secrets' of configuration file. details on matter can found on these sites example:
Comments
Post a Comment