Viewing 15 posts - 5,026 through 5,040 (of 5,504 total)
Assuming you're trying to work with more than just a few rows per table (or more than one table) I'd consider keywords like CURSOR or WHILE as being a time...
August 24, 2009 at 3:47 pm
I think you should take the time to provide some SQL code to explain what you're looking for (including expected result). Please see the link in my signature on how...
August 24, 2009 at 3:33 pm
I'd recommend to shred the xml into a table with three columns (rowID, Field, Value) and either use a cross tab or a dynamic cross tab with this table.
If there...
August 24, 2009 at 3:11 pm
Hi Regina,
please take the time to read the article I referenced in my signature.
This article will guide you through the steps on how to post sample data. Based on your...
August 24, 2009 at 2:51 pm
May I kindly ask you to reread my previous post with focus on my last two statements?
Regarding your reply:
There is no way to come up with login names like MNT...
August 22, 2009 at 2:24 am
khalprin (8/21/2009)
Thanks, that works. I'll need to read up on OPENXML
Well, you don't have to (as shown in my previous post).
Before looking deeper into OPENXML instead of XQuery I'd...
August 21, 2009 at 1:49 pm
Hi,
in order to be able to use the value of an xml variable in a SELECT statement you have to assign it to a "pseudo column" using a FROM clause.
In...
August 21, 2009 at 1:33 pm
Your sample data do not really match your verbal description.
First set of data:
You're describing repeated data in one column.
But your sample contains duplicate values in 4 columns (LOGINNAME, SHIFTID, ISLATE...
August 21, 2009 at 1:22 pm
DBASkippack (8/21/2009)
please reply with technical solutions, not jibber jabber -- I can find that in the bafoons/democratic blogs.
If you consider asking for table definition and sample data as "jibber jabber",...
August 21, 2009 at 12:26 pm
As usual, the answer is "it depends".
If the xml file is not deeply nested and has just a few elements, performance difference over one or the other shouldn't be a...
August 21, 2009 at 12:24 am
I can think of only one option (since you've posted in SQL2K forum it's prior 2K5, I assume):
One of Jeff Modens great articles:
http://www.sqlservercentral.com/articles/T-SQL/63681/.
If you have trouble applying it to your...
August 20, 2009 at 3:13 pm
What is the specific reason for using a cursor in this case?
You can join the TRLR table within your insert statement.
Also you should think about replacing the temp table #tmp_recs_cnt_C...
August 20, 2009 at 3:04 pm
So, one of the business rules is "some companies have an edrs_no, but not all"?
In that case, either all rows per specific company should have an edrs_no, or none. Also...
August 20, 2009 at 2:38 pm
We're getting closer...
As expected in my first post ("Check if your suspicious results have rows in wce_contact with the same company name, but none or different edrs."):
Rows numbers 2 and...
August 20, 2009 at 9:59 am
John,
you could leave out the comment for the next developer. It's pretty much self explaining, isn't it? 😉
I, personally, would have added much less explanation in a procedure or documentation...
August 20, 2009 at 8:13 am
Viewing 15 posts - 5,026 through 5,040 (of 5,504 total)