Advertisement

1 - 10 of 126 containing alltags:("sqldatareader") (0.001 seconds)
I have this code: SqlConnection connection = new SqlConnection(); connection.ConnectionString = Globals.connectionString; connection.Open(); string commandText = "SELECT DISTINCT Count(Aver...
Zones: C#Date Answered: 10/09/2003 Grade: B Views: 0
Ok, once again i'm having problems using my database class that i've created with several functions in it that perform various SQL statements.  The problem i'm having is essentially knowing when an...
Zones: MS Visual BasicDate Answered: 01/14/2005 Grade: B Views: 0
Here is the code that I am using,         Dim sqlcom1 As SqlCommand = New SqlCommand("SELECT * " & _                                         "FROM TABEL1 " & _                                 ...
Zones: MS Visual BasicDate Answered: 05/02/2005 Grade: B Views: 0
2 questions, see >>>>>>>>>> below:  Dim connection As SqlConnection = New SqlConnection("ConnectionString")       Dim command As SqlCommand = New SqlCommand("GetCustomer", connection)       co...
Zones: ASP.Net ProgrammingDate Answered: 06/15/2005 Grade: A Views: 0
Hi,  I have a COM+ code where I have a function whihc returns a SqlDataReader object as a resultm but when I try to call it in my client, this one cannot recognize my object it tells me 'cannot ...
Zones: .NETDate Answered: 06/28/2005 Grade: A Views: 0
Hi experts, I have module responsible for reports generation and distribution Reports could be in different formats: Excel, PDF, CSV,HTML etc. Format is defined in database For each format I ...
Zones: MS Visual BasicDate Answered: 09/03/2005 Grade: A Views: 5
Hi, I am using the SQLDataReader and i use it to get ids from the database. strSql = "SELECT * From Prog WHERE ProgID = '" + strProgID + "'"; SqlConnection scallprogram = new SqlConnection...
Zones: C#Date Answered: 09/28/2005 Grade: A Views: 0
The following code loops only through the first part. It needs to make a decision based on whether or not data is present at  if (dr.HasRows) . I'm certain there in not any data yet the ELSE will n...
Zones: C#Date Answered: 02/11/2006 Grade: C Views: 0
Is this the correct way to use a sqlDataReader?  Also see specific questions marked by <---------- dim c1 as New sqlConnection dim cm1 as New sqlCommand dim rdr1 as sqlDataReader dim d as dou...
Zones: MS Visual BasicDate Answered: 02/25/2006 Grade: A Views: 0
I need to connect to a sql server through an asp.net page.  I am getting Object reference not set to an instance of an object on line objRdr = objCmd.ExecuteReader().  Please can you tell me what I...
Zones: ASP.Net ProgrammingDate Answered: 03/22/2006 Grade: A Views: 0