Forum Replies Created

Viewing 15 posts - 436 through 450 (of 774 total)

  • RE: Full backup job problem

    One more question if you do not mind....

    I have a Dell Server which as one SQL Server 2000 instance and three SQl Server 2005 named instances.

    The OS is W2k3 32bits.

    I...

  • RE: Full backup job problem

    Yap, problem solved.

    Thank you

  • RE: Full backup job problem

    Job Code:

    declare @NumRF as varchar(10)

    declare @unc as varchar(500)

    declare @srvname as varchar (100)

    declare @date as varchar(25)

    Declare @Nome as varchar(50)

    DECLARE Backups CURSOR FOR

    SELECT name from sys.databases where name <> 'tempdb'...

  • RE: Full backup job problem

    If i try to make backup to other databases that are not the system databases, the same error happens:

    Executed as user: dbo. ...B', file 'DTBaseNET_Data' on file 1. [SQLSTATE 01000]...

  • RE: Verify if column exists

    Thank you very much guys

  • RE: Verify if column exists

    In SQL server 2000 i can do like this:

    if not exists (select * from syscolumns where name ='dt_cadastramento')

    begin

    alter statement here

    end

    correct?

  • RE: Verify if column exists

    I am sorry. It's in SQL Server 2000 not in 2005...

    My mistake (the post is in the rong place) 🙁

  • RE: Script that saves results to .txt file or .sql file

    I try with BCP and the same happens (errors):

    declare @teste varchar(8000)

    set @teste =(

    select min ('insert into temporaria values ('''+ convert(varchar,a.datah,120)) + ''',', ''''+b.rgc+''') GO'

    from

    (select datah,codctb from h_contribuintesest...

  • RE: Script that saves results to .txt file or .sql file

    Because i want to generate a file like this:

    Insert into ....... values () GO

    Insert into ........ values () GO

    And when i try to execute this query from inside the bulk...

  • RE: Script that saves results to .txt file or .sql file

    This is my code (it runs well):

    select min ('insert into temporaria values ('''+ convert(varchar,a.datah,120)) + ''',', ''''+b.rgc+''') GO'

    from

    (select datah,codctb from h_contribuintesest

    union

    select datah,codctb from h_contribuinteInst

    union

    select datah,codctb...

  • RE: Script that saves results to .txt file or .sql file

    The problem is not with the query...

    If i execute the query, it runs well.

    The problem is when o try to save the results to a txt file

  • RE: Script that saves results to .txt file or .sql file

    I am trying like this:

    use sgct

    declare @var1 as varchar(8000)

    set @var1 = (

    select min ('insert into temporaria values ('''+ convert(varchar,a.datah,120)) + ''',', ''''+b.rgc+''') GO'

    from

    (select datah,codctb from h_contribuintesest

    union...

  • RE: Query

    what about numbers?

    I don't want that names having number appear in the query results pan.

    i.e - Pedro2

    Pedro

    Only want Pedro

  • RE: Query

    WHERE ColumnName LIKE '% %' is another;

    Thank you

  • RE: T-SQL - View

    Thank you very much for the help.

Viewing 15 posts - 436 through 450 (of 774 total)