Click here to Skip to main content
15,887,946 members
Home / Discussions / Database
   

Database

 
GeneralTransactions and Identity Pin
David Mujica29-May-13 2:27
David Mujica29-May-13 2:27 
QuestionStored Procedures SQL Server Pin
damokk21-May-13 1:11
damokk21-May-13 1:11 
AnswerRe: Stored Procedures SQL Server Pin
scottgp21-May-13 2:37
professionalscottgp21-May-13 2:37 
AnswerRe: Stored Procedures SQL Server Pin
Corporal Agarn21-May-13 2:58
professionalCorporal Agarn21-May-13 2:58 
GeneralRe: Stored Procedures SQL Server Pin
damokk21-May-13 4:14
damokk21-May-13 4:14 
AnswerRe: Stored Procedures SQL Server Pin
Mycroft Holmes21-May-13 3:19
professionalMycroft Holmes21-May-13 3:19 
GeneralRe: Stored Procedures SQL Server Pin
damokk21-May-13 4:15
damokk21-May-13 4:15 
AnswerRe: Stored Procedures SQL Server Pin
Arun Vasu22-May-13 19:55
Arun Vasu22-May-13 19:55 
Hai.... You can do it by table varible.

create proc
SQL
spGetMemReminder
as
select users.fullname, membership.expiryDate from membership
inner join users on membership.uid=users.uid
where convert(varchar(10), expiryDate,105) = convert(varchar(10), (getdate() +7), 105)
end

GO

CREATE PROCEDURE InsertMember
AS
BEGIN
    SET NOCOUNT ON
        DECLARE @TABLE TABLE(fullname nvarchar(10), expiryDate datetime)

        insert into @TABLE
        exec spGetMemReminder

        insert into yourothertable
        select * from @TABLE
    SET NOCOUNT OFF
END

AnswerRe: Stored Procedures SQL Server Pin
Aatif Ali from Bangalore12-Jul-13 1:06
professionalAatif Ali from Bangalore12-Jul-13 1:06 
QuestionImporting data using SSIS Package Pin
indian14320-May-13 21:38
indian14320-May-13 21:38 
AnswerRe: Importing data using SSIS Package Pin
Mycroft Holmes20-May-13 23:54
professionalMycroft Holmes20-May-13 23:54 
GeneralRe: Importing data using SSIS Package Pin
Jörgen Andersson21-May-13 0:58
professionalJörgen Andersson21-May-13 0:58 
AnswerRe: Importing data using SSIS Package Pin
Mycroft Holmes21-May-13 3:14
professionalMycroft Holmes21-May-13 3:14 
QuestionEntity Framework Pin
N_cooL19-May-13 19:56
N_cooL19-May-13 19:56 
AnswerRe: Entity Framework Pin
Mycroft Holmes19-May-13 21:52
professionalMycroft Holmes19-May-13 21:52 
GeneralRe: Entity Framework Pin
R. Giskard Reventlov20-May-13 7:34
R. Giskard Reventlov20-May-13 7:34 
Questionproblem in union Pin
mhd.sbt19-May-13 19:18
mhd.sbt19-May-13 19:18 
AnswerRe: problem in union Pin
Mycroft Holmes19-May-13 21:50
professionalMycroft Holmes19-May-13 21:50 
GeneralRe: problem in union Pin
Corporal Agarn20-May-13 3:03
professionalCorporal Agarn20-May-13 3:03 
GeneralRe: problem in union Pin
Mycroft Holmes20-May-13 3:30
professionalMycroft Holmes20-May-13 3:30 
GeneralRe: problem in union Pin
Corporal Agarn20-May-13 3:32
professionalCorporal Agarn20-May-13 3:32 
Questionstored procedure or views? Pin
Jassim Rahma17-May-13 9:43
Jassim Rahma17-May-13 9:43 
AnswerRe: stored procedure or views? Pin
PIEBALDconsult17-May-13 10:00
mvePIEBALDconsult17-May-13 10:00 
SuggestionRe: stored procedure or views? Pin
Richard Deeming17-May-13 10:10
mveRichard Deeming17-May-13 10:10 
GeneralRe: stored procedure or views? Pin
jschell17-May-13 10:46
jschell17-May-13 10:46 

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.