Viewing 15 posts - 76 through 90 (of 150 total)
June 14, 2006 at 2:19 pm
June 14, 2006 at 11:52 am
There are a couple of different ways this could be handled and still use the SP you have created.
1. Load the results of your select statement into a temp table...
June 12, 2006 at 8:11 am
June 9, 2006 at 1:22 pm
SUM(Case when table2.trouble_code='101258' then 1 else 0 end) as Code_Theft,
SUM(Case when table2.trouble_code='101259' then 1 else 0 end) as Code_Fire,
etc...
from...
June 7, 2006 at 9:38 am
This is a question for Aaron,
Would the following work also:
INSERT INTO AP_Job_Cost_Security22 (Operator_ID, Operator_Name, Email_Address, Master_Job, Company_Code)
SELECT DISTINCT O.Operator_ID,O.Operator_Name, O.Email_Address, U.Job_number, U.Company_Code
FROM JC_JOB_USER_FIELDS_DET_MC U INNER JOIN pa_operator_master O ON U.alpha_Field...
May 31, 2006 at 7:27 am
Try this Store Procedure: (Change the table 'TableBreakdown' to what ever the name of your table is)
CREATE PROCEDURE p_Rpt_AvailStatus (
@tiStartHour tinyint,
@tiStartMinute tinyint,
@tiEndHour tinyint,
@tiEndMinute tinyint)
AS
SET NOCOUNT ON
DECLARE @vcStatus varchar(15),
@tiSHour tinyint,
@tiSMinute tinyint,
@tiEHour tinyint,
@tiEMinute tinyint,
@iDuration int
DECLARE @tblReport table (vcStatus varchar(15), vcStart varchar(4), vcEnd...
June 7, 2005 at 11:53 am
I have had some success working with a product called 'xp_Crypt'.
If you would like to look into this product, check out 'www.activecrypt.com'.
I had a need to encrypt account numbers...
May 17, 2005 at 1:20 pm
No skin of my nose. It is just a solution that is KISS.
Dave N
May 12, 2005 at 9:29 am
while x <= 12
begin
select customerid, month, year
from historytable
where month = x
group by customerid, month, year
having count(month) = 0
set x = x + 1
end
May 12, 2005 at 9:13 am
Ok,
Then put it in a while loop. You then have one select statements and all 12 months are covered.
declare x int
set x = 1
while x <= 12
begin
select statement
Dave N
May 12, 2005 at 9:10 am
Since there is only 12 months in a year, why not just keep this very simple at create twelve select statements, one for each month, that returns any entries that...
May 12, 2005 at 8:45 am
The answer to your question can be found in Books Online. Search for this topic, 'Using char and varchar Data'. Basically, it states that the data type varchar truncates all...
May 12, 2005 at 8:37 am
One possible method is to use the DMO objects and create a custom front end for the SQL Server Scheduled jobs. This would take some work to develop, but once...
May 3, 2005 at 1:21 pm
Wayne,
Yes, that is exactly what we would like to do. We are looking at building a Bill Statement presentation web app. We would need to store 6 months of bill...
April 22, 2005 at 11:09 am
Viewing 15 posts - 76 through 90 (of 150 total)