Viewing 15 posts - 4,741 through 4,755 (of 5,841 total)
Paul White (4/30/2009)
TheSQLGuru (4/30/2009)
...there is also the same issue of index scan/seek if you are using a function on a column in a where clause.
Unless you use the solution posted...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 30, 2009 at 3:52 pm
Goldie Graber (4/30/2009)
Amber.Brouillard (4/30/2009)
Hi Jeff,The dates I use do have a time with them (that is how SQL stores them) and dateadd(day, 1, date) still works fine.
Thanks!
Amber
If your dates have...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 30, 2009 at 1:04 pm
Ashish Pathak (4/30/2009)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 30, 2009 at 7:43 am
Alejandro Pelc (4/29/2009)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 29, 2009 at 10:53 am
You didn't give us nearly enough information to guide you here. If you want the highest inserts per second, simply have a heap table with NO indexes whatsoever. ...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 29, 2009 at 9:40 am
itamar (4/29/2009)
How about different kind of SQL compare tools, they work OK with dates?
when using comparison tools one is most often comparing the entire table anyway, so index scan/seek issues...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 29, 2009 at 8:54 am
rob.lobbe (4/28/2009)
TheSQLGuru (4/28/2009)
Again this code will break with new, more precise, datetime datatypes in SQL Server 2008.
Well if you change the code - ie the data type - of course...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 29, 2009 at 8:53 am
craig.lovegren (4/28/2009)
rob.lobbe (4/28/2009)
declare
@date datetime,
@today datetime,
@tonight datetime
select
@date = getdate(),
@today = convert(datetime,convert(int,@date)),--use smallint for smalldatetime
...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 28, 2009 at 9:20 pm
Josie (4/28/2009)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 28, 2009 at 12:44 pm
Kurt W. Zimmerman (4/28/2009)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 28, 2009 at 8:20 am
Dallas Martin (4/28/2009)
SQL SVR may have to perform a full table scan. Not exactly what one
desires in a...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 28, 2009 at 7:45 am
A very minor point for Number/Tally tables is to create the clustered index after population and to specify 100% fill factor. This will ensure minimal IO for subsequent use....
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 22, 2009 at 2:30 pm
What an absolutely amazing thread this is! Well done to all involved. I have learned a good bit, and have some new tools in my bag of tricks!...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 21, 2009 at 9:52 am
su5y (4/20/2009)
--------------------------------------------------------------------------------
what do you mean regards to statistics? We are looking at the paging file this morning which is currently on the c drive which may not be big...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 20, 2009 at 12:30 pm
Great minds think alike! 😎
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 20, 2009 at 10:16 am
Viewing 15 posts - 4,741 through 4,755 (of 5,841 total)