sqldataadapter Questions
2
I come from this question here but I have a different case. I need my result in a DataTable and I have 2 potential methods:
public static DataTable SelectDataTable(string query, string ConnectionS...
Eurypterid asked 7/3, 2019 at 10:48
3
Solved
Dim dt As New DataTable
Dim da As New SqlDataAdapter(s, c)
c.Open()
If Not IsNothing(da) Then
da.Fill(dt)
dt.Select("GroupingID = 0")
End If
GridView1.DataSource = dt
GridView1.DataBind()
...
Labana asked 17/6, 2010 at 8:54
3
I'm running into a problem similar to this question here (Display DataType and Size of Column from SQL Server Query Results at Runtime) which has not had a solid solution.
I wonder if anyone has ...
Misbehave asked 24/9, 2013 at 18:32
4
Solved
I've got a short piece of code that originally created an SqlDataAdapter object over and over.
Trying to streamline my calls a little bit, I replaced the SqlDataAdapter with an SqlCommand and move...
Dennard asked 25/3, 2011 at 15:49
4
Solved
How can I use Parameters.AddWithValue with an SqlDataAdapter. Below searching codes.
var da = new SqlDataAdapter("SELECT * FROM annotations WHERE annotation LIKE '%"+txtSearch.Text+"%'", _mssqlCon...
Bothy asked 7/11, 2012 at 19:16
1
Solved
When I run my code I get the following exception:
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
Additional information: Execution Timeout Ex...
Capo asked 23/12, 2016 at 10:22
5
Solved
I want to know which one has the better performance for returning a DataTable. Here for SqlDataReader I use DataTable.Load(dr)
Using SqlDataReader:
public static DataTable populateUsingDataReader...
Hydrocarbon asked 21/2, 2013 at 9:51
2
Solved
I'm confused a lot about connected model and disconnected in entity framework .
I was using traditional ADO.net (DataReader for connected model and DataAdapter for disconnected model)
and all I kn...
Anthem asked 1/8, 2015 at 16:29
2
Solved
This question seems to be common and I went through this answer already.
Unfortunately, my page still isn't being paged. Here's what my code looks like in C#:
SqlCommand command = new SqlComman...
Overnice asked 12/4, 2013 at 21:33
2
Solved
Is this the following code healthy? Or I don't need to use the using keyword as the SqlDataAdapter will handle closing the connection?
public static DataSet Fetch(string sp, SqlParameter [] prm)
{...
Plosive asked 11/3, 2013 at 7:45
2
I have a table with primarykey in MS SQL 2005, which has a few hundred thousand records. When I query it in Management studio for a record, it brings very quickly but when i use code below to find ...
Kegler asked 4/1, 2012 at 14:21
1
Solved
I'm working with a DAL object that is written in a layout similar to the following code. I simplified a lot of the code code just to show the setup.
public class UserDatabase : IDisposable
{
priv...
Schoonmaker asked 27/6, 2012 at 23:31
2
everyone I am a student and new to .NET and specially MVC3 development but for one of my project I’ve to work over it and so going through the learning phase
Issue and confusion I am facing is rega...
Treasurer asked 15/10, 2011 at 12:38
3
Solved
Which one would be better in executing an insert statement for ms-sql database:
Sql DataAdapter or SQL Command
Object?
Which of them would be better, while inserting only one row and while in...
Tamp asked 4/7, 2011 at 8:24
1
Solved
I do not clearly understand how to format the SqlDataAdapter for output variables when working with C#
Error Message:
Index (zero based) must be greater than or equal to zero and less than the size...
Domenech asked 3/10, 2010 at 15:38
1
© 2022 - 2024 — McMap. All rights reserved.