Search Result

Collapse
3 results in 0.0025 seconds.
Keywords
Members
Tags
datareader
  •  

  • Selun
    started a topic Problem with retrieving data using DataReader C# .NET
    in .NET

    Problem with retrieving data using DataReader C# .NET

    Hi all,
    First of all im not sure if this is the correct section to ask this.

    Im using C# .NET

    I m trying to populate a gridview using datareader with the following code
    Code:
    protected void page_load (object sender, System.EventArgs e)
     {
    
            SQLCon.ConnectionString = constr;
            SQLCon.Open();
    
            System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand("select
    ...
    See more | Go to post

  • smartguy05
    started a topic Can't get data from database

    Can't get data from database

    I am trying to get the output from a stored procedure. When I enter a value into the stored procedure directly in SQL server management studio it works fine, but when I do it using my code I get nothing. But if I use cmd.parameters( "@oOCR").va lue then I get the first 5 characters, but the last 5 are all zeros. Here is my current code:
    Code:
    Public Sub GetPlayerCardNumber(ByVal input As String)
            Dim con As SqlConnection
    ...
    See more | Go to post
    Last edited by debasisdas; Aug 26 '10, 06:36 AM. Reason: Formatted using code tags.

  • majidkorai
    started a topic Column does not belong to table
    in .NET

    Column does not belong to table

    Hey

    Guyz I am having problem when i read the data from a datareader into a data table.

    The whole scenario is this that I want to read data from two diffrent databases, the table strcutre is same. You can say that other one is the copy of 1st one. I want to read out the data from one table in one database and merge the results with the one read form the other database.

    What i am doing is reading data from two...
    See more | Go to post
    Last edited by PRR; Jun 26 '09, 11:54 AM. Reason: Please post code in [code] [/code] tags.
Working...