Viewing 15 posts - 4,021 through 4,035 (of 13,459 total)
another way is to backup and restore the database, then delete everything in foreign key hierarchy order in the new copy.
also, i know you said no data, but from experience...
Lowell
February 11, 2013 at 11:23 am
a coded example of what Seans' first thought: clearly item 2 you wanted, at 40,000, does not give the desired results.
you'll need to clarify either the biz logic or the...
Lowell
February 11, 2013 at 10:54 am
saxena200 (2/11/2013)
Question - before data loading is it necessary to drop the view or if i drop the index...
Lowell
February 11, 2013 at 9:14 am
99% of the time, you do this kind of image inserts/updates in a programming language.
TSQL does not have a native, built in way to do image to disk operations....
but it's...
Lowell
February 11, 2013 at 8:54 am
what if they have 2008R2 or 2012 installed? 2005 is already eight years old...wow. keep in mind that official support from MS (end of life?) for that product is probably...
Lowell
February 11, 2013 at 6:20 am
Mike Seattle (2/8/2013)
Lowell
February 8, 2013 at 1:25 pm
Richard Warr (2/8/2013)
Lowell
February 8, 2013 at 11:53 am
you created teh case in the CTE, but you never use it in your final query, i think.
see my reformatted post of your code, with this comment:
e.TermWeek,--<<--don't you want...
Lowell
February 8, 2013 at 9:45 am
Like Anthony mentioned, the default trace has the information you are looking for, if not to much time has passed.
SSMS has a handy report which queries the trace for you:

Additionally,...
Lowell
February 8, 2013 at 5:37 am
maybe use the metadata to generate the scripts for you?
this seems to be doing it right?
EXEC sp_msForEachDb 'USE [?];SELECT ''?'' As DbName,''DENY IMPERSONATE ON LOGIN::MyAuditor TO '' + quotename(name) +...
Lowell
February 7, 2013 at 2:15 pm
Howard i think this has an example of what you want, but i have not done this myself
http://msdn.microsoft.com/en-us/library/ms186710.aspx
A. Denying IMPERSONATE permission on a login
The following example denies IMPERSONATE permission on...
Lowell
February 7, 2013 at 1:46 pm
Andrew From experience, doing it all in TSQL can get very wordy and long. the headers require a lot of customization to match the shape / number of columns in...
Lowell
February 7, 2013 at 12:11 pm
a heap table never releases the space that were used by rows that existed, and then were deleted (unless a full table schema lock was applied, like when deleting ALL...
Lowell
February 7, 2013 at 9:17 am
also, you want to bulletproof the comparison if the value for the Start_Date is changing from null to not null: that's not necessary if the field is not-nullable to begin...
Lowell
February 7, 2013 at 9:04 am
that syntax error:
Msg 102, Level 15, State 1, Line 13
Incorrect syntax near '.'.
shows that your database is currently at Compatibility 80,and needs to be 90 or above, i think:
ALTER DATABASE...
Lowell
February 7, 2013 at 6:16 am
Viewing 15 posts - 4,021 through 4,035 (of 13,459 total)