I Want to create a temp collection in mongodb just like temp table in Sql Server.If it is possible then please let me know how can I do this.
No there are no temporary collections.
You may have a look at capped collections which "are fixed-size collections" and they behave like this: "once a collection fills its allocated space, it makes room for new documents by overwriting the oldest documents in the collection."