Viewing 15 posts - 1,666 through 1,680 (of 2,458 total)
Sorry, I almost forgot about this post. I put together an example of how you would do what I was talking about; attached is the RDL so you can just...
March 27, 2015 at 3:48 pm
chrisn-585491 (3/25/2015)
March 27, 2015 at 2:54 pm
I am still working on a solution to this, (I thought I had something but just saw your reply to Jeff)...
In the meantime I came up with a better way...
March 27, 2015 at 11:12 am
This is a somewhat ambiguous request. Can you explain what the @NewID, @GroupID, and @i variables are for. We're those something you were attempting to use to solve this...
March 27, 2015 at 2:52 am
Not to take anything away from what joe put together for you I bet if you put Eirikur's solution into an inline table valued function it would perform much better...
March 27, 2015 at 2:37 am
others bemoan the demise of isql/w
Yep. I was one of those people. This thread brought back some memories.
I do all my SQL in SSMS. SS%S happens in Visual Studio.
March 27, 2015 at 2:18 am
Alvin Ramard (3/26/2015)
Grant Fritchey (3/26/2015)
Piling on....
Now, multi-statement, table-valued, user-defined functions on the other hand, those things are all things evil.
You mean in a trigger? 😀
I suspect he meant that...
March 26, 2015 at 4:23 pm
Lowell (3/26/2015)
in a measly 1000 iterations,these were my stats:
2113 milliseconds for Drop and Recreate
543 milliseconds for Truncate Existing Table
and my...
March 26, 2015 at 4:17 pm
Just to add to what Magoo said, if you don't have a dates table (and can't create one) you could create a stored proc that produces one like so (just...
March 26, 2015 at 3:25 pm
I don't think there is anything wrong with Triggers when used for the right reasons and used correctly. I have seen people do bad things with triggers.
Dwain Camps recently...
March 26, 2015 at 2:33 pm
There is no difference between truncating a temp table vs dropping/recreating it. Truncating and dropping/recreating a table can be measured in milliseconds.
As Alexander said - it would be good...
March 26, 2015 at 2:24 pm
Had a few moments to kill...
USE tempdb
GO
-- It's always good to provide sample data in an easily usable format like so
CREATE TABLE dbo.
([year] int not null,
Client_Name varchar(100) not...
March 26, 2015 at 12:16 pm
PHYData DBA (3/24/2015)
Alan.B (3/23/2015)
March 26, 2015 at 10:31 am
SELECT * FROM
(
SELECT LocationID, LanguageID ,LocationLanguageRecID,
row_number() over (partition by LOCATIONID
order by LocationLanguageRecID) LineNumber
FROM LocationLanguages
) X
WHERE LineNumber = 2
March 24, 2015 at 6:56 pm
Luis Cazares (3/24/2015)
Alan.B (3/24/2015)
Luis Cazares (3/24/2015)
WITH Letters AS(
SELECT TOP 26 CHAR(ROW_NUMBER() OVER(ORDER BY (SELECT NULL)) + 64) letter
FROM...
March 24, 2015 at 4:41 pm
Viewing 15 posts - 1,666 through 1,680 (of 2,458 total)