Viewing 15 posts - 2,056 through 2,070 (of 13,469 total)
the dateadd and datediff functions together, are the best ways to do this.
so you might now that getdate() is the right now timestamp, all the way down to milliseconds.
by using...
February 2, 2015 at 5:32 am
i have a dashboard, that pulls multiple sub reports from a couple of central tables;
those tracking tables get populated by queries/sql jobs that grab statistics and insert them into...
January 29, 2015 at 11:34 am
--late edit: i only saw page one of three: there are better solutions later in what i saw!
i can get that result with a union:
SELECT *,
...
January 29, 2015 at 11:30 am
Perry Whittle (1/29/2015)
ncodd (1/29/2015)
I need a simple script that will convert this field to MB & round up.
Convert it to what?
just divide it by 1024 will give whole...
January 29, 2015 at 10:55 am
this is about the simplest i can see... when you say round up, does that mean 3.199 meg gets rounded to four, or to 3.20?
a meg is 2^20 power, right?
/*--results
Megabytes
---------------------------------------
3.20
*/
Declare...
January 29, 2015 at 8:51 am
your where clause requires a full table scan that cannot use an index, becuase the search criteria looks for matches int he middle of the string.
WHERE si.TrackingNumber like '%' +...
January 29, 2015 at 8:15 am
pilikowaty (1/29/2015)
I was wondering, if there exists such a tool, which lets users to search a sequence of numbers (strings)
For example. Im looking for measurement of id:123123.
So...
January 29, 2015 at 7:27 am
pilikowaty (1/29/2015)
Is there one more possibility to create tool - search, directly on report server, f.e. for client, who hasnt got access to server management, he can...
January 29, 2015 at 7:10 am
a transaction log is like a box : it's dimensions(size) do not change, only how full or empty it is.
So truncating the log empties the box to make room...
January 29, 2015 at 7:04 am
well, first you need to make sure you've set up database mail, but a it's just a simple conditional logic.
here's a template that i use a lot:
IF EXISTS (SELECT *...
January 29, 2015 at 6:57 am
you would execute that statementin SQL server Manangement Studio, connected to teh server that you know hosts the reporting services database.
for example:
select * from ReportServer.dbo.Catalog where convert(varchar(max),convert(varbinary(max),Content) ) like...
January 29, 2015 at 6:51 am
yep it can be done, but it's not obvious.
the actual rdl report is stored in an [image] datatype.
to search it, you have to convert it to varbinary, then convert it...
January 29, 2015 at 6:39 am
a CLR is a common language runtime object, which is not the same as a SQL inline table vlaue function, scalar function, or multi statement table function.
so while a CLR...
January 29, 2015 at 6:32 am
you can pass a table value parameter, which you have to define first, and then you can use it.
https://msdn.microsoft.com/en-us/library/bb510489.aspx
you can also pass a delimited string, and use a function...
January 29, 2015 at 5:41 am
i have this old example, which might help:
/*--Results
id ...
January 28, 2015 at 1:04 pm
Viewing 15 posts - 2,056 through 2,070 (of 13,469 total)