Viewing 15 posts - 53,371 through 53,385 (of 59,064 total)
I haven't check all the code, but I see that you have a RETURN that I commented out in red...
December 26, 2007 at 4:16 pm
Heh... use the heat of compression to make hot water, the thermal losses of expansion to provide refrigeration, and the left over pressure to drive a low pressure turbine.
December 26, 2007 at 4:10 pm
Ken,
Yeah, you're right... go breaks the stride of variables... AQT won't handle it. Still not sure why you need the "GO"'s. Yeah, they force an early display but...
December 26, 2007 at 4:08 pm
Ummm... my mistake, I think... you're probably taking about the "WINDOWS" server System Admin, huh?
That might be a different story but, still, I'd be inclined to let the DBA in....
December 26, 2007 at 2:50 pm
If you dunno, you may be in trouble...
Who's going to set the files sizes? Who's going to do the load balancing for TempDB and other databases? Who's going...
December 26, 2007 at 12:47 pm
Heh... If you're going to copy code 100%, the least you could do is put my name on it 😉
First, why are you using this as a proc... why...
December 26, 2007 at 12:33 pm
Lowell, as always, brings up some excellent points and I, too, hate these types of sequence tables. They're a real pain and if the code isn't written perfectly, you...
December 26, 2007 at 12:09 pm
The best thing to do would be for your organization to hucker down and fix the poorly written code by turning them into viable stored procedures or views.
Than notwithstanding, what's...
December 26, 2007 at 11:31 am
You must use Dynamic SQL to do such a thing...
CREATE PROCEDURE [dbo].[sp_vcGetStop]
@CheckTable varchar(15),
@Sequence numeric(10,0)
AS
EXEC ('SELECT CUID As Rt, WorkType FROM ' + @CheckTable + ' WHERE Sequence = '...
December 26, 2007 at 11:26 am
There is a registry setting that prevents SQL Server from being able to use OpenRowSet... look in the registry for "DisallowAdhocAccess" and change it's value to zero.
Also, OpenRowSet creates temporary...
December 26, 2007 at 11:14 am
I agree with Steve, but the code is so simple I wouldn't make a stored procedure or function for it... too much overhead for such a simple thing.
December 26, 2007 at 11:04 am
Which type of DBA? If it's the "System" DBA, you'd better trust him/her... they need total access to really do the job correctly. If it's an "Application" DBA,...
December 26, 2007 at 11:02 am
I agree with Steve in avoiding ## Global Temp Tables... if two procs (or the same proc running more than once) attempt to create a GTT (Global Temp Table) of...
December 26, 2007 at 10:59 am
Although you can have only 1 Primary Key (hence the word "Primary"), you can, in fact, have multiple UNIQUE keys in the form of UNIQUE indexes. Keep in mind...
December 26, 2007 at 10:57 am
Without seeing the offending code, the short answer would be simply to rewrite the code so that it's performance enabled. Step 1... avoid cursors. Step 2... avoid 99.9%...
December 26, 2007 at 10:51 am
Viewing 15 posts - 53,371 through 53,385 (of 59,064 total)