Viewing 15 posts - 11,386 through 11,400 (of 13,460 total)
that error could occur if your database compatibility level is at 80 instead of 90;
the compatibility level determines which syntax version is applied to statements hitting the database, and rownnumber()...
Lowell
March 21, 2009 at 6:27 am
My questions are the same:
what is a serial number to you? is it a random number? can it be '0000' plust the customer number?(0001,0002, etc). Why did your example...
Lowell
March 20, 2009 at 11:51 am
yes, the CLR is actually saved in the database, along with it's source code...so if you were to backup a database, change the CLR and redeploy it, then restore the...
Lowell
March 20, 2009 at 10:22 am
I like Florians script...added it to my snippets.
my only changes are I added the filegroup name and removed the WHERE statement...i want a script that generates all the DBCC and...
Lowell
March 20, 2009 at 10:14 am
the same script that Florian gave you, simply change the file group name and change the line that says DBCC REINDEX to this:
'UPDATE STATISTICS ' + SCHEMA_NAME(st.schema_id) +...
Lowell
March 20, 2009 at 10:02 am
ok i think i'm wrong about area codes between 100 and 199(starting with 1), so you might want to remove the logic i put in place to assume starting with...
Lowell
March 20, 2009 at 9:05 am
here's how i would do it.
I'm assuming that you are using US format for area codes..(800) xxx-yyyy ext.zzzz
some of your area code exampels started with 1, i.e. 109, which does...
Lowell
March 20, 2009 at 8:58 am
here's how i do it:
FormattedDate SQL
20090320-09:33:49:700 SELECT CONVERT(VARCHAR,@date,112) + '-' + CONVERT(VARCHAR,@date,114)
20090320-093349700 ...
Lowell
March 20, 2009 at 7:37 am
Brandi one of the best forum platforms out there for phpBB/MySQL stuff out there is phpBB http://www.phpbb.com/%5B/url%5D
free, open source,
full featured easy to use, huge deployment so you can find...
Lowell
March 19, 2009 at 12:12 pm
yeah, for event 12 SQL:BatchCompleted, even when everything is enabled, there is a lot of null columns, i can see that you want to capture just certain data depending on...
Lowell
March 19, 2009 at 11:14 am
you need to add a different trace; a great example from Perry Wittle is found here:
http://www.sqlservercentral.com/Forums/Topic576752-146-1.aspx
AFTER that is in place, you will be able to determine who ran a SQL...
Lowell
March 19, 2009 at 11:11 am
Perry your code example was very helpful for me today, as I wanted to create a DML trace to be a companion to the existing DDL default trace.
so I played...
Lowell
March 19, 2009 at 10:28 am
here's my comparison snippet for SQL 2000:
create table #rowcount (tablename varchar(128), rowcnt int)
exec sp_MSforeachtable
'insert into #rowcount select ''?'', count(*) from ?'
--tablename is [dbo].[TBLNAME] instead of plain...
Lowell
March 19, 2009 at 8:56 am
Maxim Picard (3/19/2009)
Hi againI saw Lowell's post after replying...
How reliable is the count in sys.partitions because a solution based on that will definitly beat a cursor on speed!
Maxim's right, unless...
Lowell
March 19, 2009 at 8:49 am
Maxim's code will work, and would obviously only run for the tables that exist in your counting table...
but if you compare it to the set based solution, it'll be a...
Lowell
March 19, 2009 at 8:45 am
Viewing 15 posts - 11,386 through 11,400 (of 13,460 total)