Forum Replies Created

Viewing 15 posts - 2,611 through 2,625 (of 2,894 total)

  • RE: CTE - Avoiding the cursor

    I've been advising the same all the way long...

    But, for some reason, he loves a cursor 😀

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: cannot get DISTINCT results from nested inner joins

    lionwelp (7/1/2010)


    Eugene Elutin (7/1/2010)


    Do you want the most recent status to display? Which column defines that it is a most recent status? vvers_dat or creatie__dat or something else?

    ...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Retrieving Large Videos

    Just remember, to use FileStream in SQL2008 your system must use Windows Authentication when connecting to SQLServer, but I beleive it already does :-D.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: cannot get DISTINCT results from nested inner joins

    Do you want the most recent status to display? Which column defines that it is a most recent status? vvers_dat or creatie__dat or something else?

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: using all in a parameter in a stored procedure

    I don't understand your question. Are you asking how to use IF ... ELSE in SQL or what?

    Just in case: http://msdn.microsoft.com/en-us/library/ms182587.aspx

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Stored procedure help

    It is a bad practice to use cursor or any kind of loop to do what you are trying to do in T-SQL.

    It will be better if you will create...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Retrieving Large Videos

    You can use SUBSTRING function, it works on varbinary datatype.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: SQL Table Insert rate?

    You will find comparison table in this article:

    http://msdn.microsoft.com/en-us/library/dd425070(SQL.100).aspx

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: using all in a parameter in a stored procedure

    You can use the following in your WHERE clause:

    WHERE (SGYR = @SGYR OR @SGYR IS NULL)

    AND (REGION = @REGION OR @REGION IS NULL)

    AND (SEASON = @SEASON OR @SEASON IS NULL)

    AND...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Current QTD, Previous QTD

    jay83091 (7/1/2010)


    ...

    e.g. for the current month of July 2010

    20104 - previous QTD

    20105 - previous QTD

    20106 - previous QTD

    20107 - current QTD

    20108 - current QTD

    20109 - current QTD

    thanks for your help...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: using all in a parameter in a stored procedure

    chris-736523 (6/30/2010)


    I do this frequently.

    I'll declare the input parameter as

    @ParameterName VARCHAR(4000)

    Then, whatever is calling the procedure needs to pass a comma delimited string of values. Example "1,2,3,4,5,6".

    In...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: What is the Point in Updating the PK in an UPDATE Stamenet

    It could be due to the code is auto-generated...

    And obviuosly it was not done very well 😎

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Candidate Key Or Composite Key

    PaulB-TheOneAndOnly (6/30/2010)


    ...

    :blink: mmhhh... having problems to picture an scenario where performance improves by adding I/O.

    I don't think performance is the only concern when designing a database. Would you denormalize...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: CTE - Avoiding the cursor

    Brandie Tarvin (6/30/2010)


    ...

    I don't think I can use FranchiseID or StoreID in my newly generated TaxID. And since I'll be using this technique for other PII (address information, etc), I'd...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Working with self join

    Dave, please test the script you post before posting it.

    It doesn't work against DDL submitted in your previous post (it doesn't work at all as there are no quotes around...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 2,611 through 2,625 (of 2,894 total)