Viewing 15 posts - 6,706 through 6,720 (of 7,164 total)
Thanks for the response. That's not exactly what I was asking. I know how to get data out of a database using an OLE DB source into a variable or...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 4:23 pm
Here too is an article from Kim Tripp on the topic: http://www.sqlmag.com/blogs/sql-server-questions-answered/sql-server-questions-answered/entryid/76182/dynamic-sql-vs-option-recompile
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 3:22 pm
trevor.howe (4/7/2011)
I have been trawling the web to find out if there is a way to create a simple string manipulation udf that returns a variable length string after the...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 2:42 pm
To rename login someone to someone_else:
ALTER LOGIN [someone] WITH NAME = [someone_else];
To rename database user someone to someone_else in database some_database:
USE [some_database]
GO
ALTER USER [someone] WITH NAME = [someone_else] ;
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 2:03 pm
misiekbest (4/7/2011)
Question is simple. What does sqlsrv engine do with table after truncate command?
Someone told me, that it just rename that table (internally?), create new one and drop renamed...
Well,...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 12:18 pm
It sounds like CTEs might help you avoid staging tables and allow you to get results with one pass over the data...but it's hard to tell. I am sure it's...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 12:00 pm
The aggregate I posted will not prevent duplicates from entering the concatenated string. You can however provide the DISTINCT keyword. The example in my attachment has this query:
SELECT DocID,
...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 11:23 am
Not surprising given the usual finds on the internets but the CLR code would not compile out the box...however after some polishing the little nugget works.
Mark, sorting is a can...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 10:43 am
I hear ya Jeff...I am planning on addressing Mark's question and testing the CLR method for performance...it would be cool to have this as a drop-in but I must admit...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 9:15 am
Your original post references a file with a .csv extension...did you switch to using a real Excel Workbook file?
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 9:11 am
gregory.anderson (4/7/2011)
Yep, even adding the Identity_Insert stuff it still throws the error "cannot insert unless specifying Indentity_isnert....."
David is going to get you there...but you completely missed that I added a...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 8:08 am
Brandie Tarvin (4/7/2011)
Or maybe it was the guy at Simple Talk who...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 8:01 am
Great, I am happy you found a solution. Would you mind posting what you did so others who find this post from a search engine can benefit as well?
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 7, 2011 at 7:59 am
Nope...I think you;re good...misunderstood what you were doing. You can open the package you saved out of the I/E Wizard in Visual Studio and continue to build it out using...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 6, 2011 at 3:12 pm
JimS-Indy (4/6/2011)
My issue is with scope. I lose the SS variables when the query is executed. What's the strategy for...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 6, 2011 at 2:56 pm
Viewing 15 posts - 6,706 through 6,720 (of 7,164 total)