Viewing 15 posts - 1,666 through 1,680 (of 2,463 total)
Since nobody else is providing a solution I'll give it a try. I am simplifying the query against sys.columns because I don't really understand what you are doing. That said,...
-- Itzik Ben-Gan 2001
April 1, 2015 at 8:18 pm
You could also modify your stored proc (or ad hoc query) that feeds the dataset to format the data before it gets to SSRS. Your query would look something like...
-- Itzik Ben-Gan 2001
April 1, 2015 at 8:12 pm
If you wanted to get a column to act like an identity column but to be a uniqueidentifier instead of an int you could do this:
CREATE TABLE dbo.yourtable
(
pk_col AS newid(),
xxx...
-- Itzik Ben-Gan 2001
April 1, 2015 at 7:49 pm
Eirikur Eiriksson (3/31/2015)
ScottPletcher (3/31/2015)
-- Itzik Ben-Gan 2001
March 31, 2015 at 1:30 pm
Thanks Luis. That stack overflow thread led me in the right direction.
-- Itzik Ben-Gan 2001
March 31, 2015 at 1:22 pm
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...
-- Itzik Ben-Gan 2001
March 27, 2015 at 3:48 pm
chrisn-585491 (3/25/2015)
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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.
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
March 26, 2015 at 2:33 pm
Viewing 15 posts - 1,666 through 1,680 (of 2,463 total)