Viewing 15 posts - 1,126 through 1,140 (of 13,465 total)
is it accessing metadata, like sys.tables and stuff,so you KNOW the object sit access exist in ALL databases, or is it assuming that specific tables exist int he database you...
April 15, 2016 at 7:01 am
the public role has access to tempdb, so you could create a semi-permanent table that would exist until the sql service was stopped and started/server rebooted, by creating...
April 14, 2016 at 1:12 pm
not sure if this is what you are after, this was my first guess
/*--Results
ClosestUnder ClosestOver
20 25
*/
;WITH MyCTE([Code],[Number],[Value])
AS
(
SELECT '5',convert(float,'10.00'),convert(money,'1.9201') UNION ALL
SELECT...
April 14, 2016 at 11:21 am
did you try the query at all?
April 13, 2016 at 6:37 am
i just made a minor change and tested, i got this error because the directory structure is not there yet, could that be it?
Msg 50000, Level 16, State 1, Procedure...
April 13, 2016 at 5:48 am
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
Viewing 15 posts - 1,126 through 1,140 (of 13,465 total)