Forum Replies Created

Viewing 15 posts - 781 through 795 (of 14,953 total)

  • RE: Intresting Question need answer ASAP

    Well, without using any arabic numerals, you could also do:

    SELECT PI()/PI();

    But those are "numbers", without being "digits", so it's probably not acceptable.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Strange taht I cannot connect to localhost but can connect to remote one.

    What name/address are you using in the connection string? "localhost" or "(local)" or "SQL 2012" or something else?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: T-SQL Help Needed

    CELKO (9/20/2012)


    don't think you'll scare him. Maybe offend, but not scare. He comes across as one of those borderline sociopathy cases that have very thin skin, but assume everyone...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Intresting Question need answer ASAP

    vax09 (9/20/2012)


    For this query

    SELECT CAST(634 AS VARCHAR(2))

    why it display * in result

    String truncation.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Please help connecting to SQL !

    Is it on a different network, or different subnet? Try pinging the IP address you are using, from the server that can't connect. See if you get a...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Can anyone answer for this Question

    All the data on how mirroring works in SQL Server can be found here: http://msdn.microsoft.com/en-us/library/ms189852.aspx

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: How SQL Server recognise if u run full backup

    There are tables in msdb that record what backups were done, where to (disk path, tape location, network path), what type, when they were done, and what was backed up.

    Details...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Continuous absent query

    I use a calendar table for that kind of thing.

    Create a table of all dates for the year (or decade, whatever length seems appropriate). Mark the ones that are...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Perhaps a "stairway" to data entry?

    SQL Server Central has a "cousin-site" (not quite as close as a sister site, but still pretty close) at http://www.simple-talk.com. Both sites are owned by RedGate. Simple-Talk has...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Please help connecting to SQL !

    Do you get an error message when you try to connect?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Is there a way to view what is actually in a non-clustered index?

    I've been using the book metaphore for over a decade, and it works so long as you actually have a book to show them with. I run into people...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Static way to get last day of the month from the past quarter

    Not sure what you mean by "static" vs "hard coded".

    I use nested DateAdd and DateDiff functions to get last and first days of various time periods. For example, find...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Quick Interview question... I don't know if i got it right or wrong....

    Of course, another possibility is that it wasn't an interview question at all. Possible that the manager who asked it was hoping for some free consulting from you, and...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: MERGE vs IF EXISTS with INSERT UPDATE

    dwain.c (9/20/2012)


    GSquared (9/19/2012)


    Phil Parkin (9/19/2012)


    One thing which I have noticed with MERGE is that it does not natively provide separate Updated/Inserted/Deleted counts.

    You need to code an OUTPUT clause and use...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: MERGE vs IF EXISTS with INSERT UPDATE

    Phil Parkin (9/19/2012)


    One thing which I have noticed with MERGE is that it does not natively provide separate Updated/Inserted/Deleted counts.

    You need to code an OUTPUT clause and use $Action to...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 781 through 795 (of 14,953 total)