Viewing 15 posts - 10,771 through 10,785 (of 26,489 total)
Sean Lange (7/11/2012)
Something like this perhaps?
INSERT INTO dbo.ProdHistMaster
(...
July 11, 2012 at 3:48 pm
Are you looking for something like this? Please note that you can't put my query in a view and pass it a parameter, but an inline table valued function...
July 11, 2012 at 3:42 pm
ScottPletcher (7/11/2012)
Lynn Pettis (7/11/2012)
Matt Miller (#4) (7/11/2012)
Lynn Pettis (7/11/2012)
CREATE TABLE [dbo].[TEST1](
[ID] [VARCHAR](10) NULL,
[VALUE] [int] NULL
);
GO
INSERT INTO dbo.TEST1 (ID, VALUE) SELECT 1, 10;
SELECT 'PRE' LABEL1, * FROM dbo.TEST1;
DECLARE...
July 11, 2012 at 1:53 pm
mtillman-921105 (7/11/2012)
Excuse the double post, it seemed to have gotten stuck there for a minute. :blush:
That's okay, but the links don't seem to work where I am. Not getting...
July 11, 2012 at 1:49 pm
I don't see an INSERT inside the while loop.
May be blind. 😎
July 11, 2012 at 1:42 pm
Matt Miller (#4) (7/11/2012)
Lynn Pettis (7/11/2012)
CREATE TABLE [dbo].[TEST1](
[ID] [VARCHAR](10) NULL,
[VALUE] [int] NULL
);
GO
INSERT INTO dbo.TEST1 (ID, VALUE) SELECT 1, 10;
SELECT 'PRE' LABEL1, * FROM dbo.TEST1;
DECLARE @SAVE1 INT;
UPDATE dbo.TEST1...
July 11, 2012 at 1:39 pm
Besides understanding the datatypes, particularly for BV.DischargeDateTime and BV.ServiceDateTime, you should look at modifying how you do your range testing for datetime values.
You really should move to a process that...
July 11, 2012 at 1:28 pm
This works as well:
CREATE TABLE [dbo].[TEST1](
[ID] [VARCHAR](10) NULL,
[VALUE] [int] NULL
);
GO
INSERT INTO dbo.TEST1 (ID, VALUE) SELECT 1, 10;
SELECT 'PRE' LABEL1, * FROM dbo.TEST1;
DECLARE @SAVE1 INT;
UPDATE dbo.TEST1 SET
@SAVE1...
July 11, 2012 at 1:16 pm
A small example of the overall problem may help with understanding.
July 11, 2012 at 12:38 pm
Looks like the draft is on 9/2/2012 at 5:00 PM MDT.
July 11, 2012 at 12:34 pm
ScottPletcher (7/11/2012)
Lynn Pettis (7/11/2012)
ScottPletcher (7/11/2012)
gerard-593414 (7/11/2012)
There are...
July 11, 2012 at 12:30 pm
ScottPletcher (7/11/2012)
gerard-593414 (7/11/2012)
There are numerous users and...
July 11, 2012 at 12:14 pm
Are these date/time values stored as character strings or as date/time values in a columns defined datetime or datetime2?
July 11, 2012 at 12:02 pm
Brandie Tarvin (7/11/2012)
FYI: Please don't think I was saying "it's bad to use sys.columns." I was just genuinely curious why people...
July 11, 2012 at 11:54 am
Viewing 15 posts - 10,771 through 10,785 (of 26,489 total)