Forum Replies Created

Viewing 15 posts - 5,671 through 5,685 (of 8,755 total)

  • RE: SSIS 2012 - OLEDB connection (Source) to Flat file (Destination)

    ankithimmatlalshah (4/10/2015)


    Hello everyone,

    I'm trying to export the data from SQL database to Flat file.

    The data gets exported to the destination but it does not contain the header columns.

    Can anybody advise...

  • RE: Connection string that works for SQL Server 2012

    philosophaie (4/10/2015)


    I am trying to write a connection string that works for SQL Server 2012.

    Here is my attempt but I am using data from:

    http://www.connectionstrings.com/sql-server/

    I believe the below is the...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (4/10/2015)


    Grant Fritchey (4/10/2015)


    Is everyone OK? Are people ill or something? Because this just happened and it has me concerned:

    Not that I've ever been that high, but I'm putting...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (4/10/2015)


    Brandie Tarvin (4/10/2015)


    Grant Fritchey (4/10/2015)


    Is everyone OK? Are people ill or something? Because this just happened and it has me concerned:

    Not that I've ever been that high, but...

  • RE: Are the posted questions getting worse?

    GilaMonster (4/10/2015)


    I love finding out that I'm giving a training course from the newsletter sent out the the entire company.

    Especially when it's pushed forward to the day of the publication,...

  • RE: script, that returns all SPs to a given table, incl. the access type

    maurer.martina (4/10/2015)


    new thought: a kind of syntax-check

    Example-Statement: delete from mytable

    allowed characters between "delete" and "from" and "myTable" are only blanks, right?

    If I erase the blanks in the definition, there must...

  • RE: SQL Query

    yusufm 48726 (4/10/2015)


    Hi Guys,

    I am trying to create a report from view and I am stuck on dates and Value.

    I have got scenario like

    Date ...

  • RE: FOR XML Syntax

    dlsilsbury 63952 (4/10/2015)


    Hi,

    I'm new to the forums. So Hello, hello.

    Quick question! Is this syntax valid?

    "FOR XML AUTO, RAW"

    I can't see that it is but I'm due to take my 70-461...

  • RE: sql syntax issue

    vipin_jha123 (4/10/2015)


    Hi,

    I want below Output from above command

    insert into staging_temp_1

    select dbo.fnGetFirstOcurrences(col001, '¯',@Columns),LoadDate from staging_temp

    Escaping the quotation marks produces the correct output

    😎

    INSERT INTO dbo.Staging_Temp_1 fnGetFirstOcurrences(col001, '¯',@Columns),LoadDate...

  • RE: sql syntax issue

    vipin_jha123 (4/10/2015)


    Hi,

    I am getting error in my below sql statement

    Declare @sqlquery varchar(max)

    Set @sqlquery='INSERT INTO dbo.Staging_Temp_1 fnGetFirstOcurrences(col001, '¯',@Columns),LoadDate FROM dbo.Staging_Temp'

    Select @sqlquery

    error:-

    Msg 102, Level 15, State 1, Line 11

    Incorrect syntax...

  • RE: script, that returns all SPs to a given table, incl. the access type

    Try this

    😎

    SELECT

    OBJECT_NAME(ASM.object_id) AS OBJ_NAME

    ,OBJECT_SCHEMA_NAME(ASM.object_id) AS OBJ_SCHEMA_NAME

    ,CASE WHEN ASM.definition LIKE N'%UPDATE%' ...

  • RE: Specific Column Matching...with nulls

    Slightly different approach, only scans each table once

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    declare @vehicle table(id int, vehiclemake varchar(10), vehiclemodel varchar(10));

    declare @vehicleclass table(id int, vehiclemake varchar(10), vehiclemodel varchar(10), classtype varchar(1));

    insert into @vehicle values

    ...

  • RE: Temp Table Names

    Thanks Steve!

    😎

    BTW, the leading "#" is included in the count, BOL does not mention that.

  • RE: How to find the needle in the haystack

    Jeff Moden (4/9/2015)


    Eirikur Eiriksson (4/9/2015)


    tcronin 95651 (4/9/2015)


    I have baselines, just stunned to see this happen, I have been a dba for 20 years and 99% of the time this happens...

  • RE: Converting date column that is a varchar data type to a datetime data type

    Sigerson (4/9/2015)


    ZZartin (4/3/2015)


    Quick question Grant, how many times have you seen systems/processes fail on the 13th of the month? I can count a good handful.

    In my last job I managed...

Viewing 15 posts - 5,671 through 5,685 (of 8,755 total)