Forum Replies Created

Viewing 15 posts - 631 through 645 (of 842 total)

  • RE: SSIS Data Flow "bulk insert" VS. INSERT INTO

    I'm having issues again posting SQL code here.

    But thanks for the link. This tells me for most of what we do some logging is still going to occur, tables...

  • RE: SSIS Data Flow "bulk insert" VS. INSERT INTO

    I got a little more detail on how this was tested today. The first thing that was done was to create a new database and a new empty table...

  • RE: Back again with more stored procedure troubles

    Don't feel bad about hating stored procedures, there are others that prefer not to use them. 🙂 That being said they do have a purpose and aren't that much...

  • RE: String Search

    I had to attach the SQL in the text file, some reason it wouldn't allow me to post it.

  • RE: String Search

    No I didn't try anything other than the database and what I wanted to search for. Just tried on a real small database, got it back in less than...

  • RE: String Search

    OK this isn't the same SQL, this is something I got back in March, probably from this site, didn't keep who wrote it, sorry about that, I'm trying to do...

  • RE: String Search

    Sean Smith-776614 (10/22/2014)


    below86 (10/22/2014)


    I like the idea of this but the only issue I have is this, If I want to run this against our production warehouse I'm not going...

  • RE: String Search

    I like the idea of this but the only issue I have is this, If I want to run this against our production warehouse I'm not going to have rights...

  • RE: When if ever would you following a JOIN ON clause with an AND instead of WHERE?

    To me it looks like someone was looking to add the code persontype = 'sp', but just put it in the wrong place. I've seen code like that before,...

  • RE: Ranking

    What I see as another trick question. In your example data you see before answering the question you have values that would give you the rankings of:

    CustomerIDRank

    4 ...

  • RE: How Many Different Random Numbers?

    ross.chang (9/30/2014)


    I got a distinct of 6 different values from SQL Server 2012:

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713647892126698

    0.713647892126698

    0.713647892126698

    0.713647892126698

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713852854810538

    0.713871487781797

    0.713871487781797

    0.713908753724313

    0.713908753724313

    0.713908753724313

    I got the same thing.

  • RE: Trying to set variable to last day of current month, but seeing NULL instead of 28, 30 or 31?

    pietlinden (9/28/2014)


    DECLARE @currMonthNum INT,

    @lastDayMonth INT

    SET @currMonthNum = DATEPART(MM, GETDATE())

    IF @currMonthNum IN (1, 3, 5, 7, 8, 10, 12)

    SET @lastDayMonth = 31

    IF @currMonthNum = 2

    SET @lastDayMonth = 28

    IF @currMonthNum IN (4,...

  • RE: Trying to set variable to last day of current month, but seeing NULL instead of 28, 30 or 31?

    How about one more version?

    SELECT DATEPART(DD, DATEADD(DD, -1, DATEADD(MM, 1, DATEADD(DD, -(DATEPART(DD, GETDATE()) -1), GETDATE()))))

  • RE: Production Subsets

    We have a small set of data on our DEV environment. But we only use this area to basically test that the code does not fail. Then to...

  • RE: Titles Matter

    I would guess I've had more than 6 different job titles over the 20+ years. And it just changed again from Lead Programmer Analyst to Lead Application Developer. ...

Viewing 15 posts - 631 through 645 (of 842 total)