Viewing 15 posts - 166 through 180 (of 368 total)
No, you do not want to overwrite anything, especially not previous backup before the new one is finished successfully.
It is a very strange requirement to hold a backup just one...
November 24, 2012 at 7:23 pm
It's better to write a function, even better a table-valued inline function, and even better a view:
CREATE VIEW view_a as
SELECT a.email, a.membershipexpiry,
Expired = CASE WHEN a.membershipexpiry < GETDATE() THEN 1...
November 24, 2012 at 7:15 pm
It indeed scans myindex for no obvious reason, except to make a query a bit slower (bug in optimizer?).
However, this:
set statistics io on
update mytable set max_length = 88 -- 789...
November 24, 2012 at 7:03 pm
Indeed, you are making a crucial mistake by not using appropriate datatypes.
The penalty you give yourself is tons of problems you will experience now and in the future, and even...
November 24, 2012 at 6:29 pm
Try executing the whole statement at destination db:
EXEC('MERGE ...') AT MYDBLINKNAME
What is remote server? Sql server, oracle or something else?
November 24, 2012 at 6:08 pm
It updates (sets) variables to null.
November 19, 2012 at 6:38 am
alex_zilberman (11/19/2012)
Is this will not truncate the log and if it do , what statement will do work that I need?
No, backup will not truncate the log, nor it will...
November 19, 2012 at 2:16 am
Log truncation does not shrink the file size, it just marks the parts of the log file free for reuse. You have to explicitly shrink the log file. Don't shrink...
November 19, 2012 at 2:05 am
Are there other applications/sql instances on the server ? 8.5GB is too low if your instance is alone on the server.
Min server memory is not so important to set, especially...
November 19, 2012 at 12:28 am
Your @title is null (not set), hence function is returning NULL. Why quirky update? It is probably the last thing I would do.
November 19, 2012 at 12:22 am
Why, what are you trying to achieve?
Full and differential backup does not truncate transaction log, it is (almost) independent. Transaction log backup command can truncate transaction log, and usually is...
November 19, 2012 at 12:17 am
Search for sp_whoisactive
November 17, 2012 at 3:12 am
Search for "running total" on this site. In sql 2012 it is trivial with OVER() clause, but in sql 2008 or before you will have to use a self-join.
Always give...
November 17, 2012 at 3:10 am
Exactly what error it is throwing ?
Without a test case or at least error message I can give you only a rough guess:
"Table is cleared..."
Data change from execution to execution,...
November 5, 2012 at 6:24 pm
Use STR function. E.g:
declare @x money=12345.69851
SELECT [STR]=STR(@x, 20, 2), [CONVERT_default]=CONVERT(varchar(20), @x), [CONVERT_format_1]=CONVERT(varchar(20), @x, 1), [CONVERT_format_2]=CONVERT(varchar(20), @x, 2)
November 5, 2012 at 6:09 pm
Viewing 15 posts - 166 through 180 (of 368 total)