Forum Replies Created

Viewing 15 posts - 7,411 through 7,425 (of 8,760 total)

  • RE: Help Needed in Group by

    It can be done but I agree with Lynn, kind of awkward doing this in SQL.

    😎

    DECLARE @IDMainCompany int = 100;

    DECLARE @Process_Date datetime = '2014-01-01';

    ;With SalaryReport as (

    Select...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (8/23/2014)


    Really??

    Mail every minute and if it goes down then one can tell as the emails will stop:-D

    😎

  • RE: SQL 2012 Transactional Replication question

    Sapen (8/22/2014)


    Hello,

    I have implemented transactional replication in sql 2012 with replicate schema changes. Now if I drop few indexes and add columns and re add indexes on articles in publisher...

  • RE: Query Help

    Here is another suggestion on how to establish the grouping, the rest should be straight forward, select the last desired value from each group.

    😎

    CREATE TABLE #TEMP (T_ID INT IDENTITY(1,1),UserName varchar(20),Drink...

  • RE: How to find the root cause of tempdb log file increasing

    er.mayankshukla (8/23/2014)


    I would not suggest you to use DBCC ShrinkDatabase, but should see the query which is creating this.

    In one of my projects I observed such a behaviour when I...

  • RE: SQL Server JOINS

    Quick analysis

    😎

    First a simplified ERD

    +--------------+ +--------------+ +-----------------+

    |...

  • RE: Rolling Max Value

    JeeTee (8/22/2014)


    Wow, that works quite well. Given that I discovered some flaws in my post where I thought I had it with the quirky update, I'll try using this against...

  • RE: export table

    Nita Reddy (8/18/2014)


    I want to export one table but text contains ',' so can I use double " ? I don't see option when I select delimiter how should I...

  • RE: Please validate the script

    Looks to me that it does what it says on the tin.

    😎

    Inspecting the filter, we find:

    WHERE dp.class < 4

    Listing permissions for

    0 = Database

    1 = Object...

  • RE: How to find the root cause of tempdb log file increasing

    Wison (8/22/2014)


    Hi all,

    I found the tempdb log file size of one instance increased to 200 GB.

    how can i get the root cause of the issue?

    any answer is appreciated.

    thanks.

    Quick suggestion, look...

  • RE: Matching the value after using STUFF

    Here is a quick solution using CHARINDEX

    😎

    USE tempdb;

    GO

    CREATE TABLE [dbo].[x_JobMatching](

    [CVID] [int] NULL,

    [JobNoticeID] [int] NULL,

    [isMatch] [bit] NULL,

    CONSTRAINT [x_JobMatching_UQ1] UNIQUE NONCLUSTERED

    (

    [CVID] ASC,

    [JobNoticeID] ASC

    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE =...

  • RE: extracting column values when a part of the column value is known

    Luis Cazares (8/22/2014)


    Note that you might replace strings you don't want them to be replaced.

    INSERT INTO @test-2(TEST_STRING)

    VALUES

    ('I am a bad Gal')

    ,('I am a good Gal')

    ,('Oh my goodness! There''s no...

  • RE: Are the posted questions getting worse?

    GilaMonster (8/22/2014)


    TomThomson (8/22/2014)


    Haven't noticed him recently on SQLServerCentral, though :cool:.

    He dropped in recently to state that indexes were only needed in badly designed databases.... 🙁

    Are indexes not ANSI compliant?

    😎

  • RE: Are the posted questions getting worse?

    Lynn Pettis (8/22/2014)


    Eirikur Eiriksson (8/22/2014)


    Lynn Pettis (8/22/2014)


    And Mr. Celko is back with his baseball bat. :Whistling:

    In more than one thread. :Whistling:

    Nice to see that you are having a friendly chat...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (8/22/2014)


    And Mr. Celko is back with his baseball bat. :Whistling:

    In more than one thread. :Whistling:

    Nice to see that you are having a friendly chat with your best pal:w00t:

    😎

Viewing 15 posts - 7,411 through 7,425 (of 8,760 total)