Hi there! My daughter was 25 months when I weaned her. I was 3 months pregnant at the time. (I'm currently 38 weeks along, so it wasn't THAT long ago.) I weaned her at 2 years old because that was my personal limit and would have done it whether I was pregnant or not. Anyway, first and foremost, I wanted to state that it is perfectly safe to nurse while pregnant, so hopefully you're weaning because you're done and not because you're worried about the new baby. A lot of people are uneducated about nursing through pregnancy including doctors.
Anyway, to answer your question about weaning, I will tell you how I went about it with my daughter. We went about it pretty slow, although we weren't nursing a lot by the time I became pregnant. Here's a couple things to keep in mind...weaning won't necessarily make her magically sleep all night. At 19 months, we had a resurgence in sleep issues due to teething and an increase in her verbal skills. So a lot goes on at 19 months. Plus, your daughter can probably sense your reluctance and frustration about nursing her and it may be making her even more determined to nurse. Also, 9 months is a long time and you will notice a lot of changes in your daughter and her reliance on nursing. You can go as slow as you need to. I would suggest deciding which is most important to your daughter as far as nursing-nursing in the day or at night. For most kids, it's the night nursing. I'd leave the most important nursing session for last. In my daughter's case, the last two to go were nursing to sleep at naptime and for bedtime. I worked on day nursing first. Some things I did and you may have to be flexible depending on often she nurses during the day:
-I limited nursing to one area only and that was my bed. It was kind of a pain for me, but I wanted her to only associate nursing with one area. Previously, we nursed all over the house.
-I only nursed her at set times. At that age, I think when she woke up, at naptime, once in the late afternoon, at bedtime, and then whenever she woke at night. I distracted her in between and offered her a sippy cup or played with her, basically anything to distract her. Sometimes she would be upset, but I made sure to tell her when we would nurse again. It helps a lot to give a concrete idea of when. "We'll nurse at naptime, sweetie" is a lot easier to understand than "We'll nurse later."
-When we had that down (maybe it was a week or two), I cut out the late afternoon nursing session because that was the least important of all of them at that point. So whatever the least important session is, try the distraction/tell her when you'll nurse next method again.
-I did the same for the nurse on waking session. I immediately offered her a sippy of milk when she woke up. That was a pain too since it was way easier to lay in bed dozing and nursing her! =)
-Eventually, we were down to nursing to sleep for naps, bedtime, and during the night. I made sure we had a good sleep routine in place. I started with naptime. Instead of nursing being the last thing we did before falling asleep, I told her we would nurse for a little bit and then read some books. My daughter was older (around 22-23 months) when we did this so I don't know how well your daughter will take to this. But, make sure you tell her exactly what's going to happen. The first week I let her nurse a set amount of time, maybe it was 5 minutes or so. It was long enough for her not to feel jipped out of nursing, but short enough that she was sleepy, but didn't fall asleep.
-The first time she fell asleep without a boob in her mouth I wanted to do cartwheels. Anyway, I decreased the length of the naptime nursing sessions week by week. I also started doing the same thing at bedtime although those nursing sessions were a bit longer in the beginning because she was very reliant on them. Eventually, for naptime one week she was getting to latch on for only 5 seconds and then we read till she fell asleep. I know that sounds pretty crazy, but it was so gradual, it helped make the weaning less traumatic for her. Then the next week, I told her we weren't going to nurse at all, just read and she was ok with it.
-That left nursing to sleep at night and during the night. Since we had been working on reading until she fell asleep versus nursing to sleep, I experimented with not nursing her when she woke at night. I think I pat her back and shushed her. She didn't protest too much at night. She didn't stop waking at night, although it was a lot less, maybe just once, but she didn't have to nurse back to sleep anymore.
-Eventually, I decreased the bedtime nursing session until one week I said we would read instead. And then we were done nursing. From the time we were down to nursing at sleep times (and we did that for a long time before I got pregnant) until she was totally weaned was about 2-2.5 months. It was gradual, non-traumatic for both of us, and totally worth it.
I should note that I didn't try weaning the sleep nursing sessions until all her teeth were in at 22 months. She was a big time comfort nurser. Also, she didn't stop waking at night and when she did getting her back to sleep was a little more difficult than our old method of popping a boob in her mouth. My husband was pretty much useless to me when it came to weaning her. So you might be able to involve him in weaning if he's up to it. You could nurse before bedtime and have dad finish putting her to bed. I wrote a long novel, but feel free to message me if you'd like any additional help or ideas.