Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
1 answer
101 views

I am a novice programmer. I want to work in my 'Windows 10' with MySQL Community Server 8.4 from a C# program (platform .NET 8.0). I am using the Visual Studio Community 2022. I also use MySQL ...
Ilya Chalov's user avatar
0 votes
1 answer
81 views

I have some sort of undo functionality in my application. I remove a row from the GUI an could undo or commit it through the underlaying DataTable-functions RejectChanges or AcceptChanges. But when I ...
Me3nTaL's user avatar
  • 505
-4 votes
1 answer
197 views

I have a DataTable in C# with a primary key column that is using negative numbers to auto increment. When I update the back end, I cannot figure out how to get the primary key from the database into ...
Mike's user avatar
  • 11
0 votes
0 answers
21 views

In SSIS I'm using an ADO.NET connection and depending on the Target it'll either use "Active Directory Integrated Authentication" or "Active Directory Password Authentication". I'...
Sam Alex's user avatar
  • 121
1 vote
1 answer
81 views

I am writing a method in .NET 8 with C# to execute query and load a list of data tables asynchronously. Here is the code I am using: static async Task Main(string[] args) { var sql = @" ...
phreq's user avatar
  • 13
2 votes
3 answers
297 views

I upgraded a library from .NET 4.7 to .NET 8.0. In doing so, I had to update my System.Data.SqlClient references to Microsoft.Data.SqlClient. I have both projects open, in different VS sessions, side ...
Mike's user avatar
  • 320
0 votes
0 answers
90 views

I am trying to display data from a SQL Server database in a C# datagridview, but only the column headers are displayed and not the data itself. I checked the SQL Server database that I am connecting ...
Ronan Cunningham's user avatar
1 vote
1 answer
154 views

I originally posted this question: how-can-i-create-a-tar-file-in-memory-from-several-varbinarymax-columns-stored which was helpful. But I realized we might need to create large .tar files, with files ...
Filip's user avatar
  • 469
2 votes
1 answer
90 views

I am using Dapper with SQLite. I have a table that is defined like so: CREATE TABLE Example ( id INTEGER NOT NULL, "some-field" TEXT ); I wrote a console application in ...
Ahmad's user avatar
  • 12.8k
0 votes
1 answer
111 views

I am trying to call a stored procedure (that needs an input parameter) through ADO.NET code. The exception I get is as follows: Microsoft.Data.SqlClient.SqlException (0x80131904): Could not find ...
Prabir Choudhury's user avatar
0 votes
0 answers
32 views

Steps to reproduce issue: In Visual Studio, in a new .Net framework app, add a new strongly typed DataSet (xsd). Add a new DataTable. Add a non nullable Guid column, and for the DefaultValue, type in: ...
Moe Sisko's user avatar
  • 12.2k
0 votes
1 answer
28 views

I work on crystal report I face issue how to display two details section with different headers related to same group by licenserecid ? I can display first section related to group licenserecid ...
ahmed salah abd elaziz elbarba's user avatar
0 votes
0 answers
134 views

Sometimes I see those errors in the logs and we are not able to understand which may be the root cause: at Microsoft.Data.SqlClient.SqlInternalConnectionTds.GetFedAuthToken(SqlFedAuthInfo ...
advapi's user avatar
  • 3,967
0 votes
3 answers
110 views

I am using the code shown here, to connect to SQL Server. This is working properly, but for the past 2 days, I am facing an issue where multiple connections (~2000) are getting opened and not getting ...
Vikas's user avatar
  • 344
0 votes
1 answer
54 views

I am writing an app in .NET 8 and using the Northwind database to generate stored-procedures, entity POCO classes, stored-procedure wrappers, controllers, etc. Database Relationship Diagram: In order ...
Raheel Khan's user avatar
  • 14.8k
0 votes
0 answers
280 views

Trying to connect to DB2 using the Nuget pkg IBM.Data.DB2.iSeries 7.1.0 by Cristopher Gunn. The program throws an exception "The type initializer for 'IBM.Data.DB2.iSeries.iDB2Trace' threw an ...
mackjazzy's user avatar
0 votes
1 answer
59 views

I have an SQL file that looks like this: DECLARE V_ID_CB VARCHAR2(15) := '{V_ID_CB}'; V_X_CB VARCHAR2(15) := '{V_X_CB}'; BEGIN IF V_ID_CB IS NOT NULL THEN OPEN :result_cursor FOR ...
Akin's user avatar
  • 1
2 votes
1 answer
2k views

I have my C# code upgraded from .NET 6 to .NET 8. This code used to work fine in .NET 6: using (var adapter = new NpgsqlDataAdapter(sql, context.Database.GetDbConnection() as NpgsqlConnection)) { ...
user3097695's user avatar
  • 1,294
1 vote
2 answers
139 views

I have a class similar to this: class AmbientTransaction { public AsyncLocal<IDbTransaction> AmbientTransaction { get; } = new(); public IDbTransaction BeginAndSetAmbientTransaction(...
erikkallen's user avatar
  • 34.6k
0 votes
0 answers
85 views

I have an empty SQL Server CE 4.0 database for a User entity (guid Id, string Name and int Age): CREATE TABLE [Users] ( [Id] uniqueidentifier NOT NULL , [Name] nvarchar(255) NOT NULL , [Age] int NOT ...
bairog's user avatar
  • 3,539
-1 votes
2 answers
497 views

While adding columns to DataTable we can specify which type of data the column will hold. So this will restrict column to hold only valid date time dataTable.Columns.Add("Date", typeof(...
Pawan Nogariya's user avatar
0 votes
1 answer
88 views

I have code that's trying to load data in batch through the Teradata .Net provider. I'm using the TdDataAdapter approach as follows: using (TdDataAdapter adapter = new TdDataAdapter()) { ...
Yndigo Dream's user avatar
0 votes
2 answers
142 views

I was asked for a demonstration of how searching on an indexed column is faster than searching for a string prefix, so I created a quick test but the results were surprising and I can't see why. The ...
Mark Henderson's user avatar
1 vote
1 answer
108 views

We are using EnterpriseLibrary to connect to database. I want run 2 or more SPs on same connection. I want set the context and run multiple SPs in the same session. But when the first SP the the ...
The one's user avatar
  • 73
0 votes
1 answer
125 views

I'm developing in C++ to which I want to add a SQL database and connect it with ADO.NET. I need to add int, string, string, string, string double, int, int to the database. And upon request, this data ...
Kito's user avatar
  • 1

1
2 3 4 5
203