Forum Replies Created

Viewing 15 posts - 31 through 45 (of 74 total)

  • RE: Stored Proc vs Query

    I removed the parameter from the SP and executed the SP (declare local variable and assign value instead) and it ran fine. I got the results in about 7 minutes....

  • RE: Stored Proc vs Query

    I ran this situation in three different servers. All of them running SQL 2K sp3, Win 2K.

    I believe I am running into some kind of parameter sniffing issue. This SP...

  • RE: Stored Proc vs Query

    Any thoughts! Reply please.

  • RE: 17833 error

    Just bounce SQL Server Agent.

  • RE: Pivot query

    I know the column names in advance.

    I kind of made it working. Here is the query:

    --TEMP TABLE TO HOLD COLUMNS AS ROWS

    CREATE TABLE #SECOND_TABLE

    (REVIEWID VARCHAR(10) NULL,

    FIELD_NAME VARCHAR(20) NULL,

    FIELD_VALUE DATETIME...

  • RE: Design

    If what you are saying is correct, this database cannot be huge. You have 4M users each holding 3KB data which brings to approximately 1.2GB database and add some space...

  • RE: Mutually Exclusive NULL

    Thanks a lot for both replies.

    Actually both replies helped me in different places. Thanks.

  • RE: Jobs Management and Performance- embed TSQL or call Stored Procedure??

    Depends on a variety of factors. First of all, how big is the query. For a big query, maintenance would be much easier if it is a SP than in...

  • RE: SQL Server Backup

    The simplest way is to DTS the table to some other format like text file or excel file depending on the size.

  • RE: calculate backup size

    Typically SQL Server backups are slightly smaller than

    the actual database size - space available.

     

     

  • RE: Change table owner to dbo

    He might have logged in as Andrew at the time he created the tables Or he might have created the tables explicitly with owner name as Andrew.

  • RE: Delete Query

    Thanks Guys especially Nazim and SJC Systems.

    Atlast I found it. The correct query is:

    DELETE Base.dbo.na_log FROM Chg.dbo.na_log a, Base.dbo.na_log b

    WHERE

    a.Update_Type = 1 and

    a.Update_Type = b.Update_type and

    a.na_inst_nbr =...

  • RE: Delete Query

    Thanks Nazim. Thanks for your input.

    The Select statement returns 34 rows. 24 rows with Update_type = 1 and 10 rows with Update_type = 2. These are the exact rows which...

  • RE: Delete Query

    The inner Join produces the same results. It deletes 34 rows. Similarly Right Outer Join produces the same results.

    What i need is to delete only 24 rows (only rows with...

  • RE: Delete Query

    The query works but it will not work for my business logic. I cannot put a.Update_type = b.update_type in the condition.

    quote:


    Thanks...

Viewing 15 posts - 31 through 45 (of 74 total)