Viewing 15 posts - 3,001 through 3,015 (of 3,606 total)
The general recommendation is that you don't use sp_ as a prefix for stored procedures because internally SQL Server will look in the MASTER database first causing a cache miss.
I'm with...
September 27, 2004 at 10:43 am
One plus point on using prefixes is that you are unlikely to use a reserved word accidentally.
Given the plethora or languages out there it becomes ever easier to do this.
I...
September 27, 2004 at 8:34 am
My blast everything into a table then index it method works because data is inserted into my intermediate table at maximum speed with no overhead for maintaining any indices.
When the...
September 27, 2004 at 7:37 am
I think the CASE in order by statements causes recompiles but I couldn't swear to it.
I prefix stored procedures with usp and functions with fn.
To be honest I have moved...
September 27, 2004 at 7:33 am
One method that I did use in the past was
September 27, 2004 at 5:58 am
I'm not sure I understand the problem. As Phil says, at the end of the month before the cleardown for the next months data simply run the DTS to copy...
September 27, 2004 at 2:11 am
I hate the idea of using positional arguments for code. How the hell are you supposed to know what ORDER BY 3 means without trawling through the code?
The argument put...
September 27, 2004 at 2:06 am
I would avoid using CHAR fields because they ALWAYS use the amount of space allocated where as the VARCHAR only uses the space it needs.
Secondly I presume you have a...
September 27, 2004 at 1:45 am
If you have two or more SQL Statements that are dependent on each other then I would wrap them up into a transaction.
If you are just running a single statement...
September 27, 2004 at 1:36 am
What did I learn? Well first, not to tell my wife my estimate, but instead double it and then add 2 hours.
Always at least double your estimates for management
September 24, 2004 at 2:20 am
From the data you supplied you would get an empty value for Employee 2 city error because there is no city entry.
September 23, 2004 at 4:57 am
You don't need to write one, you simply use sp_depends.
September 23, 2004 at 2:09 am
SELECT empid ,
empname,
Address,
MAX(CASE(errlog.FieldName='Address' THEN errormessage ELSE '' END) AS CityError ,
city ,
MAX(CASE(errlog.FieldName='City' THEN errormessage ELSE '' END) AS CityError ,
state,
MAX(CASE(errlog.FieldName='State' THEN errormessage...
September 23, 2004 at 2:03 am
SELECT TOP 10 WITH TIES should do the trick
September 23, 2004 at 1:54 am
Have you a specific example?
Can you post the code for the function?
Have you specified the arguments?
September 22, 2004 at 8:00 am
Viewing 15 posts - 3,001 through 3,015 (of 3,606 total)