Forum Replies Created

Viewing 15 posts - 481 through 495 (of 1,109 total)

  • RE: the number of null row(s)

    sqluser (1/23/2008)


    Hi Andras,

    Yes. Thanks you very much for your quick reply. 😛

    I'm glad I could help. A lot of thanks...

  • RE: Reminders

    rodrigo (1/23/2008)


    How to add trigers in sql server 2000 that can call an asp.net page

    The way I understand your post would mean that you are trying to use your database...

  • RE: the number of null row(s)

    Is this what you have in mind?

    SELECT SUM(CASE WHEN SID IS NULL THEN 1

    ...

  • RE: Query problem

    Ahmad Osama (1/23/2008)


    Hi,

    compatibility level is 80.

    thanks,

    Ahmad

    Good that explains it 🙂

    So first step, can you check the following:

    SELECT SERVERPROPERTY('productversion')

    Does this start with 9 or 8? If it is 8, then...

  • RE: Query problem

    Ahmad Osama (1/23/2008)


    Hi,

    It's not working I am getting the same error .

    Msg 170, Level 15, State 1, Line 9

    Line 9: Incorrect syntax near 'PIVOT'.

    Thanks,

    Ahmad

    Hi Ahmad,

    PIVOT statements have been introduced in...

  • RE: IF Exists and a clause questions

    For the first question the answer is that using top 1 is often resulting in a faster execution. (in a simple test case using top 1 resulted in fewer...

  • RE: MySQL question

    Any chance you could include the contents of the imagesBackup.sql file?

    If you execute the contents in interactive mode, does it work?

    Regards,

    Andras

  • RE: getting error "The system cannot find the path specified." using xp_cmdshell

    A simple question: does this folder actually exist on the server on which SQL Server is running? The xp_cmdshell is executed in the security context of the SQL Server service....

  • RE: fn_virtualfilestats

    The reason is that SQL Server 2000 has much stricter rules on what it allows as parameters to table returning functions. So no function results, no variables, .... SQL Server...

  • RE: Changing table/column collation

    Also see http://www.sqlservercentral.com/Forums/Topic443054-5-1.aspx. Same tools though. 😀 (of course I'm biased)

    Regards,

    Andras

  • RE: Query problem

    Hi Ahmad,

    you have not described what is stored in the monthwon column, nor did you give any sample data. So the following will be based on the assumption that monthwon...

  • RE: ISNULL in a CASE statement???

    You could change your case statement like:

    CASE

    WHEN [myRow] = 1 THEN 'True'

    WHEN [myRow] IS NULL THEN 'False'

    ELSE 'FALSE'

    END

    Andras

  • RE: Row Id ????

    tadhg88 (1/21/2008)


    Hi and thanks for ur reply i managed to get this working in Query Analyser but i was hoping to use the code in a

    Function and i am...

  • RE: Row Id ????

    Since you seem to be on SQL Server 2000 you cannot use row_number(). You could create a temporary table for the whole result, and populate it using:

    select identity(int, 1,1) as...

  • RE: dynamic crosstab query

    OK, a first draft (may need some adjustment, but I do not have your data 🙂

    DECLARE @cols NVARCHAR(2000)

    SELECT @cols = STUFF(( SELECT DISTINCT TOP 100 PERCENT

    ...

Viewing 15 posts - 481 through 495 (of 1,109 total)