Forum Replies Created

Viewing 15 posts - 226 through 240 (of 2,894 total)

  • RE: Need SQL Query

    You need to create DDL triggers for that. Start from here:

    http://msdn.microsoft.com/en-us/library/ms190989(v=sql.105).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: WITH (NOLOCK), allows dirty reads.

    ben.brugman (8/1/2013)


    Eugene Elutin (8/1/2013)

    It's not just "allows" dirty read. It does exactly perform what is called "dirty reads"!

    For my understanding:

    1. Dirty reads is the reading of data which is not...

    _____________________________________________
    "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: Query execution time in Milisecond

    ...One way is to assign getdate() in datetime varibale before start of query execution and after the query execution complete and find the difference between both of them.

    The above will...

    _____________________________________________
    "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: WITH (NOLOCK), allows dirty reads.

    Does using the WITH (NOLOCK) hint in queries allow dirty reads?

    It's not just "allows" dirty read. It does exactly perform what is called "dirty reads"!

    _____________________________________________
    "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: Generate a day date according to existing month+year+daydiff

    What about if there is a two months difference between given Start and End and you want consiquent 8 days to generate?

    StartMonth,StratYear,EndMonth,EndYear,DaysBetween

    12 2008 2 2009 8

    It would be...

    _____________________________________________
    "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: sp_executesql MAXDOP

    ...

    exec sp_executesql N'select top 51 when 6 then @StatusCode1 when 1 then @StatusCode2 ORDER BY incident0.TicketNumber desc

    @StatusCode1=N'Canceled',@StatusCode2=N'In Progress'

    SQL you have posted will not compile as it's invalid - there...

    _____________________________________________
    "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: Global Variable

    Erland Sommarskog (7/31/2013)


    Eugene Elutin (7/31/2013)


    Do you mean Sybase? I have worked with SQL server since their rebranded version of Sybase. Some people might called them as they used to 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: Change query from sql 2000 to 2008

    smriti.subramanian (7/31/2013)


    thanks, but the query i had posted in sql 2000 returns 903 records. So i tried to add filters to ur query as below which returns 0 records.

    select *...

    _____________________________________________
    "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: Data import

    I can see that records of type 1 have something looking like ID: *9517469000*

    Basically you need this one in each related row.

    It should not take a lot of time...

    _____________________________________________
    "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: Data import

    I would like to create 6 staging tables to hold the different types but I'm not sure if it's best to load all the data into SQL first then split...

    _____________________________________________
    "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: Change query from sql 2000 to 2008

    Not very clear what your current query trying to do.

    From one prospective, using "=*" means you want to return all data from "right" table regardless if any corresponding record is...

    _____________________________________________
    "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: multiple records into single record

    Welcome to the forum!

    Before we can help you, you really need to read and follow these tips when posting questions:

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    _____________________________________________
    "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: Create sum closest to an integer

    Slightly modified Dwain code to return exactly what OP has asked:

    DECLARE @t TABLE (strcol CHAR(3));

    DECLARE @ValueOfInterest INT = 10;

    INSERT INTO @t (strcol)

    SELECT ' 5' UNION ALL SELECT ' ...

    _____________________________________________
    "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: Convert DATEDIFF to Decimal and Help with another DATEDIFF (Excluding weekends)

    Right now I have no time to prepare setup for your case. So if you could post DDL of tables involved with some sample data (as INSERT) and clearly defined...

    _____________________________________________
    "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: When NULL IS NOT NULL

    I agree with ChrisM@Work, that there is nothing in the query plan explaining such extravagant behaviour of these queries.

    From what I can see, it's only happens when you UNION...

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