Forum Replies Created

Viewing 15 posts - 1,066 through 1,080 (of 14,953 total)

  • RE: View Help

    asm1212 (8/6/2012)


    Yeah no offense but my view is much larger than that, and i was trying to dumb it down...

    I have tried using the MAX function, but it does not...

  • RE: Unique Identifiers

    Why would instance2 (test instance, right?) need to increment with a positive number, ever? Positive numbers on it would be real data (from instance1). Set it for identity...

  • RE: Are the posted questions getting worse?

    Keep in mind that Steve may not have final say in whether that can be done or not. Volunteer-work for for-profit companies gets legally complicated. That's one reason...

  • RE: Group the common word

    Okay. So what you'll need to do is break the data up by word, so you have the row ID (A, A1) and each "word" as a separate row....

  • RE: View Help

    Are you familiar with aggregate functions (like MAX and MIN) in queries? You can use those in Views, just like any other query.

  • RE: Is it me or is it them? :-)

    If any component of the data isn't an exact match, an equality comparison will fail. I wrote that bit when I thought they were looking for whole-day-ranges (my 112...

  • RE: Unique Identifiers

    If odd/even won't work, you can have test data be set up with negative numbers and production with positive numbers.

  • RE: Unique Identifiers

    Maintaining unique identifiers across computers is pretty much what GUIDs were invented for.

    Take a look at GUID and UNIQUEIDENTIFIER online. You'll find the relevant data easily enough.

  • RE: Group the common word

    That makes sense.

    That means a variable number of columns, from what I can see. That's fairly complex to code, unless XML is an option for the output.

    Will the application...

  • RE: No blocking, queries running slowly, what to check next?

    Restarting the SQL service is probably speeding things up by getting rid of poorly built execution plans from the cache. That might speed it up, for a while, but...

  • RE: Why It's Good To Be Wrong

    On the date-math item, it's not so applicable to a delete date, but it is to others.

    Since you may have to declare a non-null "end date" that has to be...

  • RE: Why It's Good To Be Wrong

    Mike Dougherty-384281 (7/14/2012)


    Jeff Moden (7/13/2012)


    Mike Dougherty-384281 (7/13/2012)


    Ola L Martins-329921 (7/13/2012)


    ...hence I never delete a-n-y-t-h-i-n-g from the tables. I use a switch "bit_deleted" and a view to get the not-deleted records...

    consider...

  • RE: Group the common word

    Do you know before-hand how many columns you'll have in the final output? If not, you'll need some sort of dynamic SQL to write the query for you. ...

  • RE: How to Make Scalar UDFs Run Faster (SQL Spackle)

    Jeff Moden (8/6/2012)


    GSquared (8/6/2012)


    Of course, if you really want to see how complex this kind of thing can get, try to make it deal with things like "USA" (or worse,...

  • RE: Group the common word

    It looks to me like you're just repeating the contents of each row. "A B C" becomes "A B C A B C" (I just took out the repeating...

Viewing 15 posts - 1,066 through 1,080 (of 14,953 total)