Forum Replies Created

Viewing 15 posts - 5,206 through 5,220 (of 6,486 total)

  • RE: Trouble with A Group By Clause -SQL 2000 Only

    This seems to get past the parser - care to give it a whirl?

    SELECT TOP 100 PERCENT

    dbo.CheckingAccountTransaction.CheckingAccountTransactionId,

    dbo.CheckingAccountTransaction.CheckingAccountId,

    dbo.CheckingAccountTransaction.TransactionDate,

    dbo.CheckingAccountTransaction.CheckNumber,

    dbo.CheckingAccountTransaction.TransactionStatus,

    dbo.CheckingAccountTransaction.ReviewDate,

    dbo.CheckingAccountTransaction.ReviewStatus,

    dbo.CheckingAccountTransaction.TransactionDebit,

    dbo.CheckingAccountTransaction.TransactionCredit,

    dbo.CheckingAccountTransaction.TransactionDescription,

    (SELECT

    COALESCE(dbo.CheckingAccount.PrevCheckingAccountBalance, 0) +...

  • RE: The bane of Sql 2005 Express

    If it's installed - there should be a service (which the default installed will set to manual startup). Try setting the service to auto startup and start the service,...

  • RE: First() in MS Access not working for SQL database

    Try using the ROW_NUMBER() options. This uses a CTE

    WITH CT (taskID,subtaskID,sequencenumber, RN) as

    ( select ct.taskTaskID as TaskID,

    subTaskID,

    ...

  • RE: dynamic crosstab query

    Try this -

    Instead of the EXECUTE - put in PRINT @sql. It will output the SQL code it generates (meaning - the query it's trying to execute....

  • RE: The SQL * Wildcard

    GilaMonster (12/27/2007)


    Other than protecting against future changes, I can't think of a good reason.

    Possibly SELECT * requires an extra lookup to the system tables to get the column names. Kinda...

  • RE: Need help replacing a cursor with set-based code (if possible!)

    Wayne - he's talking about having the ORDER BY in the select within the function. Otherwise - you have no guarantees that it will concatenate the lines in the...

  • RE: Using 'OR' drastically increases execution time of query?

    Have you made sure you don't have parameter sniffing going on?

    It sounds like it's making assumptions on how big the recordset will be during the execution plan which then are...

  • RE: Can connect using IP address, port but not with alias set up w/ same info

    You're creating the alias on each of the client machines, right?

    That's how it's supposed to work. You create aliases (pointing to specific remote names and ports) on the client,...

  • RE: Common Properties design

    It doesn't keep cascading, since cascades flow from parent to child. Since FacilityAddress is a "child" to BOTH Address and to Facility, it's not going to keep cascading, since it's...

  • RE: Using 'OR' drastically increases execution time of query?

    You might care to try adding the WITH RECOMPILE option to the SP. It sounds like the cached execution plan doesn't work so well in that case, so forcing...

  • RE: Trouble with A Group By Clause -SQL 2000 Only

    Also if you could - post code inside of a code block, so that if formats a little. That's awfully hard to read.

    (click on the IFCODE option in the...

  • RE: dynamic crosstab query

    Unless I'm mis-reading it - there's a [ missing on this line:

    ) p PIVOT ( SUM(quantity) FOR partname IN ( '+

    should be

    ...

  • RE: Using 'OR' drastically increases execution time of query?

    you realize that you're using the Variable name (not the column name) in the OR, right? meaning - if the variable is the empty string - it should return...

  • RE: The bane of Sql 2005 Express

    Go to the command prompt in the SQL Server setup directory and run

    Setup /SKUUPGRADE=1

    Should prompt you to upgrade every component (including the database engine). Now - it won't change...

  • RE: Career Advice...what is next after SR SQL DBA ?

    TheSQLGuru (1/16/2008)


    Independent consulting can be the best thing in the world - or it can be a total nightmare. You could make $200K one year without breaking a sweat...

Viewing 15 posts - 5,206 through 5,220 (of 6,486 total)