Viewing 15 posts - 10,846 through 10,860 (of 13,462 total)
the top and bottom rows are determined by their order....I'm betting your procedure does not have an ORDER BY clause.
with out that, SQL server does not guarantee the order or...
July 11, 2009 at 1:14 pm
here is a simple procedure i use all the time;
stick in the master database, and because it starts with "sp_" and uses the catibility views, it will be functional...
July 11, 2009 at 12:55 pm
why not create a user defined function on the server, ie dbo.mydate()
that returns a specific datetime value; it could return something like the calculated last business day, or a...
July 11, 2009 at 11:36 am
Thank you! I consider that very high praise coming from you!
I'll submit both the 2000 and the 2005 scripts to the scripts here;
I had slapped together an article on...
July 11, 2009 at 9:02 am
Lynn Pettis (7/10/2009)
I am really getting tired of this intermittent issue of not being able to post code on forums from work.
Lynn what browser are you using? is...
July 10, 2009 at 11:31 am
i saw that after you posted....i'm embarrassed to offer it now , since STUFF is such a better solution
July 10, 2009 at 11:09 am
i think it goes to how much business data would be lost.
if the system crashed half an hour before the next log backup, and you had to restore to the...
July 10, 2009 at 11:07 am
first, let me thank you for the CREATE TABLE and INSERT code; it helps enourmously. way to go!
here's one way to do it; here i'm assuming the column is exactly...
July 10, 2009 at 10:45 am
did you drop your temp table so it can be recreated with the new column?
July 10, 2009 at 10:36 am
you had a few errors in what you were trying to do;
dbcc inputbuffer returns a table with 3 columns...you have to capture the columns.
your concatenation was not quite right;
hre's a...
July 10, 2009 at 10:26 am
maybe you are comparing it to the way oracle works? oracle is very user centric...delete a user, and you delete all the data owned by that user. could be gigs...
July 10, 2009 at 10:19 am
with massive updates like that I think it is a lot easier to undo or stop if you did the updates in batches, instead of trying to do the whole...
July 10, 2009 at 8:14 am
I'd seen a similar requirement before, so I created this procedure...you have to pass it two parameters: the tablename and the search term.
it uses dynamic sql to quiery just the...
July 10, 2009 at 6:41 am
ok, it's the middle of the night, and to boost my coolness, i answered a hundred or so questions in the Question of the Day section;
they don't get added...
July 10, 2009 at 12:03 am
oops duplicate reply from me somehow...
July 9, 2009 at 11:26 pm
Viewing 15 posts - 10,846 through 10,860 (of 13,462 total)