Forum Replies Created

Viewing 15 posts - 271 through 285 (of 363 total)

  • RE: Question of the Day for 05 Mar 2004

    [font="Verdana"]

    Both 1 and 2 are correct in MHO.

    I should of went with my instinct, and chose the 1st option, but I rethought it too much I guess.

    Anyone else agree...

    MH-09-AM-8694

  • RE: Deferrable foreign key?

    [font="Verdana"]Can you tell us, why you need to check the values in first(Parent) table? What exactly you are trying to do?

    While records get inserted into second (Child) table, it...

    MH-09-AM-8694

  • RE: Connection to sql server not getting established

    [font="Verdana"]

    For more information, refer...

    http://www.connectionstrings.com/?carrier=sqlserver

    Mahesh

    [/font]

    MH-09-AM-8694

  • RE: Internal Sql server Error

    [font="Verdana"]

    Msg 8624, Level 16, State 1, Procedure SIR_spLoadUtilizationDailyHours, Line 459

    Internal SQL Server error.

    Post some code from SProc so that we can dig around.

    Mahesh

    [/font]

    MH-09-AM-8694

  • RE: Changing Rows to Columns

    [font="Verdana"]

    Declare @strSQL VarChar(Max)

    declare @count int

    set @count = 0

    Select @count = @count + 1, @strSQL = (Case When @strSQL Is Null Then '''' + DateValue + ''' as DateName1' Else @strSQL...

    MH-09-AM-8694

  • RE: temp table not dropped

    [font="Verdana"]

    The same way you drop table. i.e. Drop Table {Temp Table}

    You must have forgotten to drop then. Make a habit tp Drop such table after their use. Also check whether...

    MH-09-AM-8694

  • RE: Records Accessing Problem

    [font="Verdana"]I guess, you must be trying to fetch the record before commiting it. Do you have explicit transaction used in your back end code? If so, commit the record after...

    MH-09-AM-8694

  • RE: Records Accessing Problem

    fn_NewId = IIf(IsNull(rsmaxId(0).field), 1, (rsmaxId(0).field + 1))

    Try above code and confirm.

    By the way, have you tried my previous post? Also have you tried to debug the routine? If...

    MH-09-AM-8694

  • RE: Which dll is used for parsing query in sql server?

    [font="Verdana"]

    Andras Belokosztolszki (4/21/2008)


    vipul (4/19/2008)


    I wnat to create a small application like querry anlyzer in which i want to need parse the query. so any one know please tell me wich...

    MH-09-AM-8694

  • RE: Issue with Datetime and precision

    [font="Verdana"]

    Select Convert(VarChar, Getdate(), 109) As Current_Date

    Mahesh

    [/font]

    MH-09-AM-8694

  • RE: Which dll is used for parsing query in sql server?

    [font="Verdana"]Vipul, as per my knowledge we can not directly use such DLLs. Even I don't know how SQL Server parses the query and SQL Server has such DLL as well....

    MH-09-AM-8694

  • RE: Records Accessing Problem

    [font="Verdana"]

    Means you are generating next Id, BoardNo. by the way, why are you passing Tablename as a parameter?

    Try this ...

    Select Max({Field_1}) From {Table}

    Mahesh

    [/font]

    MH-09-AM-8694

  • RE: How to getRecordCount (Like Sr. No.) in a selectCLause Query in Sql Seevr 2000

    [font="Verdana"]

    Ripal Patel (4/21/2008)


    Dear ,All

    City_Master table having Primary key City_ID,

    still how to get Serial No.

    I think you haven't been through the URL given to you. You would have been got idea...

    MH-09-AM-8694

  • RE: Nested Join vs Merge/hash Join

    [font="Verdana"]Query Optimizer choose best suitable execution plan for a query on its own. So generally it is recommended not to use Join hints in a query.

    Mahesh[/font]

    MH-09-AM-8694

  • RE: ProductId Search

    [font="Verdana"]If I am not wrong, do you want something like this ...?

    SELECT ProductId

    ,ProductDescription

    ,Sum(Quantity)

    ,Sum(QuantityOutstanding)

    ,StandardPrice

    FROM Products INNER JOIN dbo.Inventory

    ON dbo.Inventory.Product = dbo.Products.Product

    WHERE QuantityOutstanding >0

    GROUP BYProductId

    ,ProductDescription

    ,StandardPrice

    I think you must not in need...

    MH-09-AM-8694

Viewing 15 posts - 271 through 285 (of 363 total)