Forum Replies Created

Viewing 15 posts - 1 through 15 (of 38 total)

  • RE: Insert without using a cursor

    Thank you John, that looks very promising.

    Steve

  • RE: Insert without using a cursor

    Not used table variables before, but they look good to me!

    DECLARE @item TABLE (

    itm_serial int NOT NULL IDENTITY(5000,1),

    itm_item varchar(43) NOT NULL,

    itm_desc varchar(100) NOT NULL)

    INSERT INTO @item

    SELECT itm_item, itm_desc

    FROM (SELECT itm_item,...

  • RE: Insert without using a cursor

    Something like that, but for SQL 2000 🙂

    CREATE TABLE #testitem (

    itm_item varchar(43) NOT NULL,

    itm_desc varchar(100) NOT NULL,

    wsd_quantity int NOT NULL)

    INSERT INTO #testitem

    SELECT 'CHCWPSU10DMX','Chroma-Q Color Web Power Supply Unit For 160...

  • RE: Is linked server up?

    Maybe I am doing this wrong, but here is my test:

    DECLARE @serverup int

    SELECT @serverup = (SELECT TOP 1 1 FROM ACET.master.dbo.sysdatabases)

    IF @@ERROR <> 0 SELECT @serverup = 0

    IF @serverup =...

  • RE: Capitalize the first letter of a sentence

    I have been using a similar script on a website I manage, but it needs an overhaul, maybe this is something you could bare in my mind for your script.

    The...

  • RE: Trust

    GA Programmer (2/10/2009)


    Wow.

    In your editorial, you stated " but as I reread the second paragraph it struck me that this person is upset with the apparent decline of western...

  • RE: Trust

    Greed is what I blame it on. If there weren't greedy people wanting to get something for nothing then we wouldn't have people/companies being sued (sp?) over the smallest incidents....

  • RE: List of current distinct records

    I think I have it:

    SELECT U.pbu_manid, dbo.tblManufacturer.web_manufacturer, U.pbu_div, U.pbu_url

    FROM dbo.tblPricebookUpdates U INNER JOIN

    ...

  • RE: Insert into linked table

    Hi Seth,

    That is making sense now, thank you for explaining it.

    Now I just need to get SSMS to create insert data sql for to me to post sample data...

  • RE: Insert into linked table

    Seth, thank you, I did think you were nuts to begin with but I saw your error and was about to correct it. Due to different collations I added the...

  • RE: Help writing function to get decimal from string

    Chris Morris (11/18/2008)


    Dooza (11/18/2008)


    We have a Hob Goblin too, its where I usually end up at the end of the night as its always open late and doesn't attract your...

  • RE: Help writing function to get decimal from string

    We have a Hob Goblin too, its where I usually end up at the end of the night as its always open late and doesn't attract your usual townies. I...

  • RE: Help writing function to get decimal from string

    Which pub in Reading? I visit every now and then, as I only live in High Wycombe.

  • RE: Help writing function to get decimal from string

    Its nice seeing a post turn off-topic without being shut down immediately.

  • RE: Help writing function to get decimal from string

    Jeff Moden (11/18/2008)


    As a side bar, I just can't imagine someone doing that to a whole server. I can understand building some columns in a table as being case...

Viewing 15 posts - 1 through 15 (of 38 total)