Forum Replies Created

Viewing 15 posts - 4,756 through 4,770 (of 5,103 total)

  • RE: A senior moment?

    The First /2.0 is a computed FORMULA for the median so it has to be DECIMAL or FLOAT

    The Second is just a count of RECORDS(ROWS)!! so it can't be a...


    * Noel

  • RE: Another Linked Server Issue - Win 2003 Server

    It looks that we are in synch today


    * Noel

  • RE: A senior moment?

    FROM BOL:

    This is the precedence order for the Microsoft® SQL Server™ 2000 data types:

    • sql_variant (highest)
    • datetime
    • smalldatetime
    • float
    • real
    • decimal
    • money
    • smallmoney
    • bigint
    • int
    • smallint
    • tinyint
    • bit
    • ntext
    • text
    • image
    • timestamp
    • uniqueidentifier
    • nvarchar
    • nchar
    • varchar
    • char
    • varbinary
    • binary (lowest)

    from the Precence list your datatypes "if can be converted...


    * Noel

  • RE: SQL Query How To..?

    Try:

    SELECT T.vruconfirmation,T.jobtype,T.jobid

     FROM ttt T

    JOIN(

     SELECT  jobid, Count(*)as Cnt

     FROM ttt

     GROUP BY jobid) Q ON  Q.jobid = T.JOBID

    WHERE Cnt = 1 OR (Cnt > 1 and vruconfirmation IS NOT NULL)

    ORDER BY T.jobid


    * Noel

  • RE: Import/Export Rollback???

    It Depends  if it is a DTS package that has the USE TRANSACTIONS and COMMIT ON SUCCESFUL PACKAGE COMPLETION  (Package Properties --> Advanced Options) it will...


    * Noel

  • RE: Another Linked Server Issue - Win 2003 Server

    you want to check this


    * Noel

  • RE: Edit or drop a job created under different server name

    Sorry for the Bad news but this is HOW MS want you to fix it


    * Noel

  • RE: Are partitioned views not that smart?

    mssql_rules,

    I think COST is the Key word here. The fact that you have HIGER Query cost does NOT means you have HIGHER IO!! set the STATISTICS IO ON and re-run your...


    * Noel

  • RE: What could be the problem with the following script?

    Because you are trying to query a remote SQL server I would rewrite that code as:

    SELECT a.Cnt

    FROM OPENROWSET('SQLOLEDB','Apollo';'sa';'',

       'SELECT COUNT(*) as Cnt FROM pubs.dbo.titles ORDER BY au_lname, au_fname') AS a

    OR

    Create...


    * Noel

  • RE: Q about using functions in select statements

    If the Update RATE is not TOO high (That means Test, Test and Test)

    I would calculate at Update / Insert Time and save results on a DENORMALIZED Field!

    so when you...


    * Noel

  • RE: Can some one suggest

    Take a look at Partitioned VIEWS on BOL

     


    * Noel

  • RE: Question of the Day for 16 Feb 2004

    This is my LAST time anwering questions that have been POORLY/INCORRECTLY Posted!

    FROM BOL:

     

    MOVE 'logical_file_name' TO 'operating_system_file_name'

    Specifies that the given logical_file_name should be...


    * Noel

  • RE: Multiple Parameters in the IN Clause

    why do you have to use IN?

    SELECT *

    FROM TableName

    WHERE Id1 = @ID1 AND ID2 = @ID2


    * Noel

  • RE: Combine two SQL tables as one?

    if you open QA and DRAG & DROP the Colums Folder into the Editor the Field List gets created for you. It doesn't get better than that


    * Noel

  • RE: Combine two SQL tables as one?

    OR

    select column1,column2,3,4,n

    from Survey1

    UNION ALL

    select column1,column2,3,4,n

    from Survey2

    UNION ALL

    select column1,column2,3,4,n

    from Survey3

     


    * Noel

Viewing 15 posts - 4,756 through 4,770 (of 5,103 total)