Forum Replies Created

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

  • RE: Counting the characters in a string before a space

    Jeff Moden (6/14/2014)


    I'll be back...

    :smooooth:

    It certainly looks, smells and tastes like a CDR, question is what is the originating system, record type and record format? Many CDR formats are slightly...

  • RE: Split csv records to seperate columns

    Here is a solution based (loosely) on DelimiterSplit8K.

    😎

    USE tempdb;

    GO

    DECLARE @STGTXT TABLE

    (

    STGTXT_ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED NOT NULL

    ,STGTXT_TEXT VARCHAR(MAX) ...

  • RE: Just curious, what are your SQL pet peeves ?

    Quick thought on this, I think there is a slight mix-up in the conversation. Using integer in a YYYYMMDD format as a date dimension key in a datamart is not...

  • RE: Backup and XP_CMDSHELL move .bak files

    Jeff Moden (6/13/2014)


    Eirikur Eiriksson (6/12/2014)


    Quick thought, wouldn't it be simpler to have an SSIS package for shuffling the backup files around, no need for XP_CMDSHELL etc.

    😎

    Since you brought it up,...

  • RE: Modifying SSIS package stored in File Systesm

    sql_novice_2007 (6/13/2014)


    I am not seeing the export option even though I connected to SSMS as an administrator and I have sysadmin privileges.

    Thanks.

    You have to use BIDS or SSDT, not SSMS....

  • RE: Inner Cursor Error

    Kuzey (6/13/2014)


    Luis Cazares (6/13/2014)


    Kuzey (6/13/2014)


    Hello,

    You commented the parameters code. If you uncomment it, you need to use @dId instead of @aId on the third parameter for sp_executesql.

    When I run this;

    EXEC...

  • RE: Inner Cursor Error

    Kuzey (6/13/2014)


    Eirikur Eiriksson (6/13/2014)


    Quick question and bear with me hear, but why do you need the cursor, the inner sql has no exec statement?

    😎

    SET @sql='SELECT @aId, @dId, @dStatusId, d.DateCreated, d.DocumentSize,...

  • RE: Inner Cursor Error

    Quick question and bear with me hear, but why do you need the cursor, the inner sql has no exec statement?

    😎

  • RE: Filter Multiple Value in SQL

    This should get you started, two different methods.

    😎

    USE tempdb;

    GO

    DECLARE @TDATA TABLE

    (

    Id INT

    ,Calling VARCHAR(12)

    );

    INSERT INTO @TDATA

    (

    ...

  • RE: Do @@Identity And Scope_Identity Always Return The Record Just Added?

    Phil Stratford (6/12/2014)


    Actually, it seems like using IDENT_CURRENT is a terrible idea in the context of my question. As you've pointed out, it returns the last IDENTITY value produced...

  • RE: Just curious, what are your SQL pet peeves ?

    Koen Verbeeck (6/13/2014)


    Sean Lange (6/12/2014)


    below86 (6/12/2014)


    Sean Lange (6/12/2014)


    below86 (6/12/2014)


    I'm just looking at our 'new' datawarehouse design, a former DBA helped start. All the table names start with 'tbl'. :w00t:...

  • RE: Help needed on Sybase to Sql 2012 migration

    Suresh Arumugam (6/12/2014)


    Hi All,

    Can any one please share your experience or thoughts for my above query?

    Thanks.

    My 2 cent on this, as this is a one-off exercise, let the wizard do...

  • RE: sql help

    sqladmin 33439 (6/12/2014)


    how do i change connection database from master database to own database please

    In T-SQL there are two main options, either use a system stored procedure sys.sp_defaultdb or ALTER...

  • RE: Developers vs. DBAs

    JustMarie (6/12/2014)


    The DBAs keep my database servers running and happy. In return I keep them informed of things that may impact (or may not) the database servers.

    Going to have...

  • RE: Backup and XP_CMDSHELL move .bak files

    Second thought:w00t:

    why not backup straight to the network drive? No need to write the backup locally!

    😎

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