Home Forums SQL Server 2005 Development Parameter = to distinct column name in stored procedure RE: Parameter = to distinct column name in stored procedure

  • pherman777 (12/21/2015)


    The reason I am posting on multiple sites is that I am under a deadline (as is the case for most of us). I don't believe it is required to only use one site for help. I do appreciate the feedback and the help however.

    I resolved the issue by assigning the AssetCount value in a string i.e. @EquipmentClass = N'AssetCount' which populated my query with distinct values from the original query. Thanks for the suggestions and the help. It was very useful.

    I did not suggest you shouldn't use only 1 forum. I was trying to point out that when using ANY online forum you need to provide details for the people trying to help. In both locations I saw you did not provide enough information. This is even more critical when as you say you are under a deadline. With the required information people can actually work on your issue instead of trying to extract the entire problem. Glad you got a solution and hopefully it works well for you.

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/