Viewing 15 posts - 6,211 through 6,225 (of 15,381 total)
mario17 (11/22/2013)
I need to create table with time history data for each month,
now I have PK below, but there is a chance I will need to rerun my script,...
November 22, 2013 at 2:55 pm
Hi and welcome to the forums! It is kind of hard to figure out what you are trying to do.
In order to help we will need a few things:
1....
November 22, 2013 at 11:12 am
Luis Cazares (11/22/2013)
Sean, I can't...
November 22, 2013 at 8:45 am
Vitor da Fonseca (11/22/2013)
I have the following statement to give me the month
Month(DateAdd('m',-3,[Enter_Month])) AS month4
which gives me the month number e.g. 1, 2, 3, etc how can i format this...
November 22, 2013 at 7:57 am
MohamedDBA (11/22/2013)
November 22, 2013 at 7:50 am
This is a sql server site and it appears the ddl you posted is for Oracle. Keep in mind that any code you receive the works well in sql server...
November 22, 2013 at 7:44 am
phamm (11/22/2013)
How would I split a table into multiple chunks of 2000 records? example: I have a table with 123000 rows, how would I split it into multiple tables...
November 22, 2013 at 7:35 am
benjamin.reyes (11/21/2013)
This is the error I get.Msg 156, Level 15, State 1, Procedure MyProc, Line 13
Incorrect syntax near the keyword 'union'.
The OP obviously posted pseudocode. There is nothing like syntax...
November 21, 2013 at 3:03 pm
nelson.muller (11/21/2013)
November 21, 2013 at 2:12 pm
nelson.muller (11/21/2013)
create procedure MyProc
as
begin try
-- SQL Code
;with MyRecursion
as
(
-- Anchor
union all
-- Recursion
)
select * from MyRecursion
-- SQL Code
return 0
end try
begin catch
exec...
November 21, 2013 at 1:26 pm
rayh 98086 (11/21/2013)
Thank you. The part I am getting hung up on or just don't understand is having the parameters for a where statement be variable. How do...
November 21, 2013 at 12:30 pm
lukavog (11/21/2013)
I have this SP
ALTER PROCEDURE GetDelayIntervalData(@start datetime, @stop datetime, @step int)
AS
DECLARE @steps bigint
SET @steps = DATEDIFF(hour, @start, @stop)/ @step
DECLARE @i bigint
SET @i=0
DECLARE @tempStep varchar
SET @tempStep = DATEPART(hour, @start)
WHILE...
November 21, 2013 at 12:11 pm
rayh 98086 (11/21/2013)
I am creating a paramaters table to store values for mulitple sctipts.
For example, I will create a Table called ScriptParameters with the fields ID, scriptname, ScriptValue, and...
November 21, 2013 at 12:02 pm
nutty (11/21/2013)
However the trouble is, these child codes are common codes for various other parent codes.
For example two different parents can share...
November 21, 2013 at 11:54 am
blasto_max (11/21/2013)
November 21, 2013 at 11:52 am
Viewing 15 posts - 6,211 through 6,225 (of 15,381 total)