Click here to Skip to main content
15,886,065 members
Home / Discussions / C#
   

C#

 
GeneralC# and SQL Autonumber Pin
Antonius_r327-May-04 18:06
Antonius_r327-May-04 18:06 
GeneralRe: C# and SQL Autonumber Pin
Grimolfr28-May-04 3:20
Grimolfr28-May-04 3:20 
GeneralRe: C# and SQL Autonumber Pin
Dave Kreskowiak28-May-04 3:26
mveDave Kreskowiak28-May-04 3:26 
GeneralRe: C# and SQL Autonumber Pin
Antonius_r328-May-04 7:26
Antonius_r328-May-04 7:26 
GeneralRe: C# and SQL Autonumber Pin
Dave Kreskowiak28-May-04 7:54
mveDave Kreskowiak28-May-04 7:54 
GeneralRe: C# and SQL Autonumber Pin
Antonius_r329-May-04 3:48
Antonius_r329-May-04 3:48 
GeneralRe: C# and SQL Autonumber Pin
Dave Kreskowiak29-May-04 14:25
mveDave Kreskowiak29-May-04 14:25 
GeneralRe: C# and SQL Autonumber Pin
Antonius_r329-May-04 18:56
Antonius_r329-May-04 18:56 
I thought I already have SELECT Command after INSERT on the stored procedure.
Do I need to add another one?

This is my stored procedure for the insert command:
<br />
ALTER PROCEDURE programservice.insert_job<br />
(<br />
@JobID int output,<br />
@CustomerID char(20),<br />
@Date datetime<br />
)<br />
AS<br />
SET NOCOUNT OFF;<br />
INSERT INTO dbo.table_job(CustomerID, Date) VALUES (@CustomerID, @Date);<br />
SELECT JobID, CustomerID, Date FROM dbo.tabel_job WHERE (JobID = @JobID)<br />
SET @JobID = SCOPE_IDENTITY()<br />


I still don't understand why can't I set null to the JobID dataset, since I already set the niilable properties to TRUE.

Is it possible to update or insert the data without the usage of Dataset? Since this is stored procedure, and I believe that the process took place on the database / Server.

Also, is there another way of creating autonumber ID like in this case?
The Database are very likely to be processed by more than one client at the same time.
GeneralRe: C# and SQL Autonumber Pin
Dave Kreskowiak30-May-04 3:22
mveDave Kreskowiak30-May-04 3:22 
GeneralRe: C# and SQL Autonumber Pin
Antonius_r331-May-04 13:02
Antonius_r331-May-04 13:02 
QuestionHow to make points well -distributed ? Pin
fu027-May-04 18:04
fu027-May-04 18:04 
AnswerRe: How to make points well -distributed ? Pin
Broken God28-May-04 20:17
Broken God28-May-04 20:17 
GeneralSNMP MIB : How to use it with C# Pin
youssef27-May-04 12:28
youssef27-May-04 12:28 
GeneralRe: SNMP MIB : How to use it with C# Pin
Dave Kreskowiak28-May-04 3:18
mveDave Kreskowiak28-May-04 3:18 
GeneralRe: SNMP MIB : How to use it with C# Pin
youssef28-May-04 3:42
youssef28-May-04 3:42 
GeneralRe: SNMP MIB : How to use it with C# Pin
Dave Kreskowiak28-May-04 3:48
mveDave Kreskowiak28-May-04 3:48 
GeneralRe: SNMP MIB : How to use it with C# Pin
youssef28-May-04 3:58
youssef28-May-04 3:58 
GeneralDock two forms Pin
Guinness4Strength27-May-04 11:41
Guinness4Strength27-May-04 11:41 
GeneralRe: Dock two forms Pin
Heath Stewart27-May-04 12:27
protectorHeath Stewart27-May-04 12:27 
GeneralRe: Dock two forms Pin
Guinness4Strength27-May-04 19:19
Guinness4Strength27-May-04 19:19 
GeneralRe: Dock two forms Pin
Dave Kreskowiak28-May-04 1:21
mveDave Kreskowiak28-May-04 1:21 
GeneralRe: Dock two forms Pin
Guinness4Strength28-May-04 3:16
Guinness4Strength28-May-04 3:16 
GeneralRe: Dock two forms Pin
Heath Stewart30-May-04 6:06
protectorHeath Stewart30-May-04 6:06 
GeneralRe: Dock two forms Pin
Guinness4Strength1-Jun-04 6:45
Guinness4Strength1-Jun-04 6:45 
GeneralRe: Dock two forms Pin
Heath Stewart1-Jun-04 6:50
protectorHeath Stewart1-Jun-04 6:50 

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.