Click here to Skip to main content
15,892,537 members
Home / Discussions / Database
   

Database

 
AnswerRe: Using table Variables Create outside a UDF inside a UDF Pin
Eddy Vluggen17-Jan-10 6:06
professionalEddy Vluggen17-Jan-10 6:06 
QuestionHow to retrieve column names of table based on conditions in data [Solved] Pin
James Shao14-Jan-10 21:42
James Shao14-Jan-10 21:42 
AnswerRe: How to retrieve column names of table based on conditions in data Pin
Ashfield14-Jan-10 21:50
Ashfield14-Jan-10 21:50 
AnswerRe: How to retrieve column names of table based on conditions in data Pin
Eddy Vluggen15-Jan-10 1:19
professionalEddy Vluggen15-Jan-10 1:19 
GeneralRe: How to retrieve column names of table based on conditions in data Pin
James Shao15-Jan-10 14:52
James Shao15-Jan-10 14:52 
AnswerRe: How to retrieve column names of table based on conditions in data Pin
Luc Pattyn15-Jan-10 1:52
sitebuilderLuc Pattyn15-Jan-10 1:52 
GeneralRe: How to retrieve column names of table based on conditions in data Pin
James Shao15-Jan-10 14:56
James Shao15-Jan-10 14:56 
GeneralRe: How to retrieve column names of table based on conditions in data Pin
Mycroft Holmes15-Jan-10 16:41
professionalMycroft Holmes15-Jan-10 16:41 
Go with Luc's suggestion rethink your data structure, this one will drive you nuts. Try this

CREATE TABLE [dbo].[Attr](
	[AttrID] [int] IDENTITY(1,1) NOT NULL,
        [CustomerID] int,
	[AttrType]  [varchar](255) NULL,
	[AttrValue] [varchar](255) NULL,
	[Modified] [datetime] NULL,
	[ModifiedBy] [varchar](50) NULL)

Where AttrType = your column Name and AttrValue = 1/0.
CustomerID is the foreign key to the entity you are applying the attributes to.

You would only have 4 rows representing the ACDF colums (0 deemed to not exist)

Never underestimate the power of human stupidity
RAH

QuestionStoring Image file in sql 2005 Pin
Member 451421814-Jan-10 14:52
Member 451421814-Jan-10 14:52 
AnswerRe: Storing Image file in sql 2005 Pin
loyal ginger14-Jan-10 15:12
loyal ginger14-Jan-10 15:12 
AnswerRe: Storing Image file in sql 2005 Pin
Ashfield14-Jan-10 21:20
Ashfield14-Jan-10 21:20 
Questionsqlite query Pin
jashimu14-Jan-10 8:27
jashimu14-Jan-10 8:27 
QuestionAbout MS Access Pin
Hum Dum13-Jan-10 18:21
Hum Dum13-Jan-10 18:21 
AnswerRe: About MS Access Pin
Mycroft Holmes13-Jan-10 18:29
professionalMycroft Holmes13-Jan-10 18:29 
AnswerRe: About MS Access Pin
_Damian S_13-Jan-10 18:53
professional_Damian S_13-Jan-10 18:53 
GeneralRe: About MS Access Pin
Hum Dum13-Jan-10 19:45
Hum Dum13-Jan-10 19:45 
GeneralRe: About MS Access Pin
_Damian S_13-Jan-10 19:51
professional_Damian S_13-Jan-10 19:51 
GeneralRe: About MS Access Pin
Hum Dum13-Jan-10 20:08
Hum Dum13-Jan-10 20:08 
GeneralRe: About MS Access Pin
The Man from U.N.C.L.E.14-Jan-10 6:40
The Man from U.N.C.L.E.14-Jan-10 6:40 
Questionproblem with conversion of a char data type to a datetime data type Pin
Payal_e_m13-Jan-10 17:06
Payal_e_m13-Jan-10 17:06 
AnswerRe: problem with conversion of a char data type to a datetime data type Pin
Mycroft Holmes13-Jan-10 18:24
professionalMycroft Holmes13-Jan-10 18:24 
GeneralRe: problem with conversion of a char data type to a datetime data type Pin
Payal_e_m14-Jan-10 14:38
Payal_e_m14-Jan-10 14:38 
QuestionNeed help with what seems to be an easy SQL query.... Pin
James Shao13-Jan-10 4:18
James Shao13-Jan-10 4:18 
AnswerRe: Need help with what seems to be an easy SQL query.... [modified] Pin
Luc Pattyn13-Jan-10 4:40
sitebuilderLuc Pattyn13-Jan-10 4:40 
AnswerRe: Need help with what seems to be an easy SQL query.... Pin
loyal ginger13-Jan-10 5:36
loyal ginger13-Jan-10 5:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.