Forum Replies Created

Viewing 15 posts - 676 through 690 (of 2,469 total)

  • RE: IF EXISTS QUESTION PLEASE

    Here's a demo using Northwind...

    CREATE PROCEDURE DemoForErik
    @CategoryID Int = 100,  -- default values
    @CategoryName VarChar(50) = 'Erik Little'
    AS
    
    IF EXISTS(SELECT * FROM Northwind.dbo.Categories...
  • RE: Need SQL to render FIRST day of the year

    Since everything else in the results you want is a constant but for the year, why not just good old concatenation...?!?!

    select 'Jan 1, '...

  • RE: IF EXISTS QUESTION PLEASE

    Still not sure if I've understood correctly, but if I have...why don't you just set defaults for your orderID, shipAddress etc...check @@rowcount - if equal to 0, then send select...

  • RE: Non-breaking space

    I could swear I've seen an (almost) identical post to this one but can't seem to find it now...my search however threw up the following 2 links that may help...

    btw...why're...

  • RE: IF EXISTS QUESTION PLEASE

    Erik - what's your question..?!?!

  • RE: How to get the sql-text from a view/trigger

    Miguel - it's not at all clear (at least to me) what exactly you hope to accomplish..

    It seems that you want to dynamically create...

  • RE: Compare and Script 2 Databases

    Adrian - have you thought of converting this to an article (or two) & sending it to Steve - I'm sure a lot of us would be interested in something...

  • RE: Why Steve Jones'''' Editorials Suck

    I'm (sorta) repeating what I said in the other (Walmart) post...nobody's being held hostage - no one's holding guns to our heads - we're all free to browse and read...

  • RE: Size of site collections...

    Arun - I don't understand what "site collection" means...if you're talking about a list of databases and their sizes, you could do exec sp_databases to get your results..else someone who...

  • RE: Take Care of Your Own

    This is in response - not to Steve's post - but to all those who cannot figure out why this topic featured in "Editorials" at all...

    Other than "Anything that is...

  • RE: How to get the sql-text from a view/trigger

    Miguel - you could also do something like this w/out a cursor ...

    Northwind database...
    
    declare @strViewText varchar(8000)
    select @strViewText = text from syscomments
    where id = object_id('dbo.Invoices')
    print @strViewText
    
  • RE: Replacing case sensitive letters on case insensitive server

    Or you could use "Upper" & "Lower"...something like this...

    SELECT REPLACE(UPPER('a'), 'A', LOWER('A')) AS UpperTOLower
    
    SELECT REPLACE(LOWER('A'), 'a', UPPER('A')) AS LowerTOUpper
    UpperTOLower          ...
  • RE: A nice way to start the week

    Mike Metcalf/Doubting Thomas.....Beat me now or forever hold your peace....I'm now #2 on the list....& just to silence you I started all over again as "sushila"...Phew - exhausting work this...

  • RE: A nice way to start the week

    'kay Mike - think I'll quit while ahead - I made it to #8 on the list....YAAAAAAAAY

  • RE: A nice way to start the week

    yeah, yeah - it's all very well to say bounce him off the steeple and the dish but HOW...?!?!?! - Santa's either been scraping his butt off in a straight...

Viewing 15 posts - 676 through 690 (of 2,469 total)