Forum Replies Created

Viewing 15 posts - 2,311 through 2,325 (of 14,953 total)

  • RE: Is there a quick and dirty way to format varchar(max) SQL Server output into HTML without using Reporting Services?

    I've been using For XML to put SQL query results into HTML pretty successfully for a few years.

    Looks basically like this:

    IF OBJECT_ID(N'tempdb..#T') IS NOT NULL

    DROP...

    - 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: Coding More Carefully

    I don't see it as a bad thing that coders can have blind-spots handled for them by the tools.

    Seems kind of like thinking microwaves are bad because people used 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

  • RE: Logon Triggers. A good idea? Or a nerve-racking exprience?

    henriettewhite (1/12/2012)


    Thank you! These sound both like very good ideas and certainly less problematic if something goes wrong. I have no experience with Event Notification 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: Are the posted questions getting worse?

    Bex (1/12/2012)


    Grant Fritchey (1/12/2012)


    GilaMonster (1/12/2012)


    Evil Kraig F (1/11/2012)


    GilaMonster (1/11/2012)


    Errrrr... Someone(s) want to tackle this? http://www.sqlservercentral.com/Forums/Topic1234441-61-1.aspx

    Already responded. I'm waiting to see his answer before continuing.

    I just had a look over...

    - 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: Question for the "experts"

    DeanORenO (1/11/2012)


    you people on this forum are always complaining about the questions that are asked on the forums, either you complain that they are too simple, and that the poster...

    - 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: Logon Triggers. A good idea? Or a nerve-racking exprience?

    I use a trace that captures event ID 14. Server-side traces are low-impact, easy to manage, et al. Takes an on-startup proc in master to make sure it...

    - 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: Need to audit update without cursor

    drew.allen (1/9/2012)


    GSquared (1/9/2012)


    Audit logging doesn't need to use the "inserted" data. You already have that in the table you just updated. Logging it just increases the size of...

    - 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: Selecting TOP PERCENT based on GROUP ?

    SQL_By_Chance (1/10/2012)


    G,

    your query has 2 input tables but if you check CTE it is taking input from the same table.

    On the first thought, I too thought of using 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: How do I get the table definition ?

    Leela Krishna (1/10/2012)


    You can also use INFORMATION_SCHEMA.COLUMNS to get table structure.

    Does that include indexes, constraints, triggers, and extended properties (for the table and the columns)? How about dependencies? ...

    - 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 to process multi select parameters using a stored procedure

    DeanORenO (1/9/2012)


    do you think the words "concatenate" or "multi select" are too hard for people to understand?

    I was going to try to help you, but if you're just going 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

  • RE: Selecting TOP PERCENT based on GROUP ?

    The problem with that one is that, when you go back to read it a year from now, it won't be clear what it's doing and how. You can...

    - 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: Auditing Stored Procedure calls

    Yep. Glad you worked it out. Happy to be able to help.

    - 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 to process multi select parameters using a stored procedure

    I must be missing something. Passing parameters from SSRS to SQL procedures is usually very, very simple. You define them in the query.

    As for multi-value parameters, I like...

    - 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: Are the posted questions getting worse?

    Watch out, ASCIIbetical sorting can get tricky! Even without ASCII null-character codes in the string.

    - 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: Need to audit update without cursor

    Audit logging doesn't need to use the "inserted" data. You already have that in the table you just updated. Logging it just increases the size of the log...

    - 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 - 2,311 through 2,325 (of 14,953 total)