Viewing 15 posts - 436 through 450 (of 774 total)
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...
November 4, 2011 at 8:03 am
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'...
November 4, 2011 at 3:45 am
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]...
November 4, 2011 at 3:44 am
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?
November 3, 2011 at 8:44 am
I am sorry. It's in SQL Server 2000 not in 2005...
My mistake (the post is in the rong place) 🙁
November 3, 2011 at 8:41 am
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...
October 3, 2011 at 10:17 am
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...
October 3, 2011 at 10:11 am
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...
October 3, 2011 at 9:48 am
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
October 3, 2011 at 9:43 am
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...
October 3, 2011 at 9:29 am
Viewing 15 posts - 436 through 450 (of 774 total)