Viewing 15 posts - 2,041 through 2,055 (of 13,469 total)
nikki123 (2/4/2015)
Hi
I need to load the latest csv files from file server , The files are placed in a folder called -
Posted 02022015- --> csv files .
I am...
February 4, 2015 at 8:57 am
isn't this just the difference between a session(connection), and having actually committed a request?
if i open ssms and open ten blank tabs, that's ten sessions, and zero requests.
until i run...
February 4, 2015 at 5:59 am
It depends on if all the data is exactly formatted like the one example.
i'd lean more towards splitting the data, and not assuming there are three parts every time.
changing the...
February 4, 2015 at 5:53 am
in that case, you need to join against a calendar of months, and simply group by month
something like this is an example
CREATE TABLE #TallyMonthCalendar(TheMonthStart date)
INSERT INTO #TallyMonthCalendar
SELECT dateadd( mm,-48...
February 3, 2015 at 1:51 pm
glad you found the issue and posted back , Wayne; that information will probably help someone else in the future.
WTG
February 3, 2015 at 12:08 pm
Gazareth (2/3/2015)
Yep, this. Although I think that info is now available in DMV's for newer versions of SQL (2012+ ?)
oh, i wish i was running pure 2012 and above...that would...
February 3, 2015 at 11:35 am
i might be reading the question too simply;
can you just sum up the differences btween the two dates?
--days
/*--Results
account loc (No column name)
1 ...
February 3, 2015 at 10:43 am
convert the value to varchar instead and a temp table , and do a CASE WHEN ISNumeric(ConvertedValue) = 0 THEN 'whoops' ELSE' good conversion' END.
as everyone else has already identified,...
February 3, 2015 at 10:27 am
i don't update the registry, but i have a lot of admin scripts that do things like read the registry data/log/backup folders from the registry, so i can use them...
February 3, 2015 at 10:05 am
you need to cross apply any nodes that you expect multiple values from;
something like this example might help.
DECLARE @xml XML
SELECT @xml='<Root>
<Data>
<Item ID="1" AdditionalInfo="Some info">
<SubItem ID="1">apples</SubItem>
<SubItem ID="2">oranges</SubItem>
<SubItem ID="3">cherries</SubItem>
</Item>
<Item ID="2" AdditionalInfo="Some info">
<SubItem...
February 3, 2015 at 7:35 am
ok i think that requires data driven subscriptions, which require Enterprise Edition, so make sure you have that.
when you create a shared schedule in Reporting Services, there's a third selection...
February 3, 2015 at 6:06 am
you need to make sure the sub report fits inside the main report panel you defined, i think.
a common mistake is where the main report and the sub report are...
February 2, 2015 at 1:34 pm
those files are on your local C drive, and not on the internet...we can't see them.
DuncEduardo (2/2/2015)
C:\Users\dunsmi\Pictures\VGroup\SCD.png[/...
February 2, 2015 at 7:36 am
does this get you started, by normalizing and doing a preliminary join?
WITH BarsNormalized
AS
(
select * from #Wobbly
CROSS APPLY dbo.DelimitedSplit8K(Scotch,';') F1
)
SELECT T1.Bar ,T1.Item As ScothName,T2.Bar
FROM BarsNormalized T1
LEFT OUTER JOIN BarsNormalized T2 ON...
February 2, 2015 at 5:56 am
you would typically do formatting in the application, and not in the database.
because you want to mix data types, ie decimal(19,3) and integer , you need to either format as...
February 2, 2015 at 5:44 am
Viewing 15 posts - 2,041 through 2,055 (of 13,469 total)