Viewing 15 posts - 1,111 through 1,125 (of 13,445 total)
yeah, i think my sum case will do exactly that for you.
what does this return? does it look right?
SELECT
USERNAME as [User Name],
SUM(CASE WHEN [Status_Type] =...
April 12, 2016 at 2:20 pm
if you look at it the other way, are the last eight characters of the file name always a correctly formatted datestring?
so it-doesn-t-matter-about-dashes04122016.txt? can get me the right values with...
April 12, 2016 at 1:27 pm
I'm thinking you'll need to group by your username, and maybe some other columns, and use the SUM(CASE trick to count the items meeting your criteria.
my first guess , based...
April 12, 2016 at 12:14 pm
prachiverma10 (4/12/2016)
Regarding the other issue you pointed out, can you give an example in what...
April 12, 2016 at 11:32 am
prachiverma10 (4/11/2016)
following is the insert query which is giving error.
insert into tblDoctorPatient...
April 11, 2016 at 8:22 pm
another reason to avoid them: Linq To SQL and Entity Framework side affects.
we just had an issue with transactions rolling back without any SQL error;
the issue was a linq to...
April 8, 2016 at 12:43 pm
changing this to dynamic sql implies you need to do the exact same thing, but maybe to other tables with identical structure;
i don't see anything in the procedure that seems...
April 8, 2016 at 5:54 am
compulted columns are simply ADD NAME AS {some calculation } [PERSISTED] if you wantthe row values rendered and stored instead of calculated on demand
ALTER TABLE [PIHP].[HIST5657]
ADD
ServiceFromDatex AS CONVERT(CHAR(8),ServiceFromDate,112 )...
April 7, 2016 at 2:28 pm
you assigned your string to @table, but did not append it to @html;
add SET @html = @html + @table + @tail before you do the email;
you need a @tail...
April 7, 2016 at 1:40 pm
create a view that contains the query.
create a user, and grant the user access only to that single view.
as long as the query hits a single schema(ie dbo) in a...
April 7, 2016 at 6:25 am
best practice is still to use a local drive.
that's the only drives you can consitently depend on exisitng, right?
After creating the backup, you would want to compress the file...
April 6, 2016 at 2:31 pm
for xml won't let you inject closing html tags any place you want, but what you want to do is make it do the 99% of the work, and then...
April 6, 2016 at 5:29 am
not sure why you might limit yourself to 150 chars; database mail, outlook, email clients do not have a limitation like that.
i'm just selecting emails via FOR XML to make...
April 5, 2016 at 3:02 pm
you've got quite a few things going that are causing malformed html; IE will do it's best to clean that up, but Outlook does not.
i populated your table and reviewed...
April 5, 2016 at 6:20 am
is your data double quoted, meaning the value featuring the comma is properly delimited so you can process it?
1,Academy award winners,"Jones, James Earl",moredata
if it's not, you need to go...
April 4, 2016 at 2:57 pm
Viewing 15 posts - 1,111 through 1,125 (of 13,445 total)