Forum Replies Created

Viewing 15 posts - 13,966 through 13,980 (of 14,953 total)

  • RE: data encryption for SQL 2005

    Books Online has data on how to do this. Search for "encryption", and it will give you a How-To article on the subject. It tells how to set...

    - 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: Column Level Synonym

    Do you mean something like:

    select Col1 as Name

    from dbo.Table1

    Or do you mean an actual synonym? As in:

    create synonym Name for dbo.Table1.Col1

    If so, then no, that syntax doesn't do what...

    - 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: Provider Load Error in Reporting Services

    Glad you got it working. Well done.

    - 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: All Data Readers Are Evil

    Because of the ease of SQL injection, data corruption, user-error (whether that user is a dev or an end-user), et al, ad naseum, ad infinitum, I operate on the principle...

    - 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: Usage of Functions in Stored Procedures

    d_sysuk (4/29/2008)


    There is a big difference in writing :

    >> Unoptimsed SP method for lookup using local var

    create procedure mysum (@myid int)

    as

    declare @myint int

    set @myint= @myid

    select x,y,z from mytable

    where mylookupfilter...

    - 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: Date Addition

    Yep.

    If you have a lot of rows being run at once, or if it's a lot of counts, you might be better off using a temp table than 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: Set trigger firing order

    Keep in mind that the question, as asked, is possible. There are details that might make it impossible, but they aren't in the scope of the question.

    As far as...

    - 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: Grandchildren example?

    It's a standard hierarchy situation.

    There are two basic ways to store and query those: Adjacency, and Nested Sets.

    Adjacency is better at dealing with data that changes a lot. Nested...

    - 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 easily calculate the number of years between two dates.

    Jeff's function will most likely do what you need, but keep in mind that calculations of age for "Leaplings" (people born on 29 Feb) can be problematic.

    It's not a problem...

    - 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: Usage of Functions in Stored Procedures

    I came up with a different plan from yours for "best solution":

    set nocount on

    go

    CREATE TABLE CaseDetails

    (CaseId INT IDENTITY(1,1) primary key,

    QTY NUMERIC(14,4),

    weightedQty NUMERIC(14,4),

    ShipmentId INT,

    Total as Qty + WeightedQty)

    go

    raiserror('First...

    - 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: When DTS is opened I cannot edit SQL 2005 Query Analyzer

    The only suggestion I have is convert from DTS to SSIS, but that's not a very helpful suggestion. Sorry I can't help on this one. Don't know what...

    - 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: Date Addition

    Sorry, Art. Didn't read the second sentence where you answered me about the Union vs Join.

    What you want to do is Join them.

    Turn both in derived tables (I recommend...

    - 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: Primary key vs NOT NULL unique key..

    ALZDBA (4/28/2008)


    GSquared (4/28/2008)


    just so long as only one of them is clustered.

    It is not mandatory to have a clustering index, but I'd advise to always have one.

    My point was meant...

    - 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 create one XML file for one employee having multiple records in table..

    Shalini, please start a separate thread for that.

    - 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: Date Addition

    In that case, just add a Union All between the two queries, as written. I'd recommend adding a Category or Type column to each, so that you can tell...

    - 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 - 13,966 through 13,980 (of 14,953 total)