Forum Replies Created

Viewing 15 posts - 181 through 195 (of 254 total)

  • RE: need help with this report

    Its difficult to do it in one query. You can either use cursors or write a UDF that takes the start time and returns the end time and call it...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Is there a way to simulate VBPropercase function in SQL server functions or procedutes

    check this out : http://vyaskn.tripod.com/code/propercase.txt

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Dev DBA Needed in Houston Immediately! No head hunters pl

    Does the company sponsor visa ?

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: How to Determine Whole Dollar Amount

    you can throw in a where condition :

    where convert(int,col1) = col1

    when you convert to int you lose the decimal part. So if its still equal to the original value then...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: How to build a SP which INSERTS a record and RETURNS the PK-(new())

    >>Or ...

    If you have an identity column in teh table do the insert and then use

    SET guid = @@IDENTITY

    ----------------------

    SCOPE_IDENTITY() is more accurate than @@IDENTITY. Check out books online for more...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: SQL Newbie needs urgent help

    looks like you are doing this totalling inside an RS report. you can do something like :

    =((Sum(Fields!Valuation.Value * 65/100)) * 0.125)

    in your GST field value.

    or even add a new...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Optional Parameters

    I think you can set it in the properties section of the report on the Report Manager. You can also set it at design time from VS.NET.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Stored Procedure call from VB Component timing out

    Try increasing the timeout property in the connection string.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Filtering shaped recordsets

    also post the structure of your tables ( the parent, child) ones..

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Handling DIV ZERO Hell in MS SQL MSDE Query

    at the beginning of the stored proc. and turn it back on at the end.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Don''''t include the time of datetime??

    You can also do something like :
    WHERE

    (CONVERT(VARCHAR(10),DCCntHst.SentDate,120) = CONVERT(VARCHAR(10), @paramdatetime, 120))

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Wine Database

    Sorry to digress again..Yesterday when this post was posted there were no replies all day and suddenly the thread runs into 2 pages over night..??. I think there is hardly...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Inserting a dataset into an sql table

    you can prbly create a connected dataset with a table and do the update all at once and commit the changes using the dataset.acceptchanges() method. check this article from...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: SELECT COUNT(*) or COUNT(1) Performance or Benefits?

    I think Remi is right in that when you use COUNT(*) the optimizer chooses which index to use and returns the count faster as compared to COUNT(1) which need not necessarily be...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Select Query

    then you can generate your own sequential id on the fly.
     
    Here's another sample :
     
    declare @t table ( id int  , fname varchar(20))
     
    insert into...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

Viewing 15 posts - 181 through 195 (of 254 total)