User Profile

Collapse

Profile Sidebar

Collapse
NiteshR
NiteshR
Last Activity: Jul 20 '07, 01:17 PM
Joined: Mar 8 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • NiteshR
    started a topic Calling F9 function in Excel
    in .NET

    Calling F9 function in Excel

    Hi,

    Does anyoe know how to call the F9 key function (Calculate Sheet) using C#?

    Thanks.
    See more | Go to post

  • NiteshR
    replied to SQL Display Null Values
    hi,
    i joined the two tables using a right outer join and insert those values into a new table.
    i then joined that table using a right outer join to give me the output i required.

    thanks....
    See more | Go to post

    Leave a comment:


  • NiteshR
    started a topic Passing Parameter Using 'IN'

    Passing Parameter Using 'IN'

    Hi,
    I want to pass a variable to a sql query using 'IN' instead of '='.

    eg.
    WHERE (Name = @param)


    id like to do the same thing using a IN
    e.g.
    WHERE Name in @param, @param2


    What is the correct syntax to do this, and is this even possible.
    Thanks.
    See more | Go to post

  • NiteshR
    replied to DB restore question
    Hi, try 1 of 2 things,

    1.
    On the enterprise manager, make sure you are added as one of the users for that specific db.


    2.
    If you are not the creator/owner of the
    eg.

    SELECT *
    FROM owner_name.tabl e

    thanks....
    See more | Go to post

    Leave a comment:


  • NiteshR
    replied to SQL Display Null Values
    Ok, I understand what you mean by this.
    The only way i think i can overcome this is by inserting a if..else statement within the sql query, maybe by creating a stored procedure.

    Any ideas on this?

    Thanks....
    See more | Go to post

    Leave a comment:


  • NiteshR
    replied to SQL Display Null Values
    Thanks for the help.
    I used the code you sent me, but it still doesn't output all the null values.
    The only output are those which are greater than 0.
    Is there anything else i can use to do this? eg. a if..then statement in sql...
    See more | Go to post

    Leave a comment:


  • NiteshR
    started a topic SQL Display Null Values

    SQL Display Null Values

    Hi,
    I am using C# code to retreive values from a table in sequel.
    This is done using a join between a table containg values and one using dates.
    The problem is that I am unable to retrieve a value for days where there is no value. I would like to return a 'NULL' value or even a ' 0 ' value if no amount is found for that specific date/day.


    SELECT COUNT(*) AS Expr1
    FROM db.sales_month RIGHT...
    See more | Go to post

  • NiteshR
    started a topic DataRow Array
    in .NET

    DataRow Array

    Please Help!
    Hi, iv been struggling to figure this out for some time now.

    Im using visual studio 2005(C#).
    I want to declare an Array (Pre-defined) of datatype 'Datarow'.
    The code gets a value from a table and outputs the value to a cell in MS Excel.

    My code is as follow:
    //
    DataRow a = dt.Rows[0];
    oSheet.Cells[1,1] = a[0].ToString();

    DataRow b = dt.Rows[1];...
    See more | Go to post

  • NiteshR
    started a topic Declare Looping Variable
    in .NET

    Declare Looping Variable

    Hi,

    I want to declare a variable outside a loop.
    The variable then needs to change everytime it runs within the loop.
    example:

    DataRow name;

    //Once in the for loop, the variable name must change to

    name1 then name2, name3, name 4 and so on..

    How do i do this?
    See more | Go to post

  • NiteshR
    started a topic Accessing COUNT(expr) values

    Accessing COUNT(expr) values

    Hi.
    When i write a SELECT statement that returns a table with values, I am able to access the value individually using C#.

    When i write a SELECT statement that uses a COUNT(expr), I am unable to access the values individually even after using a ORDER and GROUP BY.

    Please assist.
    See more | Go to post

  • NiteshR
    started a topic Looping Through SQL Values

    Looping Through SQL Values

    Hi, Please Help.

    I am writing a program that displays retrieves values from a SQL table and displays it. The Table contains a single column with many rows.
    I am able to retrieve the first record, but not the rest.

    I understand that I have to use a looping structure to do this.But I do not how to.

    My SQL code is as follows:


    SELECT COUNT(daily_mon th.card) AS Expr1
    ...
    See more | Go to post

  • NiteshR
    started a topic SQL Loop Using C#
    in .NET

    SQL Loop Using C#

    Hi,
    I am currently writing a program that calls a SQL query within C# and outputs value to cells within excel.
    I am using (C#) visual studio 2005 and sql server 2000.

    The query returns a single column with many values containg +- 30 rows.

    Once this statement is called and output using the below statement:

    [B]string Name = this.Monthly_Na mesTableAdapter .getName().ToSt ring( );
    oSheet.get_Rang e("A1",...
    See more | Go to post

  • NiteshR
    started a topic Looping through SQL Data through C#
    in .NET

    Looping through SQL Data through C#

    Hi,
    I am currently writing a program that calls a SQL query within C# and outputs value to cells within excel.
    I am using (C#) visual studio 2005 and sql server 2000.

    The query returns a single column with many values containg +- 30 rows.

    Once this statement is called and output using the below statement:

    [B]string Name = this.Monthly_Na mesTableAdapter .getName().ToSt ring();
    oSheet.get_Rang e("A1",
    ...
    See more | Go to post

  • NiteshR
    replied to Writing SQL Code in C#
    in .NET
    Hi, this doesnt seem to work.
    when i output the value from the variable 'myq', it shows me the coding text
    as typed....
    See more | Go to post

    Leave a comment:


  • NiteshR
    started a topic Writing SQL Code in C#
    in .NET

    Writing SQL Code in C#

    Hi,
    Will someone please help me with this.
    I am using Visual Studio 2005 (C#).
    I would like to write SQL queries in my code and assign it a variable thereafter.
    Would someone please help me with this urgently.
    Thanx.
    See more | Go to post

  • NiteshR
    started a topic Updating Excel using C#
    in .NET

    Updating Excel using C#

    Hi,
    I am developing an application that is required to update excel spreadsheets which currently take over to update. I need to create an application using C# and it needs to call the function already created in excel. How would I do this?
    Would calling these functions through C# speed up the process or will it take the same time to update?
    Should i rather write statements within C# to do the calculations or should I call the...
    See more | Go to post

  • NiteshR
    replied to Reseting Application
    in .NET
    I figured it out,
    its Application.Res et

    Thanx!...
    See more | Go to post

    Leave a comment:


  • NiteshR
    started a topic Reseting Application
    in .NET

    Reseting Application

    Hi,
    I Need help urgently with this.
    I need to be able to reset my application once i've pressed a button on my form.
    The entire application needs to reset, just as when I press the play button on C#.
    I cant use form hide, show or close.
    Is there any way i can reset my entire application?
    See more | Go to post

  • NiteshR
    started a topic Leaving a line c# 2005
    in .NET

    Leaving a line c# 2005

    Hi,
    How do I leave a line when inputing into a multi-line textbox.

    I would like to add text to the textbox, but on a new line.
    In VB you use '\n' i think.
    Here is my code:

    if(a < 0)
    {
    txtName.Text = "Hello";

    // Want to add a name after the word 'hello', but on a new line
    ...
    See more | Go to post

  • NiteshR
    replied to Setup and Deployment C#
    in .NET
    the app stores data in a table in sql server via user input and retries data from another table using validation based on the input.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...