Forum Replies Created

Viewing 15 posts - 7,216 through 7,230 (of 13,876 total)

  • RE: How to avoid locking/ daed locking while altering table

    Jeff Moden (4/19/2016)


    Ken McKelvey (4/19/2016)


    An alternative would be be have an XML column in the base table where user defined fields could be placed. This would give you the option...

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

    DSNOSPAM (4/19/2016)


    I've got SS 2008 R2 (developer vs I think) and 2014 Express loaded on my machine.

    I'm trying to load the Adventureworks 2008 RS info I downloaded from Codeplex, but...

  • RE: comparing xml column

    astrid 69000 (4/19/2016)


    Hi,

    I have attached an excel with a sample of the data.

    I don't know what you mean by converting to varchar, inside of each nod there are different values....

  • RE: How to build a dynamical Query with T-SQL

    nuno.fbo (4/19/2016)


    Hi Phill,

    Thanks for your feedback.

    I think I only can use Object_Name() in a Select statement right?

    Here in my example I need to use in FROM and WHERE statements

    SELECT OSUSR_CYW_TED_EVENTS.[AMOUNT],

    (select...

  • RE: Debugging CTEs

    dave.jones 96182 (4/19/2016)


    I always re-factor the CTE's when debugging them, for simplicity

    ;WITH CTE AS

    (

    SELECTID, Col1, Col2

    FROMMyTable

    WHERE...

    )

    SELECTCol1,

    Col2

    FROMCTE AS C

    JOIN MyTable AS T

    ON T.ID = C.ID

    SELECTCol1

    , Col2

    FROM(

    SELECTID, Col1, Col2...

  • RE: How to build a dynamical Query with T-SQL

    Given an Object_Id, you can use Object_Name() to get the object's name.

    To get the schema related to the Object_Id, use Object_Schema_Name().

  • RE: Loading files in parallel

    richardmgreen1 (4/19/2016)


    Thanks for that Jeff.

    I'll have a chat with the SAN admins and see where our drives are sat.

    While that will provide useful background info, this situation is crying out...

  • RE: Data Conversion problem.

    pvong (4/18/2016)


    Phil - I'm sorta new so thanks for your help.

    In both the derived col and conversion, I can not change the value in the Precision box. For the...

  • RE: Data Conversion problem.

    Have you tried putting a number in the Precision column to represent the maximum, err, precision of the incoming data?

  • RE: Concatenate Grouped data with custom text for each value

    How about something like this?

    Create table #TestTable (EmailID Int, EmailAddress Varchar (100))

    Insert #TestTable Values (101, 'Donald@Trump.com'), (102, 'Ted@Cruz.com'), (103, 'Hillary@Clinton.com'),

    (104, 'Bernie@Sanders.com'), (105, 'Donald@Trump.com'), (106, 'Hillary@Clinton.com'),

    (107, 'Donald@Trump.com');

    WITH Ordered AS (SELECT...

  • RE: Visual Studio 2015 and SQL Server 2014

    Eirikur Eiriksson (4/18/2016)


    Phil Parkin (4/18/2016)


    Eirikur Eiriksson (4/18/2016)


    No insight info but have been playing around with 2014 as target server and so far no problem. Note that I've not used any...

  • RE: Visual Studio 2015 and SQL Server 2014

    Eirikur Eiriksson (4/18/2016)


    No insight info but have been playing around with 2014 as target server and so far no problem. Note that I've not used any version specific libraries in...

  • RE: EXEC XP_CMDShell running in SSMS 2012

    sulman.sqldba (4/18/2016)


    EXEC XP_CMDSHELL 'net use /delete *'

    Need to find out how to feed a "Y" answer into the execution of this command.

    Trying to delete this post!

    Add a /y...

  • RE: The Hidden Trigger

    But beware: No multi-record changes! (and that limits the scope of colleagues I can delegate to rather much...!)Hehe

    Why not? Properly written triggers can handle multi-row changes with no problem.

  • RE: Visual Studio 2012 stops working on project switch

    That sounds annoying.

    Have you tried sfc and doing a repair install on your VS installation?

Viewing 15 posts - 7,216 through 7,230 (of 13,876 total)