Forum Replies Created

Viewing 15 posts - 391 through 405 (of 3,544 total)

  • RE: Merge multiple .sql files into one single file

    FOR %%f IN (*.sql) DO ....

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: The New DBA is a Developer

    Jeff Moden - Tuesday, January 31, 2017 11:01 PM

    Before the "New DBA is a Developer", they should first develop the skills...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Join Two CSV Files with a Common Column

    Jeff Moden - Wednesday, January 25, 2017 4:38 PM

    As a bit of a sidebar, I also prefer not to have SSIS...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Create SQL FullText statement via VB.Net

    With your data
    Contains(dbcode, '"3*"')  will return all the rows (providing each code you posted is in a separate row)
    Contains(dbcode, '"*3*"') will not return any rows as the * prefix...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Create SQL FullText statement via VB.Net

    I tested your code and it returned your expected results.

    Contains(dbcode, '"*3*"') is the valid FTS format, however you cannot use * as  a prefix as it is used...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: why is this trigger not working ?

    Senchi - Friday, January 20, 2017 5:33 AM

    Thom A - Friday, January 20, 2017 5:16 AM

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Convert hex encoded to text

    DECLARE @value varchar(20) =

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Join tables with criteria

    Kingston Dhasian - Tuesday, January 17, 2017 3:05 AM

    With no DDL and sample data to test, this is what I could come...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: why is this trigger not working ?

    1. The update should be in the trigger there is no need for an additional procedure
    2. The UPDATE statement will update every row in the JOURNAL table not just...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Koen Verbeeck - Thursday, January 12, 2017 8:33 AM

    A more pressing question is: how do we know how many replies this thread has?...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Grant Fritchey (1/11/2017)


    Brandie Tarvin (1/11/2017)


    BLOB EATER (1/11/2017)


    GilaMonster (1/11/2017)


    I really would like to attend Bits this year (hint, hint)

    you have my vote!

    So someone tell me who those "Steve Jones" and "Grant...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Requirements to export data into an .xlsx file

    If you output your data as tab delimited to an .xls (not .xlsx) file

    Excel will be able open the file if you accept the prompts (depending on version of Excel)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Add T&C Page to SSRS report

    Notwithstanding Thom's reply.

    If you can change the data then include page number, output the invoice data with odd page numbers and a single row of null values with even page...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Username increment by 1 if already exists in table

    WITH x (ID,FirstName,LastName,UserName,UserNum) AS (

    SELECT e.ID,e.FirstName,e.LastName,LEFT(e.FirstName,t.N)+e.LastName,

    ROW_NUMBER() OVER (ORDER BY LEN(LEFT(e.FirstName,t.N)+e.LastName) ASC,LEFT(e.FirstName,t.N)+e.LastName ASC,ID ASC)

    FROM #Employee e

    JOIN master.dbo.Tally t ON t.N BETWEEN 1 AND LEN(e.FirstName)

    WHERE NOT EXISTS (SELECT * FROM #TEMP_USER u...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Username increment by 1 if already exists in table

    Eirikur Eiriksson (11/7/2016)


    This fails as it returns duplicates in the generated user names

    Oh well it was close 😛

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 391 through 405 (of 3,544 total)