c#


C# Sql Connection can not connect to server


I'm trying to connect SQL server in my virtual machine with following connection string: "Server=qqvm;Database=a_test;Integrated Security=False;User Id=sa;Password=<pass>;Connect Timeout=0"
Firstly I had 'Network connection' exception with inner 'Access Denied' exception with empty stack trace. I did some digging and enabled 'Named Pipes' in SQL Configuration Manager.
After that I got this exception:
Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=11281; handshake=1;
However, I'm still able to connect via SQL Management Studio to that server remotely. Any ideas?
Finally in my case specifying IP address instead of qqvm name solved the problem. Still don't know why, though. It worked a week ago.

Related Links

Object reference not set to an instance of an object in Page declaration
KendoGrid not populating but it should be
Unit Test that involves some UI element
MongoDB, trying to import json which has been serialized using TypeNameHandling.Objects
Checkbox state not changed on postback
Disable Android double tap on Xamarin Forms Label
Access generic type of requested service for parameter construction
.NET Core and .NET Framework interaction
How do I set an MSpec test as inconclusive?
Clickonce exe won't run on my Windows 10 PC
Convert a hex string (byte list) to a byte array
Avoid returning type Task<Object> from an async function when using HttpClient
Is there a better way of writing the following Linq-query
Reading registry value crashes
Move camera along 2 axes in WorldSpace
Is possible to use Cortana for in-app voice commands?

Categories

HOME
windows-server-2008
highmaps
azure-database-mysql
where
azure-resource-manager
assign
redhawksdr
singleton
ms-application-insights
mingw
mediarecorder
browser-cache
aggregation-framework
yuv
multipartform-data
kendo-asp.net-mvc
collision-detection
sequence
qt4
ephesoft
sahi
olap
dynamics-crm-2011
guidewire
solidity
yui
nsoperation
versioning
virtuemart
hapijs
indri
autologin
passbook
vala
matlab-gui
connection-pooling
advertising
chartist.js
grunt-contrib-uglify
smart-device
vtd-xml
blockly
epub
rtos
imageprocessor
apache-falcon
powerbi-embedded
gstreamer-1.0
kepserverex
const
instances
nscollectionview
ninja-forms
socketcluster
tapply
test-kitchen
rexx
libzip
encoder
reqif
react.rb
hdpi
lucee
gige-sdk
liferay-ide
multi-targeting
multi-select
disassembly
lightspeed
cedar-bdd
zsh-completion
glade
indoor-positioning-system
dbi
normalisation
weblogic-maven-plugin
archiva
clique
dday
overlapping
angular-promise
producer-consumer
exchange-server-2007
tess4j
clearquest
perfect-scrollbar
google-experiments
dockerpy
conkeror
numerical-recipes
chunks
optimistic-locking
twitter-finagle
debuggervisualizer
banana-pi
sendy
iwork
infor-eam
kernel-density
xtify
pechkin
usersettings
string-length
volatility
configurationsection
invalidoperationexception
junit-rule
wpml
big-endian
derived-class
custom-cursor
filedialog
overlays
javah
excellibrary
pkcs#7
authkit
opengl-to-opengles
ffdshow

Resources

Encrypt Message