system.data Questions
2
I was using the below code to connect to SQL Azure DB that was using Active Directory Integrated Authentication.
private string GenerateConnectionString(string databaseName, string serverName)
{
...
Lawerencelawes asked 6/2, 2017 at 20:39
1
I want to use DataTable class on iOS. I am implementing DataTable class as you see in the code. It works fine on Android and Standalone builds with Unity. I cannot figure it out why iOS is not woki...
Shoup asked 15/6, 2020 at 13:29
4
Solved
I was looking for a smart conversion between .Net System.Type and SqlDbType. What I found it was the following idea:
private static SqlDbType TypeToSqlDbType(Type t)
{
String name = t.Name;
SqlD...
Aslam asked 2/3, 2016 at 10:57
1
Solved
There is DataTable with primary key to store information about files. There happen to be 2 files which differ in names with symbols '4' and '4' (0xff14, a "Fullwidth Digit Four" symbol). The DataTa...
Owe asked 16/5, 2018 at 12:52
2
Solved
I'm rewriting/converting some VB-Code:
Dim dt As New System.Data.DataTable()
Dim dr As System.Data.DataRow = dt.NewRow()
Dim item = dr.Item("myItem")
C#:
System.Data.DataTable dt = new System.D...
Nadda asked 24/10, 2011 at 10:3
2
Solved
My project's codebase has a legacy method that takes a DataRow as a parameter for which I would like to create a unit test method.
How can I manually create a DataRow object to pass to the method?...
Coppins asked 16/5, 2017 at 19:47
1
Solved
In the past when I have been implementing unit test I have struggled to set up 'decent' unit tests for data access layers because they often have a database as an external dependency. In an ideal w...
Tribrach asked 15/8, 2016 at 12:14
2
Solved
I am trying to write a couple of extensions to convert UniDataSets and UniRecords to DataSet and DataRow but I get the following error when I try to compile.
'System.Data.DataRow.DataRow(System....
Wiedmann asked 22/4, 2013 at 19:54
2
Solved
I understood the implicit rollback (that usually happens when exception happens and Dispose is called) is not guaranteed for all providers. However many examples uses:
using (DbTransactio txn = cn...
Wagers asked 25/1, 2013 at 10:12
1
Solved
How is the option CommandType.Tabledirect used unlike CommandType.StoredProcedure or CommandType.Text?
Toney asked 7/1, 2013 at 6:57
3
Solved
I have a reference to System.Data in my windows service project. I keep getting the Exception :
Could not load file or assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77...
Tartu asked 17/5, 2012 at 19:4
8
Solved
I've been running into some problems concerning a SqlTransaction I'm using in my code. During my Googling I see many people using a using statement with a SqlTransaction.
What is the benefit and/o...
Shied asked 14/7, 2009 at 20:29
1
Solved
Is is possible to use a custom .NET data provider without installing it in the GAC?
Can I reference a custom DLL and register it inside my configuration file?
Bernat asked 27/2, 2012 at 15:9
2
Solved
Under the namespace System.Data.SqlClient, we have both SqlDataReader.GetSqlBinary
and SqlDataReader.GetSqlBytes.
Both seems to give "raw data". If so, what's the difference between them?
Manganite asked 21/7, 2011 at 11:20
3
Solved
I'm a low-level algorithm programmer, and databases are not really my thing - so this'll be a n00b question if ever there was one.
I'm running a simple SELECT query through our development team's...
Aware asked 7/7, 2009 at 19:27
1
© 2022 - 2024 — McMap. All rights reserved.