Forum Replies Created

Viewing 15 posts - 316 through 330 (of 3,544 total)

  • RE: Display commands and results to the screen or file using SSMS

    Or use Sqlcmd with [-e echo input] and [-o outputfile] options
    p.s. Don't forget to batch the commands with GO

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

  • RE: Need to use a script data source to pull in 10,000+ characters of data in one Excel column

    What is the format of your destination column, the input from Excel is Unicode, if your output is varchar then you will have truncation issues.

    For a test a...

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

  • RE: Update data with same values

    TheSQLGuru - Tuesday, September 5, 2017 11:21 AM

    Depending on how much data you have this shouldn't be too bad, although as others...

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

  • RE: Are the posted questions getting worse?

    Thom A - Tuesday, September 5, 2017 7:44 AM

    Neil Burton - Tuesday, September 5, 2017 7:38 AM

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

  • RE: How to get Leader Boards (Rank) detail.

    Not sure if the best solution

    WITH cte AS (
     SELECT ROW_NUMBER() OVER (order by Value desc) Sequence_no,
       userid,
       Value,
       DENSE_RANK() over (order by Value desc) as Rank

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

  • RE: Creating View with More Records than original table

    Using a Tally table of integers

    SET DATEFORMAT DMY;
    WITH cte (CertNo,LodgeDate,MatDate,Term,Amount) AS (
       SELECT CertNo,LodgeDate,MatDate,Term,Amount
       FROM (VALUES (1,CAST('11/02/2017' as date),CAST('11/02/2018' as date),365,5000),
           (2,CAST('15/06/2017' as date),CAST('14/09/2017' as date),91,6500),

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

  • RE: Potential presentation idea: What a cookbook can teach us about programming

    Jeff Moden - Wednesday, August 23, 2017 4:46 PM

    There can only be one kind... good ol' fashion flow charts.  And I...

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

  • RE: Append variable to query

    TOP allows an expression sin SQL 2008

    TOP(

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

  • RE: Importing a Long named Excel Sheet with Spaces

    I hate trying to import Excel into SQL Server, for the reasons already stated, this is yet another area where MS does it so badly.
    ACE really needs an option like...

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

  • RE: Send and save a copy of an email (as .msg)

    Jeff Moden - Tuesday, August 22, 2017 7:44 PM

    If you're interested, let me know and I'll give you a kickstart by posting...

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

  • RE: Audit table

    It may be possible using Multicast, Aggregate and Derived Column transformations

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

  • RE: Need help with "Where" clause

    Looking at your WHERE clause your query must be joining the two tables which would result in the following possible combinations

    New     16     2017-08-01
    New     16     NULL
    Open   ...

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

  • RE: Multiple matrix on one sheet and presenting to user via hyperlink

    Use built in User!UserID to identify the user and filter the data accordingly

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

  • RE: BCP upload from a txt file

    Brandie Tarvin - Tuesday, August 8, 2017 6:14 AM

    This is weird. I'm not seeing the text file anywhere in this thread. I...

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

  • RE: BCP upload from a txt file

    Sergiy - Tuesday, August 8, 2017 5:39 AM

    Check your field terminators.Field 2 in the example above has a terminator "/r" - is...

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

Viewing 15 posts - 316 through 330 (of 3,544 total)