Forum Replies Created

Viewing 15 posts - 7,201 through 7,215 (of 13,877 total)

  • RE: Max value in Case Statements

    Same again, but with my SELECT MAX() solution tagged on to the end.

    CREATE TABLE temp (ID INT, Date DATE);

    WITH E(n)

    AS (SELECT...


  • RE: comparing xml column

    astrid 69000 (4/20/2016)


    Thanks so much.

    I read and read and I understood. and it worked :-P:-P

    Here is my code

    declare @x xml

    DECLARE @site_value INT;

    SET @site_value = 0;

    WHILE @site_value <= 1000

    BEGIN

    select @x =...


  • RE: Max value in Case Statements

    Here's an UPDATE version:

    IF OBJECT_ID('tempdb..#test', 'U') IS NOT NULL

    DROP TABLE #test;

    CREATE TABLE #test

    (

    Id INT PRIMARY KEY

    ,dt DATE

    ...


  • RE: Importing Excel Workbook with multiple tabs using SSIS

    Dhivya Elan (4/20/2016)


    Hi Phil,

    I tried using the ForEachLoop container. Here's what I did:

    1) Made all my Excel Source tabs identical, by adding missing column headers (although they might not contain...


  • RE: Importing Excel Workbook with multiple tabs using SSIS

    Dhivya Elan (4/20/2016)


    Hi John

    I've been trying to use the derived column transformation, unable to find a guide on how-to, that matches my requirement. I would really appreciate any helpful links....


  • RE: Importing Excel Workbook with multiple tabs using SSIS

    Dhivya Elan (4/20/2016)


    Hello All,

    I have recently started using SSIS, and have been exploring various transformations trying to make the best use of them. I currently have a requirement where in,...


  • RE: SQL table locked infinity when access us from c# code

    rafnunes (4/20/2016)


    thanks for your answer.

    But correct if I'm wrong, after reset SQL server Service and application the lock should not disappear?

    It's possible to know if a table is locked,...


  • RE: Building BI from Scratch!

    singhamitpal (4/19/2016)


    I have spoke to some people who claim themselves to be SQL Guru's. Anyways, below is what I found...

    1.Very few developers will be able to create a consistent stored...


  • RE: SQL table locked infinity when access us from c# code

    rafnunes (4/20/2016)


    I have a code that execute this steps in some table:

    1 - Update 5000 rows with will be to extract, is a bit column with value NULL 0...


  • RE: Are the posted questions getting worse?

    Eirikur Eiriksson (4/20/2016)


    Phil Parkin (4/19/2016)


    Ed Wagner (4/19/2016)


    SQLRNNR (4/19/2016)


    GilaMonster (4/19/2016)


    And more homework in the forums. Is it wrong to want to post a sensible-looking but completely incorrect query as answers?

    Do it!

    Are...


  • RE: Data Conversion problem.

    pvong (4/19/2016)


    Phil, thanks for your help.

    Jacob, I marked you as the answer because I learned how to do an error output file thanks to you suggesting it. Remember, I'm...


  • RE: Building BI from Scratch!

    singhamitpal (4/19/2016)


    Thanks for the response...

    I’VE have been advised to stay away from the stored procedures meaning the business logic should NOT be stored in stored procedures, except where really really...


  • RE: Trouble deploying a package to MSDB

    John Rowan (4/19/2016)


    Are you using the .ispac file for deployment?

    I'm sure you know this, but ispac files get deployed only to SSISDB (as far as I know).


  • RE: can someone point me to an AdventureWorks instance that actually can be imported

    Looks like you have two instances of the DB engine installed.

    One will be accessible by typing 'localhost' in the server name.

    The other will be accessible by typing [machine name]\SQLExpress in...


  • RE: Are the posted questions getting worse?

    Ed Wagner (4/19/2016)


    SQLRNNR (4/19/2016)


    GilaMonster (4/19/2016)


    And more homework in the forums. Is it wrong to want to post a sensible-looking but completely incorrect query as answers?

    Do it!

    Are you thinking something along...


Viewing 15 posts - 7,201 through 7,215 (of 13,877 total)