Forum Replies Created

Viewing 15 posts - 166 through 180 (of 1,183 total)

  • RE: There is already an object named '#Test' in the database

    Someone else will have to speak the the specifics of "WHY", but I believe it has something to do with the parser having to evaluate both conditions of the IF.

    This...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Remove characters past 500 field length

    Use the LEFT command keyword.

    ...

    SET shortColumn = LEFT(longColumn,500)

    ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Iteration

    Johan's post should get you pretty much what you are asking for.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Iteration

    SQLKnowItAll (1/11/2012)


    Jason Selburg (1/11/2012)


    In order to dynamically name the columns, you would need to use dynamic sql. Search BOL or this site for more details on that.

    Otherwise, this gets what...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Iteration

    In order to dynamically name the columns, you would need to use dynamic sql. Search BOL or this site for more details on that.

    Otherwise, this gets what you want. ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: need help with CASE stmt and table joins

    But more clearly stated here. 😀

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Very Puzzling T-SQL question

    So why don't you "want" to count the seperators? That would be the most direct way to count the codes.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Visual Studio 2010 - Database Project Compare

    Matthew Orton (1/10/2012)


    Thanks for the suggestions Jason.

    Yes I could create a database from one of the projects and use that as the source to compare against the remaining project using...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Table & Column Name (alias) dynamically using dynamic SQL

    What's the question?

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Merge columns (large table)

    Gotcha

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Merge columns (large table)

    I may be way off here, but why not just right click the table in Object Explorer and Script as Insert then manipulate that?

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Visual Studio 2010 - Database Project Compare

    This may not be the optimal solution, but .....

    Apply the project to two seperate database's then use Red Gate's SQL Compare on them.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Import numbers from flat file and format with decimal

    Dev (1/10/2012)


    Divide it by 1000.

    I was gonna say that, but it couldn't be that obvious. 😀

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: ANSI_PADDING

    Thanks for all of the compliments everyone.

    I ran into this scenario and as it seemed contradictory to common sense to me, I figured I'd see if I was the...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: SQL Results Table Manipulation

    A few notes:

    This assumes the [Fail] value is what you want pivoted.

    That the value is not to be summed, averaged per [Date] [Region] group.

    That their is only one value for...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg

Viewing 15 posts - 166 through 180 (of 1,183 total)