Forum Replies Created

Viewing 15 posts - 21,226 through 21,240 (of 22,184 total)

  • RE: SIMPLE LIKE Comparison NOT WORKING?

    Yes, you need to add wild cards. Instead of simply

    LIKE '42'

    make it instead

    LIKE '42%'

  • RE: Took to generate insert, update and delete statements.

    There are a number of third party tools that can do this, for example Embarcadero's RapidSQL. You can also simply right click on the tables and get it for yourself....

  • RE: How do I increment a DB id

    Yes, that's exactly the type of auditing function that I had understood the OUTPUT function to be useful for. I just hadn't made the leap to using it with more...

  • RE: How do I increment a DB id

    Here we have a double edged sword. On the one side, I've got a more effecient tool to use in my queries. On the other side, you just handed me...

  • RE: How do I increment a DB id

    I knew of the OUTPUT clause, but I'd only really thought of it for stuff like auditing. This is really useful. So, if you had a multi-row insert, you'd just...

  • RE: How do I increment a DB id

    You'd use the SCOPE_IDENTITY like this:

    INSERT INTO table

    (Desc,UpdateDate,Whatever)

    VALUES

    ('My Description','1/14/2007','Something)

    SELECT SCOPE_IDENTITY()

    That would insert a row into the table and then give you the identity value generated by that table from the...

  • RE: How many hours are you expected to work?

    Yeah, our company is weird about working from home too. I'm doing it today because a ton of snow was dumped on us. As much as I like my job,...

  • RE: How do I increment a DB id

    Assuming I understood the question, if you're asking how to determine what the last identity value inserted was is to use the SCOPE_IDENTITY() function. This returns the last Identity value...

  • RE: How many hours are you expected to work?

    We're only supposed to work 40 hours a week too, but we're also on call. I worked a good two-three hours this weekend because of some problems in production. It's...

  • RE: XML modification TSQL in Sql 2005

    While I still think manipulating XML in 2000 is a waste of time, that's a very good idea. If you absolutely HAVE to do it, taking advantage of what you...

  • RE: XML modification TSQL in Sql 2005

    2000 doesn't support XQuery. You will have to use string functions. I don't have any samples because, frankly, it wasn't worth doing in TSQL in 2000. Instead we used VB,...

  • RE: Replacing TVFs with CTEs

    The most immediate benefit you'd see from using the CTE vs. a function is that the CTE will take advantage of indexes within the system as part of it's operation....

  • RE: SQL 2005 Database load testing and performance tuning

    Microsoft has a tool to generate load from trace files located here. You can also go for more sophisticated third party offerings like SQLScaler from Idera or Benchmark Factory from...

  • RE: Help about the tsql

    How about taking the initial query and placing it into a sub-select and the wrapping the outer where clause around that. Then you can refer to the columns derived from...

  • RE: For XML Explicit Syntax to Normalize a table

    I second the vote for XML PATH. It will make a huge difference.

Viewing 15 posts - 21,226 through 21,240 (of 22,184 total)