Viewing 15 posts - 26,416 through 26,430 (of 26,484 total)
Not too sure from your sql command, but I would guess you are appending your differential backups to the same file. This will cause your differential backup file to grow...
August 18, 2006 at 8:35 am
It means that enterpriselistid must unique in every row. Sounds like you are trying to insert a new row with an enterpriselistid that already exists in the database.
hth
August 16, 2006 at 11:48 am
try this
declare @vchar vchar(20)
set @vchar = '1458.00'
select cast(substring(@vchar, 1, patindex('%.%', @vchar) - 1) as int)
hth ![]()
August 16, 2006 at 9:25 am
I come up with 1152 characters in your option string.
![]()
August 15, 2006 at 3:55 pm
First, you can have a multiline constant, try this and see:
declare @options nvarchar(4000)
set
@options='replace,
move ''CorpProd_Data1'' to ''F:\MSSQL\Data\Corporate_User_Testing\Corporate_User_Testing_Primary.mdf'',
move ''CorpProd_Data2'' to ''F:\MSSQL\Data\Corporate_User_Testing\Corporate_User_Testing_Data1.ndf'',
move ''CorpProd_Data3'' to ''F:\MSSQL\Data\Corporate_User_Testing\Corporate_User_Testing_Data2.ndf'',
move ''CorpProd_Data4'' to ''F:\MSSQL\Data\Corporate_User_Testing\Corporate_User_Testing_Data3.ndf'',...
August 15, 2006 at 3:21 pm
Careful with my code above, I just noticed the inner on the inner join typed twice!
August 15, 2006 at 3:07 pm
Reformatted your code and found what I think is the problem inthe subquery at the end. Check it out:
select
p.vendor_code,
p.vendor_name,
p.vendor_addr_l1,
p.vendor_addr_l2,
p.vendor_addr_l3,
p.vendor_addr_l4,
p.vendor_addr_l5,
p.vendor_addr_l6,
p.vendor_addr_l7,
p.vendor_addr_l8,
p.vendor_phone,
...
August 15, 2006 at 3:06 pm
True. But that also depends on the actual query and what is wanted. We only see two columns in the query on-line, but what if they wanted to most recent...
August 15, 2006 at 1:27 pm
I have had this problem with maintenance plans when I have gone in to modify them. I found I usually had to delete the problem plan and recreate it from...
August 15, 2006 at 1:22 pm
Or you could do this:
select
cust.custID,
cust.CustName
from
dbo.customer cust
inner join dbo.payment pay
on (cust.CustID = pay.CustID)
where
pay.DatePayment > '2004-08-01'
and (cust.CustID like '10%' or cust.CustID like '20%')
and pay.DatePayment...
August 15, 2006 at 1:16 pm
Not sure which alias to use for column disposition, but try moving "disposition in ('ER''ER/CF','WD/ER') into the join statement.
hth,
Lynn ![]()
August 14, 2006 at 2:56 pm
The transaction log file is only truncated by a transaction log backup. When SQL Server truncates the log file (and it may not shrink the actual size of the file),...
August 14, 2006 at 2:20 pm
Yes you can. Only one of them can be installed as the default instance. The other has to be installed as a named instance.
hth ![]()