Forum Replies Created

Viewing 15 posts - 8,011 through 8,025 (of 13,876 total)

  • RE: Concatenate Random Date + Random Time = Error!

    Here's one way:

    select DateCols.*, theDatetime = cast(concat(cast(DateCols.theDate as char(10)), ' ', cast(DateCols.theTime as char(12))) as datetime)

    from (select cast(cast(abs(checksum(newid())) % (780) + (33968) as datetime) as date)...


  • RE: The package failed to load due to error 0xC0010014 "One or more error occurred.

    guruprasadrsby (10/19/2015)


    TITLE: Microsoft Visual Studio

    ------------------------------

    Failed to start project

    ------------------------------

    ADDITIONAL INFORMATION:

    The package 'Package1.dtsx' has been modified since the last build. Build the project and try again.

    (Microsoft.DataTransformationServices.VsIntegration)

    ------------------------------

    BUTTONS:

    OK

    ------------------------------

    Is this a question or an...


  • RE: Extract File name from Flat File Destination

    abhilashdk2013 52858 (10/19/2015)


    Hi,

    Thank you for your reply. As I said I am still learning and there is no specific reason for this scenario. I did not know how to extract...


  • RE: Extract File name from Flat File Destination

    abhilashdk2013 52858 (10/19/2015)


    Hi,

    Thank you for the reply. I was just trying out as I am just learning. I will learn Script Task and try to get the file name from...


  • RE: Extract File name from Flat File Destination

    abhilashdk2013 52858 (10/19/2015)


    Hi All,

    I am new to SSIS. I created a simple package that extracts data from a table and copies that data to a text file. It works well.

    Now...


  • RE: WMI watcher package

    6660999 (10/17/2015)


    So I am very new to SSIS and I have a question regarding the WMI watcher.

    I have several import processes running across around 20- 30 files. These are all...


  • RE: Multiple-step OLE DB issue

    Dropping your temp table is easier like this

    if object_id('tempdb..#TempB', 'U') is not null

    drop table #TempB


  • RE: Multiple-step OLE DB issue

    I can't remember whether GO is valid inside an ExecuteSQL task, as it's not a valid SQL statement.


  • RE: Which is more efficient? WHERE SUBSTRING = ...or... WHERE fldField LIKE 'x%'

    _watching (10/15/2015)


    Matt Miller (#4) (10/15/2015)


    ChrisM@Work (10/15/2015)


    _watching (10/14/2015)


    If you're interested in updated speed comparisons on how fast each is (well, on SQL 2014 anyway), this ➡ LIKE vs SUBSTRING vs LEFT/RIGHT...


  • RE: SQL 2016

    happygeek (10/15/2015)


    I hope I have the correct wording for this question, but here goes:

    Is it time to create a forum for SQL 2016 questions?

    Wording looks pretty good to me:-)


  • RE: Newbie question - SQL server / development

    Luis Cazares (10/15/2015)


    You can use either the SQL Server Express Edition which is free. It has several limitations, but for simple use, it should be fine.

    Where is the OR to...


  • RE: Problems with duplicates

    fernando.arias (10/15/2015)


    Thanks.

    To be sure, wouldn't this work as well? (PARTITION BY namn ORDER BY Säsong) since namn (the name) doesn't change, but tröjnummer (which is the number on their sweaters)...


  • RE: Problems with duplicates

    Based on that screen shot, if you change your PARTITION BY to this, it should work

    (PARTITION BY TROJNUMMER ORDER BY SASONG DESC)

    (obviously, the various accented characters need to be substituted...


  • RE: Problems with duplicates

    SELECT *

    INTO Newtable

    creates a permanent table called Newtable. So if you run it again when the table already exists, you get an error because the table cannot be created again.

    If...


  • RE: Problems with duplicates

    Kristen-173977 (10/15/2015)


    fernando.arias (10/15/2015)


    --- But it gave me this message:

    Msg 336, Level 15, State 1, Line 5

    Incorrect syntax near 'Fernhl'. If this is intended to be a common table expression, you...


Viewing 15 posts - 8,011 through 8,025 (of 13,876 total)