Viewing 15 posts - 10,741 through 10,755 (of 13,460 total)
that is normal.
the first time a procedure gets run, an execution plan is created and saved. that takes longer.
after that plan is created, subsequent calls are much faster.
if the procedure...
Lowell
July 27, 2009 at 7:16 am
ok i think i see the reason, but not the solution.
float, without the size defined , is defaulted to a float(53), which is an 8 byte double precision.
if i...
Lowell
July 27, 2009 at 5:07 am
how about the free one from microsoft? one of my web hosts uses it, it's basically a web based SSMS/Enterprise manager:
Download details: Microsoft SQL Web Data Administrator
Lowell
July 27, 2009 at 4:41 am
it looks like all you want to do is remove the extra zeros.
to do that, you need to decide on the precision of your @A5 variable.
here's your same code,...
Lowell
July 27, 2009 at 4:32 am
something like this is pretty close; I don't know the sql to get the temp table, and I'm not sure of the table that the old function uses.
the sql...
Lowell
July 27, 2009 at 4:01 am
your function is fine, it's the function call...
since it is returning a table, you need SELECT * FROM, not SELECT:
select * from dbo.testFunction(getdate(),getdate()+30);
--results:
2009-07-27 00:15:08.460
2009-07-28 00:15:08.460
2009-07-29 00:15:08.460
2009-07-30 00:15:08.460
2009-07-31 00:15:08.460
etc....
Lowell
July 26, 2009 at 10:18 pm
well you can't delete anything in anything belonging to sys...they are just views. they are just thre for information purposes...they are not updatable.
if a function was created that you want...
Lowell
July 26, 2009 at 9:20 pm
the trace shows everything that happens from the moment you created it; it can't show what happened in the past, but if anything deletes again, you now have the tools...
Lowell
July 26, 2009 at 8:11 pm
fastest way to fix it is to reseed the value with the next highest value...146 automatically:
dbcc checkident(identicheck,RESEED) --sets to max
i thought that could not happen, but sure enough, this example...
Lowell
July 26, 2009 at 2:13 pm
--confirm the view exists so you can select from it:
SELECT * FROM master.dbo.sysobjects where xtype='V' and name like 'sp_%'
--no results means it's not in master, is it somewhere else? check...
Lowell
July 26, 2009 at 11:29 am
I know exactly what you mean.
I post here because it gives me personal satisfaction to help someone else out. It's a huge advantage to their learning curve for us to...
Lowell
July 26, 2009 at 11:22 am
26 million records to scan whether to delete or not, and it requires a table scan because of the NOT IN;
instead of NOT in, can you join instead? is there...
Lowell
July 26, 2009 at 10:33 am
yeah i saw that...IE spins forever. tried with firefox, and after a couple of "do you want to stop the runaway script" warnings, it would finally open. at...
Lowell
July 26, 2009 at 10:10 am
just to clarify, if you run the script above, ti doesn't do anything except add a stored procedure...
if you call the procedure, ie EXEC sp_AddMyTrace, that creates/starts the trace and...
Lowell
July 26, 2009 at 9:30 am
just once. run it just once.
sp_AddMyTrace creates a log for all statements in all databases.
it is limited to 100 meg of data before it starts rolling over to reuse the...
Lowell
July 26, 2009 at 8:07 am
Viewing 15 posts - 10,741 through 10,755 (of 13,460 total)