Viewing 15 posts - 1,486 through 1,500 (of 2,645 total)
If you knew the items were fixed you could get them back using a PIVOT query:
SELECT *
FROM #testtbl src
PIVOT (MAX(Item) FOR Item IN (XX, YY,...
July 26, 2019 at 11:49 am
I agree with Jeff. Just ignore your age and answer questions they ask.
They're not actually supposed to ask. In the past, I used the "Miracle on 34th...
July 25, 2019 at 3:56 pm
DMA issues SQL calls to the database. You can view currently executing SQL statements on SQL Server with the following SQL:
SELECT sqltext.TEXT,
...
July 25, 2019 at 3:00 pm
If migration would only take 2 hours and they only want read access during the conversion.
July 25, 2019 at 12:47 pm
Another possibility is that the SQL is written in a sub-optimal way. Rewriting the query might allow SQL Server to chose a better execution plan more easily. If you want...
July 23, 2019 at 7:36 pm
Apologies, i got mixed up, i remembered that if a table is referenced by a FK it cant be truncated, but thats not the case here, so yes, truncate...
July 22, 2019 at 4:54 pm
IF OBJECT_ID('tempdb..#gifts_to_give','U') IS NOT NULL
DROP TABLE #gifts_to_give;
SELECT *
INTO #gifts_to_give
FROM (VALUES
(1, 5, 'luis', 'Barcelona'),
(2, 3, 'pedro', 'Albacete'),
(3, 10, 'Antonio', 'Madrid')
) T(Id_give, number_of_gifts,...
July 22, 2019 at 3:32 pm
Do you mean literals not laterals?
The query with parameters will have a compiled plan that it reuses, so it looks like this plan is a better one than the one it...
July 22, 2019 at 2:51 pm
comment deleted
July 22, 2019 at 2:41 pm
the dynamic query uses the function
to_char
, which doesn't exist in SQL Server.
Looks like it might be some Oracle SQL.
July 18, 2019 at 1:51 pm
You can get the table names from INFORMATION_SCHEMA.TABLES
DECLARE @myCursor cursor;
SET @myCursor = cursor
FOR SELECT t1.TABLE_NAME,
t2.TABLE_NAME
...
July 18, 2019 at 9:49 am
Have you tried upgrading the files that have been converted to 2013 to 2014 instead of directly migrating the 2008 files?
July 16, 2019 at 1:16 pm
Hi select 100*(24698891)/39552506 i need answer 62.44 How can i reach the requirement? Any suggestion? Thanks in advance
select convert(decimal(9,2),100*(convert(decimal(15,4),24698891))/convert(decimal(15,4),39552506)) Percentage
July 16, 2019 at 1:29 am
I do, however, frequently explain Apply as being an implicit correlated sub-query that's easier to use than many correlated equi-join sub-queries.
I like to think of it as...
July 14, 2019 at 5:02 pm
Emph mine...
ANSI-89 style may have been a standard back in the day, but has long been supplemented. In fact it returns incomplete sets. There used to be a page...
July 13, 2019 at 7:45 pm
Viewing 15 posts - 1,486 through 1,500 (of 2,645 total)