Click here to Skip to main content
15,886,873 members
Home / Discussions / Database
   

Database

 
GeneralRe: Number of Records Pin
T.RATHA KRISHNAN5-Oct-10 2:04
T.RATHA KRISHNAN5-Oct-10 2:04 
GeneralRe: Number of Records Pin
NeverHeardOfMe5-Oct-10 2:14
NeverHeardOfMe5-Oct-10 2:14 
GeneralRe: Number of Records Pin
T.RATHA KRISHNAN5-Oct-10 2:21
T.RATHA KRISHNAN5-Oct-10 2:21 
QuestionAdding new data in two tables [modified] Pin
Erdinc274-Oct-10 23:05
Erdinc274-Oct-10 23:05 
AnswerRe: Adding new data in two tables Pin
Gerben Jongerius4-Oct-10 23:39
Gerben Jongerius4-Oct-10 23:39 
GeneralRe: Adding new data in two tables Pin
Erdinc274-Oct-10 23:58
Erdinc274-Oct-10 23:58 
GeneralRe: Adding new data in two tables Pin
Mycroft Holmes5-Oct-10 0:25
professionalMycroft Holmes5-Oct-10 0:25 
GeneralRe: Adding new data in two tables Pin
Erdinc275-Oct-10 1:27
Erdinc275-Oct-10 1:27 
Alter Procedure sp_TablolaraEkle
@marka_ad nvarchar(50),
@model_ad nvarchar(50)
as
Begin
Set Nocount on
Declare @id int
Declare @Marka nvarchar(50)
Select @id=id From Marka where marka_ad=@marka_ad
IF isnull(@id,0)=0
BEGIN
INSERT INTO Marka(marka_ad) values (@marka_ad)
SELECT @id=@@Identity
insert into Model(marka_id,model_ad)values (@id,@model_ad)
END
Else
BEGIN
insert into Model (marka_id,model_ad) values(@id,@model_ad)
END
End
ok man i altered my procedure like it and it works now as i wished..thanks for your help...
QuestionDeploying Reports for Reporting Services Pin
dwolver4-Oct-10 9:38
dwolver4-Oct-10 9:38 
NewsConcatenate two or more rows single string in SQL Pin
Sunasara Imdadhusen4-Oct-10 3:17
professionalSunasara Imdadhusen4-Oct-10 3:17 
GeneralRe: Concatenate two or more rows single string in SQL Pin
Blue_Boy4-Oct-10 3:37
Blue_Boy4-Oct-10 3:37 
GeneralRe: Concatenate two or more rows single string in SQL Pin
Mycroft Holmes4-Oct-10 12:06
professionalMycroft Holmes4-Oct-10 12:06 
GeneralRe: Concatenate two or more rows single string in SQL Pin
Sunasara Imdadhusen4-Oct-10 20:19
professionalSunasara Imdadhusen4-Oct-10 20:19 
QuestionTransaction to update multipel values in a table Pin
diePopster3-Oct-10 23:57
diePopster3-Oct-10 23:57 
AnswerRe: Transaction to update multipel values in a table Pin
Blue_Boy4-Oct-10 0:13
Blue_Boy4-Oct-10 0:13 
AnswerRe: Transaction to update multipel values in a table Pin
Pete O'Hanlon4-Oct-10 0:14
mvePete O'Hanlon4-Oct-10 0:14 
QuestionRe: Transaction to update multipel values in a table Pin
diePopster4-Oct-10 0:20
diePopster4-Oct-10 0:20 
AnswerRe: Transaction to update multipel values in a table Pin
Pete O'Hanlon4-Oct-10 1:02
mvePete O'Hanlon4-Oct-10 1:02 
QuestionSQL 2008 - Nested transactions Pin
ofirbt3-Oct-10 2:06
ofirbt3-Oct-10 2:06 
AnswerRe: SQL 2008 - Nested transactions Pin
masoumeh20104-Oct-10 22:41
masoumeh20104-Oct-10 22:41 
GeneralRe: SQL 2008 - Nested transactions Pin
ofirbt4-Oct-10 23:22
ofirbt4-Oct-10 23:22 
QuestionCan we use sql connections for threads? Pin
pubududilena3-Oct-10 1:32
pubududilena3-Oct-10 1:32 
AnswerRe: Can we use sql connections for threads? Pin
PIEBALDconsult3-Oct-10 3:55
mvePIEBALDconsult3-Oct-10 3:55 
QuestionConfiguring ip address to sqlserver 2000 Pin
vijaylumar2-Oct-10 1:23
vijaylumar2-Oct-10 1:23 
AnswerRe: Configuring ip address to sqlserver 2000 Pin
Mycroft Holmes2-Oct-10 15:47
professionalMycroft Holmes2-Oct-10 15:47 

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.