Viewing 15 posts - 361 through 375 (of 5,588 total)
Internally, a datetime is a numeric. That's why you can do a "SELECT GETDATE() -1".
If you are always looking for a month, then check out the "Date/Time routines" link in...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 28, 2015 at 1:13 pm
SQLRNNR (7/28/2015)
Brandie Tarvin (7/28/2015)
Careful, guys. Gail-baiting is a sure way to encourage the use of katanas.
Those are used for cutting steak right?
Or are they the spindle-y things that they stack...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 28, 2015 at 9:33 am
Brandie Tarvin (7/28/2015)
Careful, guys. Gail-baiting is a sure way to encourage the use of katanas.
Well, we'll just have to take her out to dinner then.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 28, 2015 at 9:28 am
sqlguy-736318 (7/27/2015)
declare @FieldVal int
while (select count(*) from @MyTempTable) > 0
begin
select top 1 @FieldVal = FieldVal from...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 27, 2015 at 5:43 pm
sqlguy-736318 (7/27/2015)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 27, 2015 at 5:40 pm
brody.rathman (7/27/2015)
id ...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 27, 2015 at 5:36 pm
SQLRNNR (7/27/2015)
It shows that the first vlf is 8kb and the second vlf is ~1090mb. This is not normal.
Second piece of wonky is...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 27, 2015 at 3:13 pm
So...
If I were to say that one of Gail's answers wasn't, well, entirely accurate... do you think this would get her out to Summit this year to whoop on me...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 27, 2015 at 11:34 am
ScottPletcher (7/27/2015)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 27, 2015 at 11:11 am
shezi (7/27/2015)
This works great but when there is null value in any of the fields then the checking fails and keep inserting duplicate rows. Please advise
Did you try the solution...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 27, 2015 at 10:56 am
karthik82.vk (7/25/2015)
The table...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 27, 2015 at 10:39 am
jasona.work (7/27/2015)
And I just realized that until we get a TLog backup, it's in "pseudo simple" mode, ain't it...
Pseudo-simple is a new database in the full recovery model that hasn't...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 27, 2015 at 8:51 am
shezi (7/24/2015)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 24, 2015 at 9:15 am
That's going to be a bit more difficult. For one thing, there isn't a row being returned for these machines for that year in that subquery... the NOT IN ensures...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 23, 2015 at 8:29 pm
Luis Cazares (7/23/2015)
SELECT EMP.ID,
EMP.NAME,
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 23, 2015 at 2:02 pm
Viewing 15 posts - 361 through 375 (of 5,588 total)