Viewing 15 posts - 16 through 30 (of 86 total)
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
March 3, 2017 at 9:53 am
Since you're using 2014, use THROW instead of RAISERROR:
BEGIN TRY
RESTORE DATABASE TestRestore
FROM DISK = 'SomeCorrectPath'
WITH RECOVERY,
MOVE 'WrongDataName' TO 'D:\SQL2014\Data\TEMPCOPY.mdf',
MOVE 'WrongLogFile' TO 'E:\SQL2014\Logs\TEMPCOPY.ldf';
END TRY
BEGIN CATCH
THROW;
END CATCH;
The downside of this approach is...
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
July 29, 2016 at 1:13 pm
souLTower (1/23/2013)
I get completely different execution plans between fldValue=123 and fldValue IN (select value from tempTable). ...
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 23, 2013 at 9:01 am
souLTower (1/23/2013)
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 23, 2013 at 6:56 am
Sean Lange (1/11/2013)
Roland Alexander STL (1/11/2013)
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 11, 2013 at 1:20 pm
Sean Lange (1/11/2013)
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 11, 2013 at 1:03 pm
I believe that SELECT...INTO results in less impact on the transaction log. Also, if there are differences in collation between the db you're in and tempdb, SELECT...INTO will create a...
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 11, 2013 at 12:38 pm
dave harris 45446 (1/9/2013)
Can anyone advise please, I have a TSQL 2008r2 headache...
I'm calculating the geo distance between a previous geo point and current geo point.
The code below,...
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 9, 2013 at 9:17 am
hogpen (1/4/2013)
GRANT ALTER ON [EdwStaging].[RAW].[DimUnitOfMeasure...] TO [SSISExecuter]
GO
I was told by a coworker to use that because the job runs through a service account that has table specific access,...
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 4, 2013 at 9:16 am
hogpen (1/4/2013)
The error from the log...
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 4, 2013 at 6:43 am
twahl0630 (1/3/2013)
need to find a faster way to do this select into I'm using or ststatementso filter on multiple columns
any ideas
select m.RecordId,m.NumberForSearch into #dump
from table1...
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 3, 2013 at 1:45 pm
Well, it's not printing anything because @totalrecs is NULL when you concatentate it, and NULL concatenated with anything else yields NULL. You will need to assign @totalrecs a value. Why...
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
January 2, 2013 at 10:40 am
Nicely done, Phil, thanks!
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
December 31, 2012 at 7:28 am
That code wasn't quite right:
UPDATE
dbo.Table1
SET
Name1 = CASE
...
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
December 31, 2012 at 6:46 am
azhar.iqbal499 (12/31/2012)
Roland Alexander
The Monday Morning DBA
There are two means of refuge from the miseries of life: music and cats. ~ Albert Schweitzer
December 31, 2012 at 6:24 am
Viewing 15 posts - 16 through 30 (of 86 total)