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

Database

 
AnswerRe: Create Clustered Index on VIEW Pin
Ashfield26-Jun-08 3:44
Ashfield26-Jun-08 3:44 
GeneralRe: Create Clustered Index on VIEW Pin
Ahmet GULBAY26-Jun-08 3:59
Ahmet GULBAY26-Jun-08 3:59 
GeneralRe: Create Clustered Index on VIEW Pin
Ashfield26-Jun-08 4:28
Ashfield26-Jun-08 4:28 
GeneralRe: Create Clustered Index on VIEW Pin
Mycroft Holmes27-Jun-08 1:23
professionalMycroft Holmes27-Jun-08 1:23 
GeneralRe: Create Clustered Index on VIEW Pin
Ahmet GULBAY26-Jun-08 5:35
Ahmet GULBAY26-Jun-08 5:35 
GeneralRe: Create Clustered Index on VIEW Pin
Ashfield26-Jun-08 21:27
Ashfield26-Jun-08 21:27 
Questioninserting into database Pin
Smithers-Jones26-Jun-08 3:08
Smithers-Jones26-Jun-08 3:08 
AnswerRe: inserting into database Pin
John_Adams26-Jun-08 3:58
John_Adams26-Jun-08 3:58 
Hi,

Since you have set the ID column as Identity it will be incremented automatically whenever a new record inserted into the table. You do not need to supply values for ID field via SQL-Command.

Try following SQL Command this works fine for me.


Create table table1 (ID int primary key identity not null, Name1 VarChar(30))

insert into table1 (Name1) values ('John Adams1')
insert into table1(Name1) values ('John Adams2')
insert into table1(Name1) values ('John Adams3')
insert into table1(Name1) values ('John Adams4')
insert into table1(Name1) values ('John Adams5')

Select * from table1

Hope this helps Smile | :) .

Regards,
John Adams
ComponentOne LLC

GeneralRe: inserting into database Pin
Smithers-Jones26-Jun-08 7:40
Smithers-Jones26-Jun-08 7:40 
GeneralRe: inserting into database Pin
Mark Churchill26-Jun-08 17:04
Mark Churchill26-Jun-08 17:04 
GeneralRe: inserting into database Pin
Smithers-Jones26-Jun-08 19:50
Smithers-Jones26-Jun-08 19:50 
QuestionURL truncation problem on URL based images in MSSQL Reporting services Pin
adamb.geoform26-Jun-08 2:14
adamb.geoform26-Jun-08 2:14 
Questioninsert statement Pin
taherjaorawala26-Jun-08 2:11
taherjaorawala26-Jun-08 2:11 
AnswerRe: insert statement Pin
Ashfield26-Jun-08 2:23
Ashfield26-Jun-08 2:23 
QuestionSQL reporting services - Dynamic field information Pin
Rashmi Deshpande25-Jun-08 20:46
Rashmi Deshpande25-Jun-08 20:46 
QuestionQuery for implementing the below? Pin
Karan_TN25-Jun-08 18:56
Karan_TN25-Jun-08 18:56 
AnswerRe: Query for implementing the below? Pin
Ashfield25-Jun-08 21:14
Ashfield25-Jun-08 21:14 
GeneralRe: Query for implementing the below? Pin
Karan_TN26-Jun-08 19:28
Karan_TN26-Jun-08 19:28 
QuestionConnection String Security Concerns Pin
jchalfant25-Jun-08 6:00
jchalfant25-Jun-08 6:00 
AnswerRe: Connection String Security Concerns Pin
Alsvha25-Jun-08 22:00
Alsvha25-Jun-08 22:00 
GeneralRe: Connection String Security Concerns Pin
jchalfant26-Jun-08 2:01
jchalfant26-Jun-08 2:01 
AnswerRe: Connection String Security Concerns Pin
Ashfield25-Jun-08 23:55
Ashfield25-Jun-08 23:55 
GeneralRe: Connection String Security Concerns Pin
jchalfant26-Jun-08 2:13
jchalfant26-Jun-08 2:13 
AnswerRe: Connection String Security Concerns Pin
Andy Brummer26-Jun-08 10:38
sitebuilderAndy Brummer26-Jun-08 10:38 
QuestionTrigger in SQL Server 2005 Pin
rrrriiizz25-Jun-08 2:32
rrrriiizz25-Jun-08 2:32 

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.