Viewing 15 posts - 7,621 through 7,635 (of 8,760 total)
This is simple, run the query with "Results to Grid", right click on the results and select Save Results As..
😎
August 2, 2014 at 6:32 am
Just to further on the explanation with a quick example:
😎
USE tempdb;
GO
CREATE TABLE dbo.MY_IDENTIY
(
MY_IDENTITY_ID INT IDENTITY(1,1) NOT NULL CONSTRAINT...
August 2, 2014 at 6:01 am
August 2, 2014 at 5:49 am
Would have thought it would be in the sys schema in the master database, that is master.sys.sp_MSdistribution_cleanup
😎
August 2, 2014 at 5:36 am
You might want to try something like this:
😎
USE tempdb;
GO
CREATE TABLE dbo.TBL_PLANT
(
PLANT_ID INT IDENTITY(1,1) NOT NULL CONSTRAINT PK_DBO_PLANT_PLANT_ID PRIMARY KEY CLUSTERED
,PLANT...
August 2, 2014 at 5:23 am
Quick solution, returns the hour + time fraction (minutes and seconds / 3600)
😎
USE tempdb;
GO
DECLARE @DATE_VAL DATETIME = '2014-07-29 08:16:31.000'
SELECT @DATE_VAL
SELECT DATEPART(HOUR,@DATE_VAL) + (DATEDIFF(SECOND,'00:00:00.000',DATEADD(HOUR, - DATEPART(HOUR, CONVERT(time(3),@DATE_VAL)),CONVERT(time(3),@DATE_VAL))) / 3600.0)
Result
8.275277
Edit: Oops, feel...
August 2, 2014 at 4:03 am
Sean Pearce (8/2/2014)
GilaMonster (8/1/2014)
August 2, 2014 at 3:57 am
Daniel Matthee (8/2/2014)
Please give your feeling about this method
Although your code works fine, it wouldn't be my first choice as if the OP could change the schema, normalizing the data...
August 2, 2014 at 3:43 am
jameslauf (8/1/2014)
Fixed my CODE and attaching Excel sheet to show desired output. see column N, O, P for results.
Looking at the expected results prompts few questions:
😎
1. Is this dataset for...
August 2, 2014 at 2:54 am
Just a quick thought on the problem, why not use the ROWLOCK hint?
To try it out, run the create script first and then the Update and the Select code...
August 2, 2014 at 1:37 am
Elizabeth.Block (8/1/2014)
I'm sorry, I don't know what you mean. Can you give me more information?
Unfortunately I do not have BIDS 2K8 at hand so I'm going by my gay cell...
August 1, 2014 at 12:36 pm
windows_mss (8/1/2014)
I'm using VS 2008 BIDS.
No option to do dynamic file config from within the package then, either dynamically modified/created package or database configuration are your best bets. If you...
August 1, 2014 at 12:28 pm
Quick thought, what are the security properties of the package? Have you tried initiating the download from the application server using the package runtime credentials?
😎
August 1, 2014 at 12:25 pm
Using a trigger is probably the most straight forward approach, if you add a table holding the primary key value and a date, then you can use the output clause...
August 1, 2014 at 11:57 am
windows_mss (8/1/2014)
I have done with the SSIS Package and it's working as expected in my local machine, I have one problem is that how I can give my XML configuration...
August 1, 2014 at 11:47 am
Viewing 15 posts - 7,621 through 7,635 (of 8,760 total)