Viewing 15 posts - 421 through 435 (of 921 total)
So you've set 'auto create statistics' to on, so the statistics are being created on the fly as needed. You believe the auto-creation is slowing queries down when it...
November 21, 2003 at 3:07 pm
CREATE FUNCTION dbo.ListB(@Fid int)
RETURNS varchar(8000) BEGIN
DECLARE @List varchar(8000)
SELECT @List = ISNULL(@List + ',','') + Value
FROM B
WHERE FID = @Fid
ORDER BY RowID -- or Value? Can't tell...
November 21, 2003 at 2:38 pm
--Jonathan
Edited by - Jonathan on 11/21/2003 2:39:50 PM
November 21, 2003 at 2:37 pm
Backup the log and then use
ALTER DATABASE <dbname> REMOVE FILE <logical file name>
--Jonathan
November 21, 2003 at 11:03 am
Why not just run sp_createstats on the database after it's built? Statistics will not change unless the data changes, and this is a data warehouse so the data is...
November 21, 2003 at 10:47 am
With the same number of drives in each configuration, direct attached storage with separate controllers will perform better and cost less.
If this is a true read-only data warehouse,...
November 21, 2003 at 10:06 am
I now suspect you're writing about the logical file name. It's very confusing to have used logical names like "ABC_Data.mdf", so please forgive me for my assumption.
Use ALTER DATABASE...
November 21, 2003 at 8:56 am
Don't see a way to change that setting by default. You could log in as a user with circumscribed permissions in the target database.
--Jonathan
November 21, 2003 at 5:40 am
SET Col = STUFF(Col,CHARINDEX('-',Col)+2,CHARINDEX(' ',REVERSE(Col))-1,RIGHT(Col,CHARINDEX(' ',REVERSE(Col)))+1)
WHERE LEFT(Col,1) = 'F' AND ISNUMERIC(RIGHT(Col,1)) = 1
--Jonathan
November 21, 2003 at 5:25 am
The error is too severe to allow the batch to continue, so you are erroring out of the process before your error handling statements. Perhaps you could use something...
November 20, 2003 at 3:59 pm
Get the logical filenames by running
RESTORE FILELISTONLY FROM...
Then restore those logical files to new physical files, e.g.:
RESTORE DATABASE XYZ
FROM DISK = 'e:\mssql\backup\abc.bak'
WITH...
November 20, 2003 at 3:43 pm
What is in the error log after you get the 3201 error?
--Jonathan
November 20, 2003 at 3:32 pm
quote:
quote:
I've never seen an example where a UDF performs better than internal functions. ...
November 20, 2003 at 3:19 pm
quote:
Yes, that does the same thing. Mine has granularity out to the MS, but I haven't needed it. Yours is...
November 20, 2003 at 2:01 pm
quote:
I wanted something to call to set memory variables, instead of retyping the same code every time.I set it up...
November 20, 2003 at 1:31 pm
Viewing 15 posts - 421 through 435 (of 921 total)