I mean I have used the connection string below:
scon1.ConnectionString = "Server=(local);Database=Department;Integrated Security=True";
but the compiler couldn't achieve the SQL Server and this error appeared:
please guide me to solve this,Thank you.


Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 12, 2015, 8:17 PM EDT
This error due to the named pipe support is not enabled for your SQL server.To enable named pipes or for workarounds see the link
http://msdn.microsoft.com/en-us/library/ms175496(v=sql.110).aspx
hope this will help
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 12, 2015, 8:09 PM EDT
error caused by protocol setting
you can set
In start menu, go to sql server Configuration tools/ Surface area configuration
Select Surface area configurations and connections
Remote Connections
On the right see named pipes is selected or not. You can go for either named pipes only or named pipes and TCP/IP.Riddhi ValechaRank #794 · 2.9K reputationPosted Apr 12, 2015, 8:23 PM EDT
SQL Server Database and SQL Server Compact 4.0 Local Database ??
Please explain in which situations, which one to use...
Also.... for back-end purpose... Oracle is better or SQL Server ??
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 12, 2015, 9:11 PM EDT
Hope you are enable named piped by following steps.
In start menu, go to sql server xxxx/ Configuration tools/ Surface area configuration
Select Surface area configurations and connections
Remote Connections
On the right see named pipes is selected or not. You can go for either named pipes only or named pipes and TCP/IP.
restart SQL server service
Hope this will help.
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 12, 2015, 9:21 PM EDT
https://msdn.microsoft.com/en-us/library/bb909712%28v=vs.90%29.aspx
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 12, 2015, 9:22 PM EDT
scon1.ConnectionString = "Server=(local);Database=Department;Integrated Security=True";
change
as
scon1.ConnectionString = "Server=127.0.0.1;Database=Department;Integrated
Security=True";
Akhil GargRank #772 · 3K reputationPosted Apr 13, 2015, 11:36 AM EDT
https://technet.microsoft.com/en-us/library/bb896140%28v=sql.110%29.aspx
Sql Compact is very light and mostly used for mobile app.
Sql Server is better for back -end.
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 13, 2015, 7:39 PM EDT
http://blog.sqlauthority.com/2012/09/07/sql-server-fun-post-connecting-same-sql-server-using-different-methods/
http://stackoverflow.com/questions/155733/is-there-a-difference-between-local-and-localhost
Joe WilsonRank #631 · 3.8K reputationPosted Apr 12, 2015, 8:53 PM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Apr 12, 2015, 9:03 PM EDT
How can I solve it?
Joe WilsonRank #631 · 3.8K reputationPosted Apr 13, 2015, 11:23 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Apr 13, 2015, 8:33 PM EDT