Viewing 15 posts - 136 through 150 (of 1,957 total)
No cursor required as Luis said, but I think this may be what you are after, based on the description.
Perhaps if you could provide some expected output from that data,...
October 21, 2015 at 1:22 pm
jarid.lawson (10/21/2015)
Crude back hacks don't bother me. I don't care how pretty it looks on the back end just as long as it does what I'm looking for.
It's not about...
October 21, 2015 at 1:14 pm
You can use a subquery to grab the Prodacts, like this:
select Person.Saler
, (
select Prodacts.Prodact
, Prodacts.Quantity
...
October 21, 2015 at 6:17 am
Is that time linked in any way to a date and if so, do you care about incrementing the data after midnight and do you care about Daylight Saving? (Adding...
October 20, 2015 at 5:29 pm
Yes, it's used for various management tasks (for example, rs.exe uses it for command line management) and can be used in links to individual reports where the Report Manager interface...
October 20, 2015 at 5:22 pm
Unfortunately, you can't do much about the Report Manager layout as the content is compiled into the application.
You can modify the CSS though, and if you were to add this...
October 20, 2015 at 4:57 pm
It's the Report Manager interface you want, http://localhost/Reports_SQLEXPRESS
If you are not seeing the link to report builder on the report manager page, then you could try installing it directly.
http://www.microsoft.com/en-gb/download/details.aspx?id=42301
October 19, 2015 at 5:51 pm
Isn't it also the case that using LIKE allows the QO to use statistics to estimate the selectivity of the query.
According to this White Paper: https://msdn.microsoft.com/en-us/library/dd535534(v=sql.100).aspx
String Summary Statistics
SQL Server 2008...
October 16, 2015 at 5:58 pm
To account for repeated letters, I use row_number() partitioned by letter to assign a "positional" value.
So, for the word "test", the results of CTE "LETTERS1" would be
L P
e ...
October 14, 2015 at 5:13 am
Here's one, but it's not quick and I can't think of a way to make it quick, but maybe someone else can.
CREATE FUNCTION FindDifferenceCount(@string1 AS VARCHAR(50), @string2 AS VARCHAR(50))
RETURNS TABLE
WITH...
October 13, 2015 at 6:03 pm
Lynn Pettis (10/9/2015)
October 9, 2015 at 12:17 pm
Here's an alternative that will work, but not got around to performance testing yet, sorry.
CREATE FUNCTION dbo.GetInvoiceIDFromBillID(@Input VARCHAR(20))
RETURNS VARCHAR(20)
WITH SCHEMABINDING
AS
BEGIN
-- Function to extract all characters from the first numeric...
October 9, 2015 at 11:48 am
Further "interest" comes from comparing XML to JSON in SQL 2016.
context avg_duration (ms) avg_cpu_time (ms)
xml 4147.091600 ...
October 7, 2015 at 5:43 pm
Kim Crosser (10/7/2015)
I would never have thought...
October 7, 2015 at 9:54 am
Eric M Russell (10/7/2015)
mister.magoo (10/7/2015)
Eric M Russell (10/7/2015)
mister.magoo (10/6/2015)
select MBT.refID,
...
October 7, 2015 at 9:11 am
Viewing 15 posts - 136 through 150 (of 1,957 total)