Viewing 15 posts - 6,706 through 6,720 (of 7,168 total)
steve smith-401573 (4/8/2011)
Environment: SS 2008 SE, minimal installation (client tools, basic db only. No SSRS, no SSIS)
BCP is a good candidate for this kind of work. It can...
April 8, 2011 at 9:15 am
bozzybox (4/7/2011)
As requested by Mr or Mrs. 500, here is an overview...
April 7, 2011 at 11:35 pm
That's good info, thanks for your responses.
April 7, 2011 at 10:30 pm
Do you have any experience using the technique? Can you speak to how well it scales?
April 7, 2011 at 5:39 pm
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...
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
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...
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] ;
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,...
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...
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,
...
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...
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...
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?
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...
April 7, 2011 at 8:08 am
Viewing 15 posts - 6,706 through 6,720 (of 7,168 total)