Forum Replies Created

Viewing 15 posts - 8,461 through 8,475 (of 13,469 total)

  • RE: Table Value Function

    mbender (11/3/2010)


    Also what is the difference between the IsNull and Coalesce?

    both provide the ability to substitute a null for a known value, but COALESCE is overloaded with a param array,...

  • RE: Field Causing SSRS to crash

    not enough info Laura; we'd really need the specific error that occurs to offer solid advice; what does "causes SSRS to shut down" mean to you? that that one report...

  • RE: format the number in indian currency format

    I saw you've been making the same request for a long time. I had shown you in another thread on the same issue an english number-to-words example that you could...

  • RE: UPDATE query from 2 SELECT statments

    you can use a CASE to decide which value to insert:(note you said update, but it's really an insert in your example)

    INSERT INTO dbo.myNewTable

    SELECT

    RTRIM(LTRIM('Art')),

    RTRIM(LTRIM('Incidents')),...

  • RE: master.dbo.xp_cmdshell Error

    LOOKUP_BI-756009 (11/2/2010)


    Thanks Lowell,

    It executed without any errors but nothing got copied over

    an important piece of this puzzle is the account the SQL service is running under. Even though YOU...

  • RE: master.dbo.xp_cmdshell Error

    don't declare one of the variables as varchar(max); use a defined size instead; no error occurs when you do this:

    declare @bak_source varchar(255), @bak_dest varchar(255), @xcopycmd varchar(1000)

    set @bak_source='"\\qa\d$\Full_2010.bak"'

    set @bak_dest='"\\dev\d$\Data"'

    set @xcopycmd='xcopy '+...

  • RE: 2 SELECT statements from one CTE

    eek! SeanLange beat me to the punch on this one! you got some payback on that one, way to go Sean.

  • RE: 2 SELECT statements from one CTE

    Nope; that's a limitation of a CTE; it can be used only for one statement.

    if you get rid of the pseudocode, and show us what you are actually doing, we...

  • RE: 2 SELECT statements from one CTE

    SeanLange (11/2/2010)


    Lowell beat me to the punch again. 😛

    lol happens way to often lately!

    type faster! i guess it's a race now.

  • RE: 2 SELECT statements from one CTE

    a CTE is available just for the next statement in the query, so if it really needed to exist twice, you'll need a temp table.

    You're not really doing anything that...

  • RE: How to average a date column?

    rather than the AVG, i think you want the MIN([Sch Start]) for the earliest, or the MAX(([Sch Start]) for the latest date.

  • RE: How to Copy the Client Database

    since you have a VPN, your machine is effectively on their network right?

    what you'll want to do is fairly straightforward, the process is the same as you would do locally.

    connect...

  • RE: Using functions on remote/Linked server

    --snip edited wrong answer!--

  • RE: Need expression in column alias

    Joe you cannot make the aliases for the columns dynamically(at least not directly) , so you have to revert to dynamic SQL to do it instead...building the command, then executing...

  • RE: SQL Server 2005 Express (Adv Series) Installation problems

    this happened to me as well; a partial install kept me from redoing or uninstalling.

    i googled "completely uninstall sql2005" and found this link at microsoft that gave the annoying...

Viewing 15 posts - 8,461 through 8,475 (of 13,469 total)