Viewing 15 posts - 76 through 90 (of 441 total)
Hi,
Here is what I would use, the row_number function partitioned by your datetime.
Try this script carefully before you uncomment the delete section.
;
WITH cte
...
February 11, 2010 at 7:33 am
Good, happy it helped, and thanks for the feedback, it's much appreciated!
Have a nice day!
February 11, 2010 at 7:23 am
Hi Andrew,
If I understood correctly, the reason you cannot update the column as not null is because you already have nulls in your table. I think you should manually change...
February 11, 2010 at 6:49 am
CirquedeSQLeil (2/9/2010)
February 9, 2010 at 1:48 pm
CirquedeSQLeil (2/9/2010)
J-F Bergeron (2/9/2010)
Lynn Pettis (2/9/2010)
I guess it's time for me to start a personal black-list
Ehh, I wish I would've seen that comment before I posted the solution,
Why be so...
February 9, 2010 at 1:44 pm
Lynn Pettis (2/9/2010)
I guess it's time for me to start a personal black-list
Ehh, I wish I would've seen that comment before I posted the solution,
Why be so rude anyway, I...
February 9, 2010 at 1:28 pm
BaldingLoopMan (2/9/2010)
SELECT name
FROM sys.tables t
WHERE t.is_ms_shipped = 0
AND object_ID NOT IN ( SELECT major_ID
...
February 9, 2010 at 1:21 pm
There are some extended properties that tell you wether the tables were created for schema-modeling.
Here's what I quickly came up with, someone can tune this:
SELECT name
FROM ...
February 9, 2010 at 12:43 pm
Thanks for the info, seems I never got a situation where I could test this. This sounds a bit weird to me, but in the end, it does make sense.
I...
February 4, 2010 at 12:45 pm
Lookup "DateADD" function, in BOL, it does exactly what you are looking for.
February 4, 2010 at 9:54 am
SG-348334 (1/29/2010)
I ended up reinstalling SQL Server and tried to attach the mdf/ldf file.
However, now I get this error message when accessing...
January 29, 2010 at 1:31 pm
Why post twice? It only fragments answers and does not help you in the end.
Please post further answers here :
http://www.sqlservercentral.com/Forums/Topic856335-1292-1.aspx
January 29, 2010 at 12:39 pm
Ninja's_RGR'us (1/21/2010)
Here's a second vote for Montreal, Quebec, Canada (well a bit outside, but that's where I work).
Where do you work at, and where do you live?
January 21, 2010 at 11:10 am
I'm happy it helped! Yes, Cte are very useful, they act like subqueries, but in my opinion, are a lot easier to read, it's just a top down approach. It...
January 19, 2010 at 11:10 am
BaldingLoopMan (1/19/2010)
attached if the result set. Highlighted is what should be returned.
Great, the query returns exactly that information.
Have you tried it?
January 19, 2010 at 9:18 am
Viewing 15 posts - 76 through 90 (of 441 total)