Reputation: 41
I have made a WFA. I need it to be able to install in 5 computers, one which will be the database server machine. I want to know how to create the database using SQL Server 2008 that can be used by all 5 machines.
How to create the database, create connection, and how to do relevant cording in WFA?
Please help. I know how to do this in local database, but I have no idea when it comes to networks.
Upvotes: 1
Views: 229
Reputation: 755381
Couple of steps:
.sql
scriptsSet up either SQL Server logins for each user that should connect to SQL Server, or e.g. define a Windows group that has access to SQL Server; give those logins the necessary permissions in your database
Then set the connection string for your application to something like
server=YourServerName;database=YourDatabase;Integrated Security=SSPI;
if you want to use "integrated security" (e.g. user just accesses SQL Server using this Windows credentials), or set it to:
server=YourServerName;database=YourDatabase;User Id=User;Password=password
if you want to use explicit SQL Server logins for each computer/user
make sure the client PC's are connected to the network where the SQL Server machine lives, and make sure no firewall is in the way (or if it's there - it allows TCP and UDP traffic on SQL Server's standard port 1433 to pass through)
Upvotes: 1