Can anyone please tell me why am I getting a connection reset error when I run the same call, but on a different database? The two tables contain the same data and they are on the same server.
Related
I have a Java jdbc client inserting data to a table in SQL server. At some point SQL server is stopped gracefully. My client receives this exception
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:2392)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:2376)
at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1900)
at com.microsoft.sqlserver.jdbc.TDSReader.readPacket(IOBuffer.java:6674)
at com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(IOBuffer.java:7989)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:901)
at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:796)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7535)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2438)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:208)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:183)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeUpdate(SQLServerStatement.java:721)
However, when the SQL server is started, I can see that this data is actually inserted in my table.
I would like to know
Stop behavior of SQL server. Whether the server can insert data and stop without replying back to the client
Any issue with JDBC driver or client that is not able to correctly handle SQL server stopping.
Is something like roll forward happening after the SQL server is started.
Any help or pointers on how to analyze this scenario would be very much appreciated.
Thanks!
I am using some SSRS reports in some applications that I developed using Visual Studio.
Recently I noticed that my report server url is giving me the following error message.
"The report server cannot decrypt the symmetric key that is used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. (rsReportServerDisabled) Get Online Help
For more information about this error navigate to the report server on the local server machine, or enable remote errors"
I can't go delete the encryption details and try to set the data connections again as many posts suggest because there are a lot of SSRS reports in this server and I don't know the username and passwords to connect to all databases.
Further, I noticed the following.
My SSRS home page displays this error message
Some applications using reports hosted in this report server displays the same message
Other few applications using reports hosted in this report server works as expected without any error messages
Where should I look and what should I do about this? Any help is much appreciated.
Thanks in advance.
I'm able to connect to DB2 via SSMA.Ref: https://msdn.microsoft.com/en-us/library/dn890647(v=sql.110).aspx
However, just after the connection got established, I'm getting the error "Error occurred while collecting data" in SSMA. I referred this
http://www.ibm.com/support/knowledgecenter/SSEPGG_9.5.0/com.ibm.db2.luw.messages.sql.doc/doc/msql00440n.html
Still, getting the same error. I'm new to DB2 and need to migrate data from DB2 to SQL Server Could anyone please help what could be wrong and what steps to be followed (how) to fix this?
I am working on SharePoint 2013. Database is on SqlServer 2008R2. Both SP and DB are on different machines. I am creating a webPart which is associated with usercontrol. I'm writing the logic in cs file of usercontrol, to write data collected from the form into Data table of sql server.
Connection string: Server=myServerAddress;Database=myDataBase;User
Id=myUsername; Password=myPassword;
But it is failing and throwing an error like "Login failed for user".
Please guide.
You may be running into the Double Hop Problem (also see why NTLM fails). To know for sure use ULSViewer to drill into the SharePoint Error details. From the SQL side check the default trace. "default trace gives you the reason for login failure in plain English"
If it is the double hop causing the error, you may want to look into configuring Kerberos or switching to using an External List instead of a web part and using the Secure Store Service with BCS.
I setup the my WCF service on server machine.
The server OS is Windows 2008 with SQL Server 2008 Express.
I am trying to access to my SQL Server (mdf) file to read data using LINQ to SQL.
I see that the DataContext is OK - but when I try to get information that in one of the table I get an exception
Failed to generate a user instance of
SQL Server due to failure in
retrieving the user's local
application data path. Please make
sure the user has a local user profile
on the computer. The connection will
be closed.
I don't know what i need to define or change in the IIS 7.5 that I'm using in the server side.
Thanks for any help.
Update: the connection to the database file is fine - but getting information from table is thru an exception. The connection string is:
Data Source=.;AttachDbFilename=|DataDirectory|\ServiceData.mdf;
Integrated Security=SSPI;User Instance=True
If you already have a server, why don't you just attach the MDF to the SQL Server (Express) running, and then use it like a normal database on your server?
After you do this, use a connection string like:
server=Server\SQLExpress;Database=YourDatabaseName;Integrated Security=SSPI
I never quite liked the AttachDbFileName= and User Instance approach - seems like a (unreliable) hack to me, which really doesn't make sense if you're running on a server machine.
The reason that you are getting this error message is because your code is in the security context of a user that has never logged on to the server. The user therefore does not have a profile and you therefore get an error when the code attempts to write to a non-existant profile.
You could use marc_s's approach or you could run as a user that has a profile.