Forum Replies Created

Viewing 15 posts - 16 through 30 (of 422 total)

  • RE: Virtual tally table function

    Thanks Jeff. Any improvements (performance tested of course!) will be integrated and all ideas are welcome.

    Concerning credits...I'll go ahead and make sure the proper credit is applied. There's plenty to...

  • RE: Automated Trigger To Require a WHERE Clause

    If a trigger is going to be used for something like this wouldn't it make more sense to use an INSTEAD OF trigger? Then to get even more granular the...

  • RE: Parse XML to table

    Thanks all for the feedback. Every environment is different so it's hard to anticipate what kind of loads such a process might need to handle. In my use it was...

  • RE: Top from store procedure

    Jeff Moden (8/3/2013)


    Just remember that SET ROWCOUNT is a deprecated feature and, according to the 2012 deprecation list, is scheduled to go away in the next version of SQL Server....

  • RE: Changing SQLServerCentral - Initial Thoughts

    I think the site is fantastic and comprehensive without getting too "techie." Especially since it is so code oriented in some sections I think sections related to coding need lots...

  • RE: Top from store procedure

    I prefer using SET ROWCOUNT @X where @X is the number of rows to display since it is compatible with all SQL versions. Using a variable with TOP(X) was added...

  • RE: How To DISTINCT COUNT with Windows Functions (i.e. OVER and PARTITION BY)

    I don't have adventure works installed either, so will make a guess. Does this work?

    USE AdventureWorks2012;

    GO

    SELECT

    Name

    ,(SELECT DISTINCT

    ...

  • RE: N' annotation

    If you ever use dynamic SQL using the built-in system function 'sp_executeSQL' and try to use an OUTPUT parameter the function will not work unless you explicitly append the N'...

  • RE: How to convert my cursor tsql to set based

    If you could give us some sample data in table form it would be a lot easier to help you.

    I could be totally off-base, but my first thought is to...

  • RE: How to loop throught prameters to use the same sqlquerys

    With the assumption that you really do need to run a separate process for each type, then you will probably need to use dynamic SQL like this:

    First the sample data:

    IF...

  • RE: Inserted xml data in to Sql server records

    [See stored procedure at bottom]

    IF OBJECT_ID('tempdb..#TempTable') IS NOT NULL

    DROP TABLE #TempTable

    CREATE TABLE #TempTable (

    [RowNum] INT NOT NULL,

    ...

  • RE: Analytical function for my Q

    dwain.c (7/29/2013)


    Steven Willis (7/29/2013)


    Dwain is a master of minimilism...

    I like it. I'm trying to think of a way to incorporate it in my signature.

    Reminds me of the quote ChrisM...

  • RE: Analytical function for my Q

    Also...looking at the query plans and statistics, Dwain's solution is certainly more efficient if it satifies your requirements...

  • RE: Analytical function for my Q

    Dwain is a master of minimilism and his response is certainly more succinct than mine. But I'll post what I came up with before Dwain beat me to it. I...

  • RE: How to show results from 2 timeframes?

    pluto1415 (7/26/2013)


    We would like to generate a report that shows the following:

    SalesPersonA - Sales for Jan-June2012 - Sales for Jan-June2013

    SalesPersonB - Sales for Jan-June2012 - Sales for Jan-June2013

    SalesPersonC - Sales...

Viewing 15 posts - 16 through 30 (of 422 total)