Click here to Skip to main content
15,891,136 members
Home / Discussions / Database
   

Database

 
AnswerRe: How can i extract numeric values from varchar Pin
Blue_Boy15-Dec-08 23:11
Blue_Boy15-Dec-08 23:11 
GeneralRe: How can i extract numeric values from varchar Pin
snehasish16-Dec-08 2:26
snehasish16-Dec-08 2:26 
GeneralRe: How can i extract numeric values from varchar Pin
Blue_Boy16-Dec-08 5:18
Blue_Boy16-Dec-08 5:18 
GeneralRe: How can i extract numeric values from varchar Pin
snehasish16-Dec-08 8:31
snehasish16-Dec-08 8:31 
GeneralRe: How can i extract numeric values from varchar Pin
Blue_Boy16-Dec-08 11:12
Blue_Boy16-Dec-08 11:12 
QuestionSplit the Delimiters Pin
cbe_pav15-Dec-08 18:39
cbe_pav15-Dec-08 18:39 
AnswerRe: Split the Delimiters Pin
Ashfield15-Dec-08 21:05
Ashfield15-Dec-08 21:05 
QuestionGet the following query down to one execution Pin
Sunset Towers15-Dec-08 11:03
Sunset Towers15-Dec-08 11:03 
Still being fairly new to SQL I let SSMS write alot of the script for me when I can.
The problems is I have not had a chance to dive into the create table stuff and other aspects of SQL, but I need to get the following code down into a single Create Table Command rather than the create then alter table.

If this isn't possible, then I'll run the extra commands.

CREATE TABLE [dbo].[Table_1](
	[RecordID] [bigint] IDENTITY(1,1) NOT NULL,
	[Disposition] [nvarchar](50) NULL,
	[First] [nvarchar](50) NULL,
	[Middle] [nvarchar](50) NULL,
	[Last] [nvarchar](50) NULL,
	[Suffix] [nvarchar](5) NULL,
	[Address1] [nvarchar](100) NULL,
	[Address2] [nvarchar](100) NULL,
	[City] [nvarchar](50) NULL,
	[State] [nvarchar](2) NULL,
	[ZipCode] [nvarchar](10) NULL,
	[FileName] [nvarchar](100) NULL,
	[CheckedOut] [nvarchar](5) NULL,
	[CheckedOutDateTime] [datetime] NULL,
	[Completed] [nvarchar](5) NULL,
	[ReturnedFailed] [nvarchar](5) NULL,
	[ImportedRecord] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

ALTER TABLE [dbo].[Table_1] ADD  CONSTRAINT [DF_Table_1_CheckedOut]  DEFAULT ('false') FOR [CheckedOut]
GO

ALTER TABLE [dbo].[Table_1] ADD  CONSTRAINT [DF_Table_1_Completed]  DEFAULT ('false') FOR [Completed]
GO

ALTER TABLE [dbo].[Table_1] ADD  CONSTRAINT [DF_Table_1_ReturnedFailed]  DEFAULT ('false') FOR [ReturnedFailed]

AnswerRe: Get the following query down to one execution Pin
Wendelius15-Dec-08 11:16
mentorWendelius15-Dec-08 11:16 
GeneralRe: Get the following query down to one execution Pin
Sunset Towers15-Dec-08 12:00
Sunset Towers15-Dec-08 12:00 
GeneralRe: Get the following query down to one execution Pin
Wendelius16-Dec-08 5:51
mentorWendelius16-Dec-08 5:51 
QuestionQuestion about "stalled" snapshot in an Oracle database Pin
Nostrom015-Dec-08 9:46
Nostrom015-Dec-08 9:46 
AnswerRe: Question about "stalled" snapshot in an Oracle database Pin
Wendelius15-Dec-08 10:31
mentorWendelius15-Dec-08 10:31 
QuestionRelocate the datbase Pin
samerh15-Dec-08 0:53
samerh15-Dec-08 0:53 
AnswerRe: Relocate the datbase Pin
Colin Angus Mackay15-Dec-08 3:03
Colin Angus Mackay15-Dec-08 3:03 
QuestionTrigger error. help me plz Pin
Karan_TN14-Dec-08 19:37
Karan_TN14-Dec-08 19:37 
AnswerRe: Trigger error. help me plz Pin
Ashfield14-Dec-08 21:29
Ashfield14-Dec-08 21:29 
AnswerRe: Trigger error. help me plz Pin
Colin Angus Mackay14-Dec-08 23:20
Colin Angus Mackay14-Dec-08 23:20 
QuestionJoining two columns together Pin
Muammar©13-Dec-08 20:23
Muammar©13-Dec-08 20:23 
AnswerRe: Joining two columns together Pin
Mycroft Holmes13-Dec-08 20:37
professionalMycroft Holmes13-Dec-08 20:37 
AnswerRe: Joining two columns together Pin
Mycroft Holmes13-Dec-08 20:38
professionalMycroft Holmes13-Dec-08 20:38 
GeneralRe: Joining two columns together Pin
Muammar©13-Dec-08 21:01
Muammar©13-Dec-08 21:01 
GeneralRe: Joining two columns together Pin
Mycroft Holmes14-Dec-08 14:03
professionalMycroft Holmes14-Dec-08 14:03 
GeneralRe: Joining two columns together Pin
Muammar©14-Dec-08 18:29
Muammar©14-Dec-08 18:29 
Questioncan't get "# of rows affected" when executing a tored procedure Pin
Mohammad A Gdeisat12-Dec-08 22:48
Mohammad A Gdeisat12-Dec-08 22:48 

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.