Top "Sqlclient" questions

Microsoft ADO.

SqlDataReader HasRows=True but no data

I am connecting to an SQL Server 2012 database to query for a single value based on an ID. (It may …

c# sql-server sqlclient
Report Viewer - Request for the permission of type SqlClientPermission failed

I am using the ReportViewer control from Visual Studio 2008 in Local Mode with objects as the data source. My classes …

c# winforms visual-studio-2008 reporting-services sqlclient
DB connection fails (System.Data.Sqlclient.SqlException)

I am programming a Weatherstation which gets the data from an API. This works fine, but I want to store …

c# sql-server ado.net system.data.sqlite sqlclient
System.IO.FileNotFoundException with SqlClient

After fixing my problem as mentioned here I am getting the below exception System.IO.FileNotFoundException: 'Could not load file …

c# .net sqlclient
How can I repair .NET Framework 4.0 on Windows 8?

While trying debug my real problem, I'm trying to repair the .NET framework, because it looks like something in System.…

c# .net windows windows-8 sqlclient
How to DataSet.Fill with DateTime values defaulting to DateTimeKind.Utc?

I have an application which would read data from SQL and send it via WCF to a client app, in …

.net ado.net sqlclient
System.InvalidCastException: Failed to convert parameter value from a XElement to a String

Note: I was unable to find this exact question in a search. I found a somewhat similar question here on …

c# sql-server sql-server-2005 ado.net sqlclient
How to correctly setup the connection string to availability group for legacy app

Imagine you have the following scenario: A .net framework 2.0 legacy client app. An SQL Server 2016 Always On Availability Group. How …

c# sql-server legacy sqlclient availability-group
System.Data.IDbCommand and asynchronous execution?

System.Data.SqlClient.SqlCommand has methods BeginExecuteNonQuery BeginExecuteReader BeginExecuteXmlReader and EndExecuteNonQuery EndExecuteReader EndExecuteXmlReader for asynchronous execution. System.Data.IDbCommand only …

c# sql interface asynchronous sqlclient
C# and SQL Server connection

I can't seem to connect to my local database. Everytime I run it, it gives me a pop up blank …

.net sql-server ado.net connection-string sqlclient