Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: bcp Errors

    Got it. Someone had changed the Server. It is a dev box.

    the Production box is fine. All is well.

    Thank You Lowell!

    [font="Arial"]Thank You,
    [/font]
    [font="Comic Sans MS"]Charlie[/font]

    [font="Arial"]Charles Eaton[/font]

  • RE: bcp Errors

    No Sybase installed.

    [font="Arial"]Thank You,
    [/font]
    [font="Comic Sans MS"]Charlie[/font]

    [font="Arial"]Charles Eaton[/font]

  • RE: bcp Errors

    Thanks Lowell,

    I changed the query to read like this:

    DECLARE @Filename VARCHAR(100)

    DECLARE @SQL VARCHAR(4000)

    SET @Filename = 'C:\Event.xml'

    SET @SQL = 'EXEC AllEvents.dbo.USP_EventXML'

    SET @SQL= 'bcp "' + @SQL +'" queryout ' + @filename...

    [font="Arial"]Thank You,
    [/font]
    [font="Comic Sans MS"]Charlie[/font]

    [font="Arial"]Charles Eaton[/font]

  • RE: Get a Return Every Time.

    Thank You all for your comments. I will use your posted tips, and pitfalls to expand on my knowledge. This is a learning experience for me.

    [font="Arial"]Thank You,
    [/font]
    [font="Comic Sans MS"]Charlie[/font]

    [font="Arial"]Charles Eaton[/font]

  • RE: Dynamic Sql

    this way uses sp_executesql.

    use pubs

    GO

    declare @fnam varchar(20);

    declare @sqlstring nvarchar(4000);

    declare @Parm nvarchar(4000);

    set @sqlstring =

    N'SELECT fname,lname FROM pubs.dbo.employee WHERE fname= @empname';

    set @Parm = N'@empname varchar(20)';

    set @fnam...

    [font="Arial"]Thank You,
    [/font]
    [font="Comic Sans MS"]Charlie[/font]

    [font="Arial"]Charles Eaton[/font]

  • RE: Backup question..

    I use a slightly different approach in that I have the db's do a differential backup for 6 days and then a full backup on Sunday. That in combination with...

    [font="Arial"]Thank You,
    [/font]
    [font="Comic Sans MS"]Charlie[/font]

    [font="Arial"]Charles Eaton[/font]

  • RE: Updating values in one table from another table

    You could try a statement like this.

    Update tableA set

    zipcode = b.zipcode

    from

    tableB b

    Inner join

    tableA a

    ON

    b.zipcode = a.zipcode

    Where

    [Add reason for update condition here]

    [font="Arial"]Thank You,
    [/font]
    [font="Comic Sans MS"]Charlie[/font]

    [font="Arial"]Charles Eaton[/font]

Viewing 7 posts - 1 through 7 (of 7 total)