Forum Replies Created

Viewing 15 posts - 7,621 through 7,635 (of 8,760 total)

  • RE: XML to file

    This is simple, run the query with "Results to Grid", right click on the results and select Save Results As..

    😎

  • RE: using IDENTITY INSERT

    Just to further on the explanation with a quick example:

    😎

    USE tempdb;

    GO

    CREATE TABLE dbo.MY_IDENTIY

    (

    MY_IDENTITY_ID INT IDENTITY(1,1) NOT NULL CONSTRAINT...

  • RE: Query source for Missing Index Management Views

    Did you look at Greg's Robidoux article Using SQL Server DMVs to Identify Missing Indexes[/url]?

    😎

  • RE: ? Could not find stored procedure 'dbo.sp_MSdistribution_cleanup'

    Would have thought it would be in the sys schema in the master database, that is master.sys.sp_MSdistribution_cleanup

    😎

  • RE: How do I loop through rows and populate data?

    You might want to try something like this:

    😎

    USE tempdb;

    GO

    CREATE TABLE dbo.TBL_PLANT

    (

    PLANT_ID INT IDENTITY(1,1) NOT NULL CONSTRAINT PK_DBO_PLANT_PLANT_ID PRIMARY KEY CLUSTERED

    ,PLANT...

  • RE: Converting Hour and Minute to Decimal

    Quick solution, returns the hour + time fraction (minutes and seconds / 3600)

    😎

    USE tempdb;

    GO

    DECLARE @DATE_VAL DATETIME = '2014-07-29 08:16:31.000'

    SELECT @DATE_VAL

    SELECT DATEPART(HOUR,@DATE_VAL) + (DATEDIFF(SECOND,'00:00:00.000',DATEADD(HOUR, - DATEPART(HOUR, CONVERT(time(3),@DATE_VAL)),CONVERT(time(3),@DATE_VAL))) / 3600.0)

    Result

    8.275277

    Edit: Oops, feel...

  • RE: DBA vs Developer

    Sean Pearce (8/2/2014)


    GilaMonster (8/1/2014)


    Sean, do you have the actual execution plan for comparison? I've seen obscene row estimations before, I suspect caused by the optimiser thinking that a one-to-many join...

  • RE: Get next 2 weeks

    Daniel Matthee (8/2/2014)


    Please give your feeling about this method

    Although your code works fine, it wouldn't be my first choice as if the OP could change the schema, normalizing the data...

  • RE: Update row Beginning Balance with Prev Row Trial_Balance

    jameslauf (8/1/2014)


    Fixed my CODE and attaching Excel sheet to show desired output. see column N, O, P for results.

    Looking at the expected results prompts few questions:

    😎

    1. Is this dataset for...

  • RE: Get next primary key without identity

    Just a quick thought on the problem, why not use the ROWLOCK hint?

    To try it out, run the create script first and then the Update and the Select code...

  • RE: Trouble using proxy to run SSIS pacakage

    Elizabeth.Block (8/1/2014)


    I'm sorry, I don't know what you mean. Can you give me more information?

    Unfortunately I do not have BIDS 2K8 at hand so I'm going by my gay cell...

  • RE: SSIS - Dynamic XML Configuration File Path while running the Package

    windows_mss (8/1/2014)


    I'm using VS 2008 BIDS.

    No option to do dynamic file config from within the package then, either dynamically modified/created package or database configuration are your best bets. If you...

  • RE: Trouble using proxy to run SSIS pacakage

    Quick thought, what are the security properties of the package? Have you tried initiating the download from the application server using the package runtime credentials?

    😎

  • RE: Trace Updated records

    Using a trigger is probably the most straight forward approach, if you add a table holding the primary key value and a date, then you can use the output clause...

  • RE: SSIS - Dynamic XML Configuration File Path while running the Package

    windows_mss (8/1/2014)


    Hi,

    I have done with the SSIS Package and it's working as expected in my local machine, I have one problem is that how I can give my XML configuration...

Viewing 15 posts - 7,621 through 7,635 (of 8,760 total)