Click here to Skip to main content
15,922,155 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
caiguosen21-Jan-10 0:58
caiguosen21-Jan-10 0:58 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
Eddy Vluggen21-Jan-10 1:25
professionalEddy Vluggen21-Jan-10 1:25 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
caiguosen23-Jan-10 21:50
caiguosen23-Jan-10 21:50 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
Eddy Vluggen24-Jan-10 1:47
professionalEddy Vluggen24-Jan-10 1:47 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
caiguosen24-Jan-10 2:05
caiguosen24-Jan-10 2:05 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
Eddy Vluggen24-Jan-10 4:54
professionalEddy Vluggen24-Jan-10 4:54 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
caiguosen24-Jan-10 16:23
caiguosen24-Jan-10 16:23 
Questionfixing table for looping through checkboxlist. Pin
macupryk16-Jan-10 12:18
macupryk16-Jan-10 12:18 
Reference to the following article:
http://www.codersbarn.com/post/2008/10/12/Bind-CheckBoxList-to-DataSet.aspx

I created the following table

1) Should I set all the MusicFeature values by default to zero.
2) How should I create foreign constraits. ProfileID.
3) ProfileID is used in a tbl_Prrofile and is a primary key.
4) How should this table be fixed. Also I need to keep in mind what should be null.

CREATE




TABLE [dbo].[tbl_Music](

[MusicID] [int]

IDENTITY(1,1) NOT NULL,

[ProfileID] [int]

NULL,

[MusicText] [nvarchar]

(64) NOT NULL,

[MusicFeature] [bit]

NULL,



CONSTRAINT [PK_tbl_lookup_music] PRIMARY KEY CLUSTERED

(

[MusicID]

ASC

)



WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

)



ON [PRIMARY]

--------------------------------


CREATE



TABLE [dbo].[tbl_Profile](

[ProfileID] [int]

IDENTITY(1,1) NOT NULL,

[UserID] [nvarchar]

(50) NULL,

[UserName] [nvarchar]

(50) NULL,











CONSTRAINT [PK_tbl_Profile] PRIMARY KEY CLUSTERED

(

[ProfileID]

ASC

)



WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

)



ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO


SET



ANSI_PADDING OFF
-----------------------------------
tbl_Music.
MusicID ProfileID MusicText MusicFeature


1 NULL Prefer not to say NULL
2 NULL African NULL
3 NULL Blues NULL
4 NULL Caribbean NULL
GeneralThe Secret $5680 in 24 Hour Strategy Pin
mFarooq7215-Jan-10 14:38
mFarooq7215-Jan-10 14:38 
GeneralRe: The Secret $5680 in 24 Hour Strategy Pin
Mycroft Holmes15-Jan-10 16:27
professionalMycroft Holmes15-Jan-10 16:27 
QuestionUsing table Variables Create outside a UDF inside a UDF Pin
Vimalsoft(Pty) Ltd15-Jan-10 1:08
professionalVimalsoft(Pty) Ltd15-Jan-10 1:08 
AnswerRe: Using table Variables Create outside a UDF inside a UDF Pin
Mycroft Holmes15-Jan-10 16:33
professionalMycroft Holmes15-Jan-10 16:33 
GeneralRe: Using table Variables Create outside a UDF inside a UDF Pin
Vimalsoft(Pty) Ltd16-Jan-10 20:01
professionalVimalsoft(Pty) Ltd16-Jan-10 20:01 
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 
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 

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.