Forum Replies Created

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

  • RE: CONVERT parameter in SP?

    I figured it out... I feel silly....

    I didn't declare my @so_wr_dt parameter as a datetime.

    It works now!

  • RE: If NULL do not select

    PurpleLady (3/30/2011)


    CR & LF will not show in Query Analyzer (I've had to do some fancy footwork to remove CR & LF from my data), but if you print...

  • RE: If NULL do not select

    GSquared (3/29/2011)


    Try this instead:

    ship_to_addr1 +'

    ' + ship_to_addr2

    Still on the same line...

    I may just keep it that way, although I really would like it to be on a new line....

  • RE: If NULL do not select

    I tried running the query in Text mode and it looks like it is on the same line there as well...

  • RE: If NULL do not select

    GSquared (3/28/2011)


    It's usually better to handle that kind of formatting in the application/presentation layer, but if you have to do it in the query, it can look like this:

    coalesce(

    ship_to_addr1 +...

  • RE: CASE statement to only show one day of the week

    WayneS (3/11/2011)


    donato1026 (3/11/2011)


    opc.three (3/11/2011)


    Please post DDL and some DML to create test data for your tables:

    asap_email_listTrain

    TRAIN..SALES.DEL

    TRAIN..MISC.ZIP2ZONE

    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

    Sorry, but I won't be able to do that. This can be used on any...

  • RE: CASE statement to only show one day of the week

    opc.three (3/11/2011)


    Please post DDL and some DML to create test data for your tables:

    asap_email_listTrain

    TRAIN..SALES.DEL

    TRAIN..MISC.ZIP2ZONE

    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

    Sorry, but I won't be able to do that. This can be used on any database ....

  • RE: UPDATE table using OPENQUERY

    Anyone?

  • RE: Send Email using OPEN QUERY

    Thanks, Dan. . . But it's still not working, even with Lowells code. . .

    OLE DB provider "SQLNCLI" for linked server "06websql\websql" returned message "Deferred prepare could not be completed.".

    Msg...

  • RE: Send Email using OPEN QUERY

    Thanks, Dan. However, this is not working either. . . I am receiving the following:

    Msg 102, Level 15, State 1, Line 1

    Incorrect syntax near 'SET FMTONLY OFF; EXEC (declare...

  • RE: Send Email using OPEN QUERY

    Thanks, Lowell, but it's not working. . .

    I'm getting this:

    OLE DB provider "SQLNCLI" for linked server "06WEBSQL\WEBSQL" returned message "Deferred prepare could not be completed.".

    Msg 8180, Level 16, State 1,...

  • RE: Synonym with servername\instancename

    🙂

  • RE: Synonym with servername\instancename

    Gianluca Sartori (6/16/2010)


    I think you confused server and database. Does this work?

    CREATE SYNONYM [dbo].[Product] FOR [06WEBSQL\WEBSQL].[06dw].[dbo].[Product]

    This worked! Thank you!

    I was about to throw my desk through the wall. . .

  • RE: Simple Update using three tables. . .

    Lowell (5/20/2010)


    Donato this is how i usually update a table from multiple sources...note the commented SELECT statement so i can run the bottom portion to test before and after:

    SET XACT_ABORT...

  • RE: Check NOT EXISTS against two tables

    Never mind. . . I got it to work. I was using servername.dbo.table name - rather than databasename.dbo.tablename. It works now!

    Now. . . Is there any way to have it...

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