Viewing 15 posts - 376 through 390 (of 670 total)
This is starting to sound like a homework project. What have you tried so far? Your original post said that it was a 1 column table that was...
May 11, 2011 at 6:56 am
I think you want to pivot on the [11Item Date Closed] column. The column names shouldn't have spaces in them. Try this
Create table #t
([3Marketplace Order ID] [nvarchar](138) NULL,
[1Request...
May 11, 2011 at 6:47 am
Do you have any examples of the XML you are currently using? What have you tried so far?
May 11, 2011 at 6:30 am
If the results don't matter, then why do it? What if there is a 3rd entry for Canada? What are the results supposed to be?
Here's a...
May 10, 2011 at 12:01 pm
why are you using a script task? It can be done in an Execute SQL Task. Also, it should probably be performed through calling a stored procedure and...
May 9, 2011 at 7:29 am
This looks like a nicely disguised ad. Doesn't belong here.
May 6, 2011 at 12:53 pm
basically, what we do is create an Archive table and a worktable in the same layout as the partition. These tables are created in the same filegroup as the...
May 6, 2011 at 12:47 pm
What does it say in the Windows Event Log? What login are you using to start the service?
May 6, 2011 at 12:38 pm
what are your counts? my guess would be one of them is null, so it will never get into either of your if statements.
May 6, 2011 at 9:30 am
I'm not really sure what you're asking. This while loop will continue looping through all records until the rowcount <> 10000. Presumably, the last insert will only add...
May 6, 2011 at 9:12 am
The Charindex finds the location of the first comma, you just need to subtract 1 from it
Declare @t table (Name1 varchar(30))
insert into @t
values('Rondo, Rajon'),
('Garnett, Kevin'),
('Allen, Ray'),
('Pierce, Paul')
SELECT ...
May 6, 2011 at 8:35 am
You can either use a While loop to insert the records or create an SSIS package and set the Maximum Insert Commit Size on the component. Just beware that...
May 6, 2011 at 8:30 am
It's possible that there is a deadlocking issue going on. How often does the proc get called? Is it possible that the update is running into locked records...
May 6, 2011 at 6:29 am
Do you have an example of the XML data you are working with and then your expected results?
May 6, 2011 at 6:22 am
Viewing 15 posts - 376 through 390 (of 670 total)