Viewing 15 posts - 10,846 through 10,860 (of 13,469 total)
its a bit field: the database with status= zero has no flags turned on.
the database with status=16 has one flag turned on: torn page detection.
WHY one is different than the...
July 14, 2009 at 11:18 am
here's a SQL i made way back when, base don the bits booksonline tells us for the status:
SELECT 'name: ' + [name] + CHAR(13) +
'autoclose: ...
July 14, 2009 at 9:44 am
randomizing data returned doesn't always perform well, so I always have to compromise and select fewer rows.
SET STATISTICS TIME ON
SELECT TOP 3 object_name(object_id) As TBName,* from sys.columns order by NEWID()
...
July 14, 2009 at 7:33 am
do all 520 tables have the DateCreated column with a default of getdate(), so that the tables can be queried individually to archive off the data as desired?
if not, you...
July 13, 2009 at 10:22 pm
I've also seen this error when a column was named to be the keyword "index", and it raises that error.
check syscolumns where name='index' and see if that's the issue.
July 13, 2009 at 10:33 am
dayum, i must have tested in a compatibility 90 database....sorry.
that was a bit of work to fix, but i figured out how to update the @Results table witht eh columns...
July 12, 2009 at 7:29 am
actually, it has to be installed on the %systemdrive%, which in most cases is the C: drive, but depending on how you built your machine originally, the %systemdrive% could be...
July 11, 2009 at 4:21 pm
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
Viewing 15 posts - 10,846 through 10,860 (of 13,469 total)