[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Lookup a table sideways with row names.  Is there another way?

Asked by Coolhand2120 in MS SQL Server

Tags: sideways, table, contact

I have a function that reads thru an array that looks like the first array below in order to look for each input name on a ASP form.  The question is, is there a better way than the bulky crap below to select a table with it's column names in this format.

Thanks!

-Coolhand2120

Example of desired output (array 2D comma and crlf delemeted):
ContactID,{D31CCA6F-0A2B-44B2-AD45-F3B2B713AE52}
FirstName,Bob
LastName,Rogers
Addresss,12345 E 4th St.
etc...

Rather than (what you'd get with getrows())
{D31CCA6F-0A2B-44B2-AD45-F3B2B713AE52},0
Bob,0
Rogers,0
12345 E 4th St.,0

Bulky thing I'm using now

ALTER  PROCEDURE contactArray (@contactID as uniqueidentifier)
AS
select 'ContactID', (select contactID from contacts where contactID = @contactID)
union all
select 'FirstName',(select FirstName from contacts where contactID = @contactID)
union all
select 'LastName',(select LastName from contacts where contactID = @contactID)
union all
select 'Address1',(select Address1 from contacts where contactID = @contactID)
union all
select 'Address2',(select Address1 from contacts where contactID = @contactID)
union all
select 'City',(select City from contacts where contactID = @contactID)
union all
select 'State',(select State from contacts where contactID = @contactID)
union all
select 'ZIP',(select ZIP from contacts where contactID = @contactID)
union all
select 'Country',(select Country from contacts where contactID = @contactID)
union all
select 'HomePhone',(select HomePhone from contacts where contactID = @contactID)
union all
select 'WorkPhone',(select WorkPhone from contacts where contactID = @contactID)
union all
select 'Email',(select Email from contacts where contactID = @contactID)
union all
select 'SpecialInstructions',(select SpecialInstructions from contacts where contactID = @contactID)
union all
select 'Comments',(select Comments from contacts where contactID = @contactID)
[+][-]01/17/06 01:19 AM, ID: 15718035Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/17/06 02:00 AM, ID: 15718218Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/18/06 03:57 AM, ID: 15727741Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/18/06 10:52 PM, ID: 15736765Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/19/06 12:31 AM, ID: 15737085Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/19/06 05:04 PM, ID: 15745285Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/19/06 05:24 PM, ID: 15745425Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/20/06 12:37 AM, ID: 15747280Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: MS SQL Server
Tags: sideways, table, contact
Sign Up Now!
Solution Provided By: nmcdermaid
Participating Experts: 2
Solution Grade: A
 
[+][-]03/18/06 09:52 AM, ID: 16225521Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]03/18/06 12:12 PM, ID: 16226252Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81