Forum Replies Created

Viewing 15 posts - 346 through 360 (of 542 total)

  • RE: Expression Interpretation

    Gary,

    That's interesting....using a UDF that returns a table.  I guess you could then use the output of the table udf to input to scalar udfs. Or something like that?

    Hmmm....seems like someone should...

  • RE: self updated in field in same table

    Yeah, but your way may scale better, as my way causes cross joins with duplicates.   Would be interesting to test...

  • RE: Expression Interpretation

    Ducati,

    What you are trying to do is extremely complex and probably not possible without a thorough knowledge of excel's programming language.  Problems like nesting become pretty stinkin' complex pretty quick. ...

  • RE: Invoking a scalar UDF as a Table UDF parameter in a View?

    No, you can't use parameters within a view.  But you should have no problem using one or more functions in a view.  Your syntax looks odd, though:

    SELECT     mail, sn, givenname

    FROM        ...

  • RE: How to speed up an UPDATE command on a large table

    Mike,

    If that tables being used during replication it's probably heavily indexed.  re-building indexes is usually the killer during updates (but did you check the execution plan as suggested?).

    If the update...

  • RE: self updated in field in same table

    No need for a temp or derived table or a distinct count:

    Update t2

    set ORG = t1.ORG

    from tbl t1

    JOIN tbl t2 on t1.ContDir = t2.Contdir and t2.ORG is null

  • RE: Updating multiple rows.

    Yeah, there's a need for cursors...gulp. That was hard.  Honestly, though, I have yet to find a cursor I couldn't get rid of.  Granted, sometimes looping is necessary, but that's...

  • RE: SQl NOLOCK usage

    If you want speed, you should use nolock.  If you absolutely must have the most up to date data, don't use nolock.  The difference being that a Select without nolock...

  • RE: Preventing DBAs from looking into the data

    How the heck are you supposed to administrate a database if you can't even see the data?  That makes no sense at all.  I wouldn't/couldn't work at a place like...

  • RE: Updating multiple rows.

    QUOTE:

    I have a personal details table and a table that records an individuals transactions through a process. Each time a new record is added to show a new transaction I...

  • RE: Multiple Replace Question

    Wow, that's pretty stinkin' cool; using a bitwise operator with a patindex.  very nice; I'm impressed. Obviously I have a lot to learn about parsing strings.

    cl

  • RE: Multiple Replace Question

    Technically, if you want to strip ONLY the trailing you'd have to do something like this (I can't figure out how to do this without a loop.

    ------------

    declare @var varchar(30),

      @replace char(1)

    select...

  • RE: Change Management

    One year later....

    Great article, I use to be a Configuration Manager/CodeMaster at Nordstroms web site.  I work elsewhere now; we're a small shop...

  • RE: Reserved words

    Yeah, words that throw syntax errors should usually not be object or column names.  Still, I do it sometimes anyway (a table named Database, for example).  Description and Name are...

  • RE: Reserved words

    SQLBill,

    Why does Description show up blue in QA?  It's kinda misleading.

Viewing 15 posts - 346 through 360 (of 542 total)