Viewing 15 posts - 3,196 through 3,210 (of 5,588 total)
brian_winzeler (9/15/2010)
Msg 8155, Level 16, State 2, Line 23
No column was specified for column 1 of 'drvU'.
Msg 8155, Level...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 10:43 am
-- See how this starts off with a table and data in it?
-- If you had provided us the data in this format,
-- it would have made things easier...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 10:25 am
What is the datatype of the bodyTextTable.bodyText column?
Edit: Is there supposed to be a difference between the two update statements?
Edit2: is the '%' actually in the data, or are you...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 10:02 am
duplicate post.
Do not post replies to this thread.
Use this thread to post all replies.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 9:59 am
Magy (9/15/2010)
I also just tried doing ORDER BY pageDate, but that generated an error:"Conversion failed when converting date and/or time from character string"
Are you sure that pageDate is a DateTime...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 9:42 am
Use the VB Join() function to pass all of the items.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 9:16 am
1. Change "Today" to "GetDate()".
2. In your example, you want the date range to end on 9/14/2010. I assume this is a typo, and should be 9/14/2009?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 8:48 am
What happens if the column is, and remains, NULL? Or if it's being updated from NULL to a value? Many addresses won't have an address2/3, and that could be null...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 8:43 am
vivek.verma (9/15/2010)
@Wayne
Your solution is also working, is it some way possible to order the final result by date desc as the present final result set is as order...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 8:14 am
One other point to make: the keys that make up the clustered index will be used in all other indexes. You might want to consider having an identity column that...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 8:07 am
Brandie Tarvin (9/15/2010)
WayneS (9/14/2010)
I know I have a command-line version of WZ on one of my home computers... want me to look around for it?
That would be nice, but is...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 7:39 am
Jeff Moden (9/14/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 7:16 am
CirquedeSQLeil (9/14/2010)
WayneS (9/14/2010)
assh1122 (9/14/2010)
Thank you both for taking your time to answer my question. I could able to successfully change the table owner using the sp_changeobjectowner '[currentschema].[currenttable]' , 'dbo' command....
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 7:11 am
Very nice article - Thanks!
I'm especially glad to see the effect of an update statement on the different methods discussed. And as you so properly point out, the proper answer...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 15, 2010 at 6:56 am
LutzM (9/14/2010)
Lynn Pettis (9/14/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 14, 2010 at 5:59 pm
Viewing 15 posts - 3,196 through 3,210 (of 5,588 total)