Viewing 15 posts - 751 through 765 (of 8,731 total)
All those options are nice, but you still need to check for the front end code. Back when I started coding, we used to concatenate sql strings on the front...
January 3, 2018 at 12:33 pm
Well, you're referencing the temp table without joining to it first.
January 3, 2018 at 8:58 am
I intend to import the data with an SSIS package, which would...
January 3, 2018 at 8:37 am
January 3, 2018 at 8:15 am
Here's a sample code to show you how to do it. It uses a cte that creates a tally table on the fly. You can convert the cte into a...
January 3, 2018 at 8:12 am
January 3, 2018 at 7:02 am
January 3, 2018 at 6:21 am
January 2, 2018 at 12:27 pm
Yes, there's a simpler way to do it which is faster, too. It's on the articles I showed you and I'm guessing it can be at least 3 times faster...
January 2, 2018 at 8:58 am
Check the following articles:
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - SQLServerCentral
Cross Tabs and Pivots, Part 2 - Dynamic Cross...
January 2, 2018 at 7:09 am
I wonder if the problem comes from something like this:
WITH VTE AS(
SELECT *
FROM (VALUES('1'),('1.1'),('1.1.1')) V(S))
SELECT CONVERT(decimal(2,1),S)
FROM VTE
WHERE...
January 2, 2018 at 6:15 am
December 29, 2017 at 8:56 am
A shorter version:WITH VTE AS (
SELECT *
FROM (VALUES(3),(25.75),(12),(125.8),(1000),(1857.5)) V(I))
SELECT I,
RIGHT( 10000 + CAST(ROUND(I*10, 0) AS int), 4) AS LeadingZeros
FROM...
December 29, 2017 at 6:40 am
Apparently, you need some more help. Once you do the Google search, you need to open the links. Here are the first three that I got.
https://blog.sqlauthority.com/2012/10/04/sql-server-importance-of-user-without-login-t-sql-demo-script/
which...
December 29, 2017 at 6:20 am
Lynn Pettis - Thursday, December 28, 2017 11:54 AMNot sure what forum thread you are talking about, Luis.
December 28, 2017 at 12:06 pm
Viewing 15 posts - 751 through 765 (of 8,731 total)