Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
<configuration>
<configsections>

<connectionstrings>
<add name="LatTejDB">
connectionString="Data Source=LOCUSC-PC;Initial Catalog=NewData;Integrated Security=True"
providerName="System.Data.SqlClient"/>


<startup><supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0">
Posted
Comments
phil.o 16-Sep-13 4:28am    
Please do not post the same question twice. It will definitely not help you getting a quicker/better answer.
BulletVictim 16-Sep-13 4:32am    
Create a single user on the database and then do not use Integrated security as all the users at the pc's where you want to run the app will need log in credentials for the sql server.
BulletVictim 16-Sep-13 6:59am    
You are looking for a connection string like this one:
connectionstring="Data Source=LOCUSC-PC;Initial Catalog=NewData;Persist Security Info=True;User ID=[database user];Password=[database user password]"/>

1 solution

Try this

SQL
Data Source=IPAddress\\SQLEXPRESS; Network Library=DBMSSOCN; Initial Catalog=Databasename; User ID=userName; Password=password


before that enable TCP/IP in sql server
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900