Forum Replies Created

Viewing 15 posts - 53,776 through 53,790 (of 59,065 total)

  • RE: Count/group problem please help!

    And, I'm not so sure about the need for the cross join... but I'm on my way out for the day...

  • RE: Count/group problem please help!

    Oracle is very picky about the reuse of table aliases within a given query... try this...

    SELECTP.patno, P.name, P.docno, P.docname, P.specialization, COALESCE( T.NoOfTreatments, 0 ) AS NoOfTreatments

    FROM(

    SELECTPa.patno, Pa.name, D.docno, D.docname,...

  • RE: Naming Convention of Stored Procedures

    Heh... "A Developer must not guess... a Developer must KNOW"...

    ... especially in a political environment where you are challenging incumbent "knowledge".

    One of the most difficult things you can do is...

  • RE: Random Data

    Try this instead...

    --DROP TABLE dbo.FirstName,dbo.LastName

    --===== Create a couple of test tables

    CREATE TABLE dbo.FirstName

    (

    ...

  • RE: Query tuning

    Thanks, Cali. I appreciate the feedback.

  • RE: Performance, Full Recovery Mode vs Simple

    Just a suggestion...

    If you regularly load large amounts of data using BCP or Bulk Insert, consider making a "staging area" database. Because all data in a staging area should...

  • RE: Bypass transaction log with DELETE

    Ummmm... OK... Guess I don't understand... why are you keeping any rows for a long period of time in a "staging area"... all of that data should be expendable to...

  • RE: How to run tsql query every 15 minutes

    Or... you could kick off the proc and do a WAITFOR DELAY 'hh:mm:ss'.

    Of course, if the server get's taken down or the job ever fails, you need to manually restart...

  • RE: Dynamic Query Problem

    Also - your test has a flaw in it, since you start by trying to cram 4 digits after the decimal point into 2 digits after the dot. So you...

  • RE: Bypass transaction log with DELETE

    Heh... You do DELETEs? In a "staging area"? I'd just mark the rows with a flag of some sort and tell my procs to ignore those rows.

  • RE: Is it possible to join the result set of a stored proc with a table?

    Heh... at that point... I'd be thinking "BEER"! 😀

  • RE: Query tuning

    Even if it's "auto-generated" code, someone someday is going to have to troubleshoot it... take some time out to format it! And, the use of table aliases would clear...

  • RE: Naming Convention of Stored Procedures

    And (missed it), Antares has even better reasons...

  • RE: xp_cmdshell

    Heh... there's just a pot-wad of undocumented features and sprocs in SQL Server... most would warn against using them because if they're undocumented, they could disappear on the next service...

  • RE: Naming Convention of Stored Procedures

    For me, it's because most things that you query are tables... for a view or a function, you might want to use the Hungarian notation to make it obvious that...

Viewing 15 posts - 53,776 through 53,790 (of 59,065 total)