Forum Replies Created

Viewing 15 posts - 511 through 525 (of 2,894 total)

  • RE: Function in where clause

    Bhuvnesh (3/21/2013)


    Kwisatz78 (3/21/2013)


    My question is, in this case, would that be the best way to code this or would splitting the string first and placing it in a temp table...

    _____________________________________________
    "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: Check Data While Inserting

    shohelr2003 (3/21/2013)


    @Eugene Elutin,

    Can you please tell me the basic difference between FOR INSERT and INSTEAD OF INSERT Trigger.

    I know there are lots of resources on it. But please tell me...

    _____________________________________________
    "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: reduce resource waits on sql server without upgrading sql server

    Wait types?

    _____________________________________________
    "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: How to call a batch file to execute from an SP

    Well, this SP should be pulling the job tables every 5 min or so and seeing if any are running longer than defined SLA for that job, so, if the...

    _____________________________________________
    "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: How to call a batch file to execute from an SP

    SQLCrazyCertified (3/20/2013)


    Eugene Elutin (3/20/2013)


    Not really good idea to do so, but if you really need it, use xp_cmdshell.

    xp_cmdshell 'c:\MyBatch.bat'

    Thanks Eugene, what you mean by not really good idea?....what are the...

    _____________________________________________
    "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: How to call a batch file to execute from an SP

    Not really good idea to do so, but if you really need it, use xp_cmdshell.

    xp_cmdshell 'c:\MyBatch.bat'

    _____________________________________________
    "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: reduce resource waits on sql server without upgrading sql server

    It depends! Which exact waits types you are having problem with?

    Are you sure that they are CPU dependent ones?

    _____________________________________________
    "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: Primary key or not to primary key, that is the question

    tafountain (3/20/2013)


    As far as the NEWSEQUENTIALID goes, SSCrazy hit most of the points I didn't elaborate on. ...

    Who are you calling SSCrazy, SSC Journeyman? 😉

    GUID's are evil! B-r-r-r-r-r! :hehe:

    _____________________________________________
    "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: help with query - am I going down the right path on this

    SQL_NuB (3/20/2013)


    the values that are different so for example

    if Active is true in DB2 and now coming in as FALSE in DB1, I need that.

    as for NULL values, I...

    _____________________________________________
    "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: help with query - am I going down the right path on this

    ... I want the values from both databases, return true

    What do you mean by this? Which values?

    Also, when you compare your data in the WHERE clause the way...

    _____________________________________________
    "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: Check Data While Inserting

    shohelr2003 (3/20/2013)


    CREATE TRIGGER [dbo].[Discount]

    ON [dbo].[Product]

    INSTEAD OF INSERT

    AS

    Declare @disc int;

    Declare @line int;

    Declare @pdid as varchar(10);

    BEGIN

    select @disc = i.DiscPercentage from inserted i

    select @line = i.LineNumber from inserted i

    select @pdid = i.ProdId from...

    _____________________________________________
    "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: Incrementing code to add code

    akberali67 (3/20/2013)


    Hi,

    I am trying to join the table to itself many times on a condition. Is there a way to automate number of joins based on count of something from...

    _____________________________________________
    "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: problem in select command

    Vedran Kesegic (3/20/2013)


    Moderator, please close this thread as nonconstructive.

    I tried with mad goat method, but it turns out it did not work 🙂

    More than that! It not only didn't work,...

    _____________________________________________
    "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: Custom sp_who

    datwungai (3/19/2013)


    What exactly are you afraid of?

    It's a former DBA that hates me because unlike him, I take my job seriously and won't give him sa permissions. He thinks...

    _____________________________________________
    "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: Check Data While Inserting

    ...

    I coded but it always checks LineNo1. Please help me to code whether I can check data that is greater than 18 in Discount Column against all the LineNo .

    ...

    Could...

    _____________________________________________
    "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 - 511 through 525 (of 2,894 total)