| Author |
Topic |
|
vedjha
Posting Yak Master
228 Posts |
Posted - 2009-10-02 : 07:31:00
|
| Hello, Please tell me How to change the path of installed TempDB database path.when i am changin its path , system says me it is a system database . you can't change path.please help...Ved Prakash Jha |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-10-02 : 07:33:41
|
| http://www.databasejournal.com/features/mssql/article.php/3379901/Moving-the-Tempdb-and-Master-Database-in-SQL-Server.htm |
 |
|
|
vedjha
Posting Yak Master
228 Posts |
Posted - 2009-10-02 : 07:35:31
|
| I have stopped database serverbackup to tempDB databaseand delete itre-connect to database then it makes automatically create a new tempDB database. then how to change its pathVed Prakash Jha |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-10-02 : 07:39:50
|
| did you refer to link? |
 |
|
|
vedjha
Posting Yak Master
228 Posts |
Posted - 2009-10-02 : 07:47:39
|
| yes , it works Thank you..sir, I have send u a mail which i have discussed you a case study.have u got any solution for it.....Ved Prakash Jha |
 |
|
|
vedjha
Posting Yak Master
228 Posts |
Posted - 2009-10-02 : 07:52:04
|
| case study:Hello Sir ,I have to find Downline details of User such as UserID Placement Sponsor UnderPlacement RefferedM2 L M1 M3 R M1 M4 L M2 M5 R M2 M6 M2 L M4M7 M1 L M6M8 M1 L M7it means M1->M2M1->M3M2->M4M2->M5M2->M6M1->M7M1->M8Graphical Image as: M1 M2 M3 M4 M5 M6 M7 M8Note: Every user can make(sponsor) infinity no of user . Bt every user having their two hands Left and Right. If user make two user it means his both hand is full. if he wants make(sponsor) more than two user then he will make user under his downline. it will be said as spilling. Users can sponsor or make infinty no of user under his downline.some question to clearify this example as,Q) To find Users, Sponsored by M1Ans.M1~~~~M2M3M4M5M6M7M8Q) To find Users, Sponsored by M2Ans.M2~~~~M4M5M6M7M8Q) To find Users, Sponsored by M3Ans. NO USER AVILABLEQ) To find Users, Sponsored by M4 Ans. SINCE M4 HAS NOT SPONSORED ANY USER, BUT USERS ARE SPONSORED BY M4'S SPONSOR(UPPER USER OF M4) AND COME(SPILL) UNDER M4. SO M4 HAVING 3 USERS AS,M4~~~~M6M7M8Q) To find Users, Sponsored by M5Ans. NO USER AVILABLEQ) To find Users, Sponsored by M6 Ans. SINCE M6 HAS NOT SPONSORED ANY USER, BUT USERS ARE SPONSORED BY M6'S SPONSOR(UPPER USER OF M6) AND COME(SPILL) UNDER M6. SO M4 HAVING 2 USERS AS,M6~~~~M7M8Q) To find Users, Sponsored by M7 Ans. SINCE M7 HAS NOT SPONSORED ANY USER, BUT USERS ARE SPONSORED BY M7'S SPONSOR(UPPER USER OF M7) AND COME(SPILL) UNDER M7. SO M7 HAVING 1 USERS AS,M7~~~~M8Q) To find Users, Sponsored by M8Ans. NO USER AVILABLE===================================now my question is, How to find users which is made by M2Ved Prakash Jha |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-10-02 : 07:52:52
|
welcome i will refer and tell u..now not enough time to check mail |
 |
|
|
vedjha
Posting Yak Master
228 Posts |
Posted - 2009-10-02 : 07:59:00
|
| ok:)Ved Prakash Jha |
 |
|
|
vedjha
Posting Yak Master
228 Posts |
Posted - 2009-10-02 : 07:59:31
|
| please guide me for this case study...Ved Prakash Jha |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-10-02 : 08:08:28
|
| you can make use of recursive ctes for this. make a start and ask if you face any problemhttp://www.mssqltips.com/tip.asp?tip=1520 |
 |
|
|
vedjha
Posting Yak Master
228 Posts |
Posted - 2009-10-02 : 08:14:12
|
| okVed Prakash Jha |
 |
|
|
|