Forum Replies Created

Viewing 15 posts - 3,361 through 3,375 (of 5,590 total)

  • RE: Query to find all special symbols in a column

    So, are the only valid characters to be the characters on the keyboard? These will have an ASCII code between 32 and 126. So:

    declare @test-2 table (Col1 nvarchar(500));

    declare @testdata nvarchar(500);

    set...

  • RE: XML Query for Hiearchy

    Grant Fritchey (9/3/2010)


    After the silly work I had to go through to get this to function, I went ahead and made it into a blog post[/url] if anyone is interested.

    The...

  • RE: Year and Quater

    You might want to check out the common date/time routines link in my signature.

  • RE: Pivot query

    This should get you started.

    Things still left to to:

    1. convert to %, and summarize.

    2. probably want this to be dynamic.

    Please read the Cross-Tabs and Pivot Tables, Part 1 and Part...

  • RE: Comma Seperated Values

    Trybbe (9/3/2010)


    Thanks guys but what if I have two variables

    Just call the DelimitedSplit8K function for each one.

    However, I sense that there is something else going on. Do you need to...

  • RE: Comma Seperated Values

    CirquedeSQLeil (9/2/2010)


    WayneS (9/2/2010)


    Click here for the latest Delimited Split Function.

    Then, it's just:

    SELECT ITEM

    FROM dbo.DelimitedSplit8k(@val, ',')

    Nice resource, Wayne.

    Thanks. I've been using it so much lately, that I've made it...

  • RE: Comma Seperated Values

    anand_vanam (9/2/2010)


    DECLARE @FileName VARCHAR(8000)

    SET @FileName='SSC1, SSC2, SSC3'

    CREATE TABLE #FileNames

    (FileID INT IDENTITY(1,1),

    FileNameList VARCHAR(30)

    )

    SET @FileName=LTRIM(RTRIM(@FileName))

    --SELECT @FileName

    BEGIN

    ...

  • RE: How to select top 3 rows and convert the rows to columns for each group

    declare @test-2 TABLE (customerID char(2), Cat varchar(5), Cnt int);

    -- See how you start off by actually creating a table and then

    -- inserting the data into it? Your doing this...

  • RE: Trim Left and Right

    bpowers (9/2/2010)


    I am trying to link two tables based on the Work Order ID in a report. However, one of the table stores the Work Order type, ID, Sub ID,...

  • RE: transferring or replacing data from excel into sql table

    Glad you got it working... and I'm sorry that I had to disappear (time to drive home to avoid the hurricane).

  • RE: Money type with 5 decimals

    LutzM (9/2/2010)


    WayneS (9/2/2010)


    LutzM (9/2/2010)


    But...

    DECIMAL(19,4) (or NUMERIC(19,4)) and MONEY are not, as I just googled...

    It seems like SQL Server does the rounding different for money and numeric/decimal.

    Good to know....

    Probably has something...

  • RE: Parameterize a query with a set of possible values

    And for what is perhaps the best explanation of the issues this causes, see Gail Shaw's blog[/url]

  • RE: Are the posted questions getting worse?

    Alvin Ramard (9/2/2010)


    Steve Jones - Editor (9/2/2010)


    Alvin Ramard (9/2/2010)


    BTW, we need one more emoticon. We need one for banging head against something.

    Isn't that WayneS's avatar?

    I wouldn't call it an...

  • RE: Money type with 5 decimals

    LutzM (9/2/2010)


    But...

    DECIMAL(19,4) (or NUMERIC(19,4)) and MONEY are not, as I just googled...

    It seems like SQL Server does the rounding different for money and numeric/decimal.

    Good to know....

    Probably has something to do...

  • RE: transferring or replacing data from excel into sql table

    Looks like you just have to verify everything is fine, then you're ready to go!

Viewing 15 posts - 3,361 through 3,375 (of 5,590 total)