Forum Replies Created

Viewing 15 posts - 46 through 60 (of 201 total)

  • RE: String size exceeds than maximum allowed

    mageshh11 (7/8/2011)


    Hi,

    Using the sql server 2005 db mail provision to send mail.

    In this building the body text dynamically (looping through cursor to build string) and then assigning it the @body...

  • RE: T_SQL Performance Issue

    Hrmm interesting... you do know thats not the same link as the one that you have in your signature? ... though they address 2 different things... so nevermind....

  • RE: T_SQL Performance Issue

    Doubt the IN is the problem unless there are alot of values. But without having any information regarding datatypes/indexes and so on its more or less impossible to give a...

  • RE: The RECOMPILE Options

    Marry Krissmess (7/7/2011)


    As a developer I actually prefer to use stored procedures. If only SQLServer had a way to organize them in packages just like in Oracle so you wouldn't...

  • RE: Handle NULLs

    mister.magoo (7/6/2011)


    Hi,

    I didn't like all the RBAR so I had a go at a non-RBAR and came up with this.

    It is a bit hard to read because of the complexity...

  • RE: How to do this SQL

    Fraggle-805517 (7/6/2011)


    For this to work, you certain assumption would have to be made. Are you only dealing with ZipCodes that are numeric in nature? All US zip codes are...

  • RE: Application uses a value of the wrong type for the current operation.

    rmata_76 (7/3/2011)


    Hi Guys,

    I'm Randy and a newbie here so pardon if i have miss some other requirement to post my question in this forum.

    Here it goes, i'm supporting our legacy...

  • RE: Need to bring required result

    Could do this with a cross join. Though depends a bit on what you want for values in the S1, S2, S3 columns for the "fake" rows.

    Select case x.nr when...

  • RE: What happens to SQL Server when we shut down/Start Windows..?

    Perry Whittle (7/4/2011)


    and don't be tempted to hold the power button for 4 seconds neither, it'll take just as long otherwise when you restart 😉

    4s! Thats to slow... much faster...

  • RE: Select from 2 tables

    samiroko (7/4/2011)


    Ok BABA

    I will look it myself but i am not gonna mark your post as answered;-)

    FYI... there is no such function on these forums 😀

    /T

  • RE: Converting Rows to Columns

    revozex (7/4/2011)


    EmployeeCode, Name, BudgetCode1,BudgetCode2,BudgetCode3...BudgetCodeN

    The N part makes it harder.

    revozex (7/4/2011)


    Example:

    Employee Table:

    EmployeeId, EmployeeCode, Name, SSN, Gender

    1, CL7653, Paul, WT, M

    BudgetCode Table:

    BudgetCodeId, EmpId, BudgetCode, Percentage

    1, 1, US8765, 50

    1, 2, US8543, 50

    Desired Result:

    EmployeeCode,...

  • RE: Patch Week

    There is a HUGE difference between "few patches" and "safe". Just because there are so few patches doesnt mean alot when judging how safe a system is or how well...

  • RE: Find Last Day of the Month

    A quick search on this site and one could for instance find

    http://www.sqlservercentral.com/Forums/Topic777289-1291-1.aspx

    Scroll down to Lynn Pettis first post. I would recommend reading the whole post since there is also...

  • RE: Find Last Day of the Month

    f.marquis (5/10/2011)


    Another way to do this :

    1) Add 1 month

    2) Substract the day number of the previous result :

    DECLARE @mydate datetime='20080224'

    SELECT DATEADD(day, -DATEPART(day, @Mydate), DATEADD(MONTH, 1, @mydate))

    One problem with this...

  • RE: Restoring Editions

    Paul Randal (5/6/2011)


    tommyh (5/5/2011)


    What the **** was Microsoft thinking here... ah thats right they wherent thinking as usual... sigh.

    Great question though, definatly worth knowing.

    /T

    There's no choice but to have it...

Viewing 15 posts - 46 through 60 (of 201 total)