Forum Replies Created

Viewing 15 posts - 4,171 through 4,185 (of 8,753 total)

  • RE: Are the posted questions getting worse?

    Banks seem to be capable of doing date math, I've for instance seen interests paid early

    😎

  • RE: Are the posted questions getting worse?

    jasona.work (12/24/2015)


    OK, who here has created a "spoof" stored procedure so they can make it look like they're calling DBCC TIMEWARP in their code? Maybe calling it DBCC_TIMEWARP or...

  • RE: How to find duplicate sets of record?

    For fun, here is an alternative method

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.TBL_TESTDUPE_05') IS NOT NULL DROP TABLE dbo.TBL_TESTDUPE_05;

    CREATE TABLE dbo.TBL_TESTDUPE_05

    (

    set_id CHAR(3)

    ,col1 ...

  • RE: Syntax help on how to create a rule

    I second Jeff's suggestion in most cases but there are times when an additional table might be an overkill such as y/N for YES / NO etc. In those cases...

  • RE: change the element position on join and xml auto

    Quick suggestion

    😎

    DDL and Sample data

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.Main') IS NOT NULL DROP TABLE dbo.Main;

    IF OBJECT_ID(N'dbo.Tags') IS NOT NULL DROP TABLE dbo.Tags;

    IF OBJECT_ID(N'dbo.Docs') IS NOT NULL DROP TABLE dbo.Docs;

    CREATE TABLE...

  • RE: Data

    Jeff Moden (12/22/2015)


    Eirikur Eiriksson (12/22/2015)


    Quick thought, you could possibly remove the spaces in both columns for the comparison, not going to be too efficient though.

    ... unless you add persisted...

  • RE: How to I getr around the \ issue

    Sergiy (12/22/2015)


    What is the difference how fast your query returns a result if you cannot be sure if it's correct?

    😉

    faster the better...........oops

    😎

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (12/22/2015)


    Sorry to interrupt a valuable discussion on posters, but I need some sympathy.

    Cancer cat (Formerly had a sarcoma removed) now needs to go back in for some surgical...

  • RE: Error executing xp_cmdshell in 32 bit env

    jayaprabhalnt (12/22/2015)


    Got it. It is working now.

    Thanks

    Jayaprabha

    Good stuff, care to share the solution?

    😎

  • RE: Getting analysis sums for each row in a table

    stevennjuki (12/22/2015)


    Hello,

    I am able to get various totals summed up from varying row numbers of this table

    CREATE TABLE [dbo].[tb_a]([cl_t][datetime] NOT NULL ,[cl_a][decimal](18,5) NOT NULL) ON [PRIMARY]

    like this...

  • RE: Are the posted questions getting worse?

    Michael L John (12/22/2015)


    Eirikur Eiriksson (12/22/2015)


    GilaMonster (12/22/2015)


    Eirikur Eiriksson (12/22/2015)


    One recent poster kept asking over and over again why he was getting an error whilst trying to do something he'd already...

  • RE: Are the posted questions getting worse?

    GilaMonster (12/22/2015)


    Oh that one. I saw it before it went off the rails and decided I didn't want to get involved.

    Still, it's working so it can't be impossible... *angel*

    Crossing the...

  • RE: Data

    sharonsql2013 (12/22/2015)


    Hi,

    I am trying to compare two columns but looks like its a data issue

    One column as data like "Team Leader - XYZ" and second one has "Team Leader-XYZ"

    Is there...

  • RE: Are the posted questions getting worse?

    GilaMonster (12/22/2015)


    Eirikur Eiriksson (12/22/2015)


    One recent poster kept asking over and over again why he was getting an error whilst trying to do something he'd already been told was impossible, had...

  • RE: How to I getr around the \ issue

    ScottPletcher (12/22/2015)


    Edit: Not at all "moving the goalposts". The only reason for the rule is the issue it causes if you get the type wrong, as I stated many...

Viewing 15 posts - 4,171 through 4,185 (of 8,753 total)