Viewing 15 posts - 61 through 75 (of 77 total)
another trick is that if you can get the data into excel, then you can add a additional calculated column for generating an insert statement
for example
= "insert into xxxx (col1,...
December 23, 2008 at 6:08 pm
I had a similar problem once and I had to change a setting (I think it was the instance name) in the following config file
C:\Program Files\Microsoft SQL Server\90\DTS\Binn\MsDtsSrvr.ini.xml
David
December 17, 2008 at 10:37 am
If the stored procedure doesn't already exist then you will need to change the alter to a create at the top of the script.
Also, the select statement at the end...
December 12, 2008 at 5:55 pm
It looks like the global variable link just uses a custom table anyway.
David
December 11, 2008 at 4:27 am
My attempt at using the pivot command is as follows...
select ufi_id,class,type, [CONSTCONTR], [CONSTDATE]
from
(select * from wastewater) w
PIVOT
( max(attribute_value)
FOR attribute_desc IN
([CONSTCONTR],[CONSTDATE])
) as PVT
ORDER BY ufi_id
December 8, 2008 at 12:40 pm
I think personally I would convert the sql in the jobs into stored procedures.
Another option is to hold an override date in the registry and then use the...
December 8, 2008 at 12:05 pm
If your jobs just call a stored procedure to do it's work then you could add a parameter to the procedure which is the "rundate". If the parameter isn't...
December 5, 2008 at 8:24 am
Thanks for the reply.
Out of interest, what is a good indicator that the statistics are out of date? Is it just that the estimated row counts are very wrong...
December 4, 2008 at 8:02 am
On the primary server we have the following set up
A folder called c:\sql\shipping_out which is then shared as shipping_out.
Does SQLServer have access to your c:\Backup folder?
David
November 25, 2008 at 4:19 pm
I had a quick attempt by creating two additional tables, one holding a set of weeks, and another a set of numbers.
create table #weeks
( startdatedatetimenot null
)
insert into #weeks
select...
November 21, 2008 at 5:40 pm
Fixed my own problem. It turns out to be nothing to do with sql.
Compiled regular expressions are very slow on 64bit.
http://www.bokebb.com/dev/english/1939/posts/193912680.shtml
the solution is to remove the...
November 7, 2008 at 10:35 am
Does this help?
WHERE
vs.CityTypeCode <> 'p'
AND
vs.ZipCode = 01062
David
September 12, 2008 at 8:53 am
Does using table aliases make any difference? (I know it shouldn't...)
select count(*) from import_cc_requests r where r.reference not in (select reference r2 from import_cc_payments r2 )
September 11, 2008 at 7:03 am
Could you add a space and ( to the where clause.
Something like
not like 'C# (%' and not like '%,C# (%'
August 1, 2008 at 4:32 am
Viewing 15 posts - 61 through 75 (of 77 total)