Viewing 15 posts - 3,931 through 3,945 (of 5,588 total)
Rick Osgood-429286 (6/23/2010)
WHILE @@fetch_status != -1
So, two questions:
1) What is the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 23, 2010 at 7:49 am
Oleg, thanks for the explanation. Hugo, thanks for the links, especially for the data type precedence. Between the two of you'll, this is the explanation that the question should have...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 23, 2010 at 7:26 am
Maybe what is needed is to utilize a method that will allow you to programatically test all the permetations of a procedure. By saving this test, you will be able...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 22, 2010 at 10:06 am
I'd be interested in this also. I have a database that was kept in sql 2000 compatability mode, but I'd like to find out what needs to be modified so...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 22, 2010 at 9:19 am
You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to put...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 22, 2010 at 6:22 am
Lynn,
I appreciate your trying to explain the soccer rules to those of us not as directly involved as you are. You've helped me to understand it somewhat better, though I...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 5:25 pm
You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to put...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 2:44 pm
danny09 (6/21/2010)
Thanks for pointing about the indexes.. i do have indexing on the table. i tested your SQL and i see that it results the same inserted data...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 2:35 pm
Dan.Humphries (6/21/2010)
I know it is monday but I really feal dense....I get the exact results that you expect
Danny, I'm agreeing with Dan here. If you take the below code, you...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 2:29 pm
You can first strip the time from the date you are working with.
This works for me:
declare @mydate datetime
set @mydate = GETDATE()
SELECT DateAdd(day, -1, DATEADD(week, DATEDIFF(week,0,DATEADD(day, DateDiff(day,0,@mydate), 0)), 0))
Interesting issue. Too...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 2:16 pm
loki1049 (6/21/2010)
Now the issue: This doesn't seem to work with using the 'week' period.
DateDiff is counting the # of boundaries crossed. In the "datepart Boundaries" section, it implies that...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 2:06 pm
Dan,
Good job, and thanks for posting the data in a readily consumable format.
Edit: deleted code... didn't do the job.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 1:33 pm
Phunhog (6/21/2010)
Thank you SSC forums & LynnYou are indeed a SQL Jeddi Master Lynn
Yes, that he is!
The TVF function with cross apply works like lightning
I have never seen cross...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 1:00 pm
jeff.mason (6/21/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 12:52 pm
Steve Jones - Editor (6/21/2010)
However when it's a professional sport, and televised, it ought to be run more professionally. At that point it's not for the players.
I can definitely see...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 21, 2010 at 12:17 pm
Viewing 15 posts - 3,931 through 3,945 (of 5,588 total)