Viewing 15 posts - 121 through 135 (of 14,952 total)
TheRedneckDBA (3/19/2016)
March 20, 2016 at 7:58 am
As a manager for a database development team, I get falsified resumes and CVs all the time. I had to tech-screen over 30 people to fill three positions less...
March 19, 2016 at 9:05 pm
I use schemas frequently.
For example, in a current ETL database, I have core functionality for all files that will be imported into the database, and then there are peripheral objects...
November 13, 2015 at 4:17 pm
Simplest solution I can come up with:
SELECT
SaleID,
CustID,
SalesRepID,
SaleDate,
case when exists
(select 1
from #Sales as Sales2
where Sales2.CustID = Sales1.CustID
and Sales2.SaleDate > dateadd(day, -1, Sales1.SaleDate)
and Sales2.SaleDate < Sales1.SaleDate
and Sales2.SaleID...
May 21, 2014 at 8:06 am
I had to fix the XML by adding the necessary end tags for "set","TomAgingAlertProperties", and "properties", since those were missing from the second set of values. Judging from the...
May 21, 2014 at 7:57 am
You'll need to do it with dynamic SQL, in that case. Pretty easy to select the column names from sys.columns and go from there.
May 21, 2013 at 2:05 pm
USE ProofOfConcept;
GO
CREATE TABLE dbo.T1
(ID INT IDENTITY
PRIMARY KEY,
Col1 CHAR(1) NOT...
May 21, 2013 at 1:11 pm
Jeff Moden (5/21/2013)
Lowell (5/21/2013)
May 21, 2013 at 1:06 pm
TC-416047 (1/11/2013)
Thank you for the link. That helps alot.
The /*...*/ was put in by me because I copied that code out of a SQL trace file and did not have...
January 16, 2013 at 6:50 pm
arnipetursson (1/15/2013)
Again, if i have a substantial amount of data in the table variable input parameter,
I immediately...
January 16, 2013 at 6:49 pm
Snargables (1/16/2013)
January 16, 2013 at 6:46 pm
Ed Wagner (1/16/2013)
January 16, 2013 at 6:38 pm
The Replace() version is better than the Case version. But you should still seriously consider moving that kind of thing to the presentation layer of the application.
January 16, 2013 at 6:36 pm
It depends on the exact results you want.
One way to do that is to join the two tables:
select *
from dbo.MyTable1 as T1
inner join dbo.MyTable2 as T2
on T2.DateColumn between T1.DateColumn1 and...
January 16, 2013 at 1:34 pm
There are some very solid, and pretty intuitive, ways to speed up Merge.
For my cross-server ETL, I set up a bulk-copy database that just copies the source tables from the...
January 16, 2013 at 1:17 pm
Viewing 15 posts - 121 through 135 (of 14,952 total)