Forum Replies Created

Viewing 15 posts - 196 through 210 (of 14,952 total)

  • RE: add 200 million new products

    SQL 2012 doesn't have any limits on that, but your hardware certainly will. CPUs, RAM, I/O busses, etc., can only push so many bytes per second.

    Most likely, I/O will...

  • RE: Create unique id based on data in table

    Why not just have those three columns be unique? A unique constraint can contain multiple columns.

  • RE: MERGE Statement with two WHEN MATCHED Statements

    I don't get this part:

    COALESCE('target.[Programability_TYP] <> source.[Programability_TYP] collate SQL_Latin1_General_CP1_CI_AS', '')

    Why use a coalesce check on a string literal? There's no possible way for 'target.[Programability_TYP] <> source.[Programability_TYP] collate SQL_Latin1_General_CP1_CI_AS' to...

  • RE: SqlDateTime overflow

    Definitely could be an issue with in-flight data conversions of one sort or another.

    You'll probably need to get a more experienced .NET dev to review your code.

  • RE: Date Comparisons

    ScottPletcher (1/8/2013)


    GSquared (1/7/2013)


    paul.j.kemna (1/7/2013)


    Wow, that makes a lot of sense. Such a simple concept that i may have overlooked in some places.

    But in this case, we are assuming that...

  • RE: SqlDateTime overflow

    That's always from either an out-of-range date or a malformed date.

    Usually see it where American-style dates (MM-DD-YYYY) are being inserted into something expecting Euro-style dates (DD-MM-YYYY), or vice-versa....

  • RE: EXISTS vs IN vs .... COUNT?!

    GilaMonster (1/8/2013)


    GSquared (1/8/2013)


    I believe SQL Server will sometimes shortcut a "Where (select count(*) blah blah blah) > 1" into an Exists() check. But don't count on the optimizer being...

  • RE: EXISTS vs IN vs .... COUNT?!

    I've seen Count() kill a server where Exists() was fine.

    A code-push was done on a Tuesday night. Everything went fine. Monday morning, however, the websites wouldn't come up,...

  • RE: Retrieving data from other tables, using row data as fields

    I guess I'm not clear on what end result you are trying to achieve here. Can you clarify that?

  • RE: Date Comparisons

    ScottPletcher (1/7/2013)


    GSquared (1/7/2013)


    ScottPletcher (1/7/2013)


    GSquared (1/7/2013)


    Assuming "correct results" means dates between the two variable values, including the end-date value, then yes.

    As mentioned, using <= @EndDate can give odd results.

    For example:

    DECLARE @T...

  • RE: sql server memory

    Oracle_91 (1/7/2013)


    Hi Thank you.

    I am looking for T-sql script which will use up memory so that i can monitor which process is eating up most of memory.

    Whichever part your script...

  • RE: Tally Calendars and 'Week 1'

    CELKO (1/7/2013)


    I would build a calendar table with a ISO-8601 week-within-year format column in addition to the usual Common Era date. This format is 'yyyyWww-d' where yyyy is the year,...

  • RE: Automate DTS Column Mapping during import

    Not really. You might be able to work around it using script objects, but you're probably better off building a .NET service that reads the file directly.

  • RE: Date Comparisons

    ScottPletcher (1/7/2013)


    GSquared (1/7/2013)


    Assuming "correct results" means dates between the two variable values, including the end-date value, then yes.

    As mentioned, using <= @EndDate can give odd results.

    For example:

    DECLARE @T TABLE

    ...

  • RE: Date Comparisons

    paul.j.kemna (1/7/2013)


    Wow, that makes a lot of sense. Such a simple concept that i may have overlooked in some places.

    But in this case, we are assuming that I DO...

Viewing 15 posts - 196 through 210 (of 14,952 total)