Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

publish c# project connected to sql server database

$
0
0
         

Hello, i want ti publish a c# project connected to sql database, i introduced the database into my project, i use the connection string:         SqlConnection cn = new SqlConnection(@"Data Source=CONTA-LAPTOP;Initial Catalog=RaducuIonel;Integrated Security=True");  if right click on the database-> properties iti show me next connection string: Data Source=CONTA-LAPTOP;AttachDbFilename="C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\RaducuIonel.mdf";Initial Catalog=RaducuIonel;Integrated Security=True     ...when i connect to server in sql i use windows autentification. And the last thing: when i publish the project it ask me: application will check for updates from here: http://localhost/RaducuIonel/, or application will not check for updates. I select first option: to check for updates from here: http://localhost/RaducuIonel/ .

to another computer my application cannot connect to database (login error) 

If you have some time, can you tell me what i am doing wrong? 


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>