Viewing 15 posts - 4,426 through 4,440 (of 11,678 total)
Something like this?
DECLARE @varPercentage INT = 50;
INSERT INTO @varTable2 (myColumns)
SELECT TOP (@varPercentage) PERCENT myColumns
FROM @varTable1;
I assume @varTable1 and @varTable2 are table variables?
October 20, 2013 at 2:16 pm
In contrast with Jeff, I know (quite) a lot about SSIS.
DO NOT USE SSIS FOR THIS.
Use dynamic SQL for this (as Jeff mentioned).
If I would need to do this in...
October 20, 2013 at 1:44 pm
Personally, I would also choose for the 2012 exams.
Your knowledge will be up to date and ready for the future (SQL Server 2012 will be released soon).
And, if you know...
October 20, 2013 at 1:42 pm
Easy one to start the week. Thanks!
October 20, 2013 at 1:35 pm
GilaMonster (10/18/2013)
Koen, you are awesome. 🙂Koen Verbeeck (10/18/2013)
hoseam (10/18/2013)
I don't have a backupSorry to hear that.
Let this be an incentive to implement a backup plan.
:hehe:
I know I know 🙂
But when...
October 20, 2013 at 1:32 pm
Steve Jones - SSC Editor (10/18/2013)
It's definitely nice to touch people online.
Sounds weird when taken out of context 😀
October 20, 2013 at 1:30 pm
kevaburg (10/19/2013)
Richard Warr (10/18/2013)
Alternatively, petition for the UNDROP TABLE command to be introduced in SQL Server 2016.Hope you found a way to get the table recreated from somewhere.
Personally I would...
October 20, 2013 at 1:25 pm
Typically you would use Analysis Services as a back-end for PerformancePoint.
Unless there are any Enterprise features of SSAS that you need, I would think standard edition would suffice.
BI edition is...
October 20, 2013 at 12:59 pm
Created your table, your function and executed the query without a problem.
Which version of SQL Server are you using?
October 18, 2013 at 7:35 am
Most of the time you will get the order in which the rows were inserted, unless you use indexes.
It is however not 100% garantueed that you will always get the...
October 18, 2013 at 7:20 am
sirishgreen (10/18/2013)
Thanks for the quick response.Unfortunately I am already running them separately.
weird.
Weird indeed.
Can you post table DDL and some sample data, so that I can replicate the exact same set-up?
October 18, 2013 at 7:13 am
Do you execute both statements at the same time?
If yes, try creating the function first and then execute the statement with cross apply.
I took your code and modified it to...
October 18, 2013 at 6:51 am
hoseam (10/18/2013)
I don't have a backup
Sorry to hear that.
Let this be an incentive to implement a backup plan.
October 18, 2013 at 6:30 am
Restore a backup. I hope you have backups.
October 18, 2013 at 6:07 am
vigneshlagoons (10/18/2013)
I use this query and I get to see duplicate rows showing up for each row.
CREATE PROC Rep
AS
DECLARE @ReportingViews varchar
DECLARE @User varchar
SET @ReportingViews= CASE WHEN EXISTS(SELECT...
October 18, 2013 at 5:55 am
Viewing 15 posts - 4,426 through 4,440 (of 11,678 total)