Viewing 15 posts - 7,441 through 7,455 (of 8,731 total)
You're welcome. I was gladly surprised the first time I realized that I could update/delete a CTE (is mostly like views).
November 20, 2013 at 9:18 am
If you want to learn and practice, a good free resource can be Microsoft Virtual Academy.
November 20, 2013 at 9:09 am
Remember to have in mind the data type that ISNULL and COALESCE return.
ISNULL will try to convert the second expression to the data type of the first expression.
COALESCE will convert...
November 19, 2013 at 5:54 pm
It's no longer a free edition. For a free edition it would say Evaluation Edition
November 19, 2013 at 3:49 pm
Here's a more concise way to do it. You can update the table by updating the CTE.;-)
WITH CTE AS(
SELECT *, ROW_NUMBER() OVER( PARTITION BY ID ORDER BY ltr) rn
FROM #tmp
)
UPDATE...
November 19, 2013 at 3:24 pm
The data flow will insert the data. If the file doesn't exist then it will create it. In fact, when the file doesn't exist, you have to define as well...
November 19, 2013 at 3:11 pm
LinksUp (11/19/2013)
pmscorca (11/19/2013)
Ultimately, the batch approach seems the better solution ..., isn't it?
Test, test, and test!!
There are a number of techniques to populate a test table with millions of rows...
November 19, 2013 at 2:56 pm
You could create a connection and change in the Expressions property to change the ConnectionString Property to something like this:
"C:\\MyPath\\"+ (DT_STR, 50, 1252) (MONTH(GETDATE()) == 1 ? "January" : MONTH(GETDATE())...
November 19, 2013 at 1:50 pm
The Import/Export Wizard creates a "real SSIS" package, which you can save and open to edit or just review it and maybe run it again.
It's a great tool for starters...
November 19, 2013 at 1:40 pm
A "large amount of data" might vary depending on the infrastructure of your company.
If you right click on your database and then choose Tasks-> Import Data... you will get a...
November 19, 2013 at 1:25 pm
Maybe an SSIS package would be a better option if your doing a big load.
To insert to a "local" table using a linked server, just use the insert into as...
November 19, 2013 at 12:16 pm
Use a DELETE in batches.
DECLARE @i int = 1
WHILE @i > 0
BEGIN
DELETE TOP (1000000)...
November 19, 2013 at 11:07 am
Sean Lange (11/19/2013)
November 19, 2013 at 8:29 am
And now correcting previous posted queries as they had syntax errors.
Select distinct IDID,
Data= REPLACE((Select distinct t1.data as [data()]
From #Unpivot t1
Where t1.IDID = t2.IDID
Order by t1.data FOR XML...
November 19, 2013 at 8:24 am
I'm just modifying Dwain's query to reduce the code by using dense_rank.
WITH SampleData (ID, Data) AS
(
SELECT 'A', 'P1' UNION ALL
SELECT 'A', 'P1' UNION ALL
SELECT 'A', 'P2' UNION ALL
SELECT 'A', 'P2'...
November 19, 2013 at 8:17 am
Viewing 15 posts - 7,441 through 7,455 (of 8,731 total)